Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Dir string PkgName string Name string Comment string File string Storage string Modules string ApiVersion string GenPkg string }
Config 配置参数
type TplFieldItem ¶
type TplFieldItem struct { StructFieldName string `yaml:"name"` // 结构体字段名称 StorageKey string `yaml:"storage"` // 数据库存储字段名称 StructFieldRequired bool `yaml:"required"` // 结构字段必选项 Comment string `yaml:"comment"` // 注释 StructFieldType string `yaml:"type"` // 结构体字段类型 GormOptions string `yaml:"gorm_options"` // gorm配置项 BindingOptions string `yaml:"binding_options"` // binding配置项 Max int `yaml:"max"` // 字符串最长, 数字类型最大 Min int `yaml:"min"` // 字符串最短, 数字类型最小 Default string `yaml:"default"` // 默认值 Index string `yaml:"index"` // 数据库索引 }
TplFieldItem 模板字段项
Source Files ¶
- api.go
- api_inject.go
- api_mock.go
- api_mock_inject.go
- entity_ent.go
- entity_gorm.go
- entity_inject_ent.go
- entity_inject_gorm.go
- entity_inject_mongo.go
- entity_mongo.go
- generate.go
- helper.go
- repo.go
- repo_impl_ent.go
- repo_impl_gorm.go
- repo_impl_mongo.go
- repo_inject_ent.go
- repo_inject_gorm.go
- repo_inject_mongo.go
- router_api.go
- router_impl.go
- router_inject.go
- schema.go
- service.go
- service_impl.go
- service_inject.go
- tpl.go
Click to show internal directories.
Click to hide internal directories.