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
}
Config 配置参数
type TplFieldItem ¶
type TplFieldItem struct {
StructFieldName string `yaml:"name"` // 结构体字段名称
StructFieldRequired bool `yaml:"required"` // 结构字段必选项
Comment string `yaml:"comment"` // 注释
StructFieldType string `yaml:"type"` // 结构体字段类型
GormOptions string `yaml:"gorm_options"` // gorm配置项
BindingOptions string `yaml:"binding_options"` // binding配置项
}
TplFieldItem 模板字段项
type TplItem ¶
type TplItem struct {
StructName string `yaml:"name"` // 结构体名称
Comment string `yaml:"comment"` // 注释
Fields []TplFieldItem `yaml:"fields"` // 字段项
}
TplItem 模板项
Source Files
¶
Click to show internal directories.
Click to hide internal directories.