Documentation ¶
Index ¶
- Constants
- func CheckIfContainProtoTag(protoTag ProtoTag, comments []*parser.Comment) bool
- func CheckIfRequired(comments []*parser.Comment) bool
- func ConvertProtoTypeToCSharpDataType(dataType string) (finalType string)
- func ConvertProtoTypeToGoDataType(dataType string) string
- func ConvertProtoTypeToReactTsDataType(dataType string) (finalType string, nullable bool)
- func GetAuthFromRpcCommentsOfProto(comments []*parser.Comment) (auth bool)
- func GetContentByProtoTag(protoTag ProtoTag, comments []*parser.Comment) []string
- func GetContentByProtoTagFistOne(protoTag ProtoTag, comments []*parser.Comment) string
- func GetDescFromFieldCommentsOfProto(comments []*parser.Comment) string
- func GetGroupNameFromRpcCommentsOfProto(comments []*parser.Comment) (groupName string, ok bool)
- type ClientSdkEntity
- type CloneEntity
- type CloneMessage
- type EntrypointEntity
- type EnumEntity
- type EnumField
- type HandlerInitEntity
- type MethodEntity
- type Model
- type ModelEntity
- type ModelField
- type ProtoTag
- type ReactTsApiEntity
- type ReactTsMessage
- type ReactTsMessageField
- type ReactTsMethod
- type ReactTsTypingEntity
- type RefModel
- type ServiceEntity
- type ValidatorEntity
- type ValidatorFormula
- type ValidatorMessage
- type ValidatorMessageField
Constants ¶
View Source
const ( ProtoTagInternal = ProtoTag("@internal") ProtoTagGroup = ProtoTag("@group") ProtoTagLevel = ProtoTag("@level") ProtoTagValidator = ProtoTag("@v") ProtoTagDesc = ProtoTag("@desc") ProtoTagName = ProtoTag("@name") ProtoTagRef = ProtoTag("@ref") ProtoTagMsg = ProtoTag("@msg") ProtoTagIndex = ProtoTag("@index") ProtoTagOrm = ProtoTag("@orm") ProtoTagPrimary = ProtoTag("@primary") ProtoTagIgnoreProto = ProtoTag("@ignore-proto") ProtoTagUnique = ProtoTag("@unique") ProtoTagAuth = ProtoTag("@auth") ProtoTagIgnoreAuth = ProtoTag("@ignore-auth") ProtoTagAutoIncrement = ProtoTag("@auto-increment") ProtoTagVersion = ProtoTag("@version") ProtoTagCheckSign = ProtoTag("@check-sign") ProtoTagCode = ProtoTag("@code") )
Variables ¶
This section is empty.
Functions ¶
func CheckIfContainProtoTag ¶
func CheckIfRequired ¶
func GetContentByProtoTag ¶
Types ¶
type ClientSdkEntity ¶
type ClientSdkEntity struct { Methods []MethodEntity ServiceEntity }
type CloneEntity ¶
type CloneEntity struct { ServiceEntity Messages []CloneMessage }
type CloneMessage ¶
type CloneMessage struct {
Name string
}
type EntrypointEntity ¶
type EntrypointEntity struct { ServiceEntity GoModuleName string ServiceModuleName string IgnoreAuthList []string OpenApiList []string // contains filtered or unexported fields }
type EnumEntity ¶
type HandlerInitEntity ¶
type HandlerInitEntity struct { ServiceEntity GoModuleName string // contains filtered or unexported fields }
type MethodEntity ¶
type Model ¶
type Model struct { Fields []ModelField TableName string ModelName string TableNameWithoutServicePrefix string HasDeletedAt bool Refs []RefModel Desc string }
func (Model) ToRefModel ¶
type ModelEntity ¶
type ModelEntity struct { ServiceEntity GoModuleName string CSharpModelNamespace string CSharpBaseNamespace string Model }
type ModelField ¶
type ModelField struct { TableName string ModelName string FieldName string OrmFieldName string JsonFieldName string ModelDataType string Ignore bool HasIndex bool HasUnique bool HasDeletedAt bool HasPrimaryKey bool HasAutoIncrement bool CSharpDataType string Desc string // contains filtered or unexported fields }
type ReactTsApiEntity ¶
type ReactTsApiEntity struct { ServiceEntity Methods []ReactTsMethod }
type ReactTsMessage ¶
type ReactTsMessage struct { Desc string Name string Fields []ReactTsMessageField }
type ReactTsMessageField ¶
type ReactTsMethod ¶
type ReactTsTypingEntity ¶
type ReactTsTypingEntity struct { ServiceEntity Desc string Enums []EnumEntity Messages []ReactTsMessage }
type RefModel ¶
type RefModel struct { ModelName string Fields []ModelField }
type ServiceEntity ¶
type ServiceEntity struct { ServiceName string PackageName string ServiceStruct string ServiceDir string // ProtoFileName is base file name, without file extension ProtoFileName string PackageAlias string CommandLineVersion string Version string Level string ClassName string ServiceCode string // contains filtered or unexported fields }
func NewServiceEntity ¶
func NewServiceEntity(serviceName string, commandLineVersion string) ServiceEntity
type ValidatorEntity ¶
type ValidatorEntity struct { ServiceEntity Messages []ValidatorMessage }
type ValidatorFormula ¶
type ValidatorMessage ¶
type ValidatorMessage struct { Name string Fields []ValidatorMessageField Desc string }
type ValidatorMessageField ¶
type ValidatorMessageField struct { Name string Formulas []ValidatorFormula ParamName string Error string }
Directories ¶
Path | Synopsis |
---|---|
Code generated by yc@v0.0.1
|
Code generated by yc@v0.0.1 |
db
Code generated by yc@v0.0.1.
|
Code generated by yc@v0.0.1. |
server
Code generated by yc@v0.0.1
|
Code generated by yc@v0.0.1 |
server/http
Code generated by yc@v0.0.1.
|
Code generated by yc@v0.0.1. |
Click to show internal directories.
Click to hide internal directories.