Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAllModel ¶
GenerateAllModel 生成所有model的结构体
func GenerateSingleModel ¶
GenerateSingleModel 生成单个model的结构体
func ParseFieldTypeByTable ¶
ParseFieldTypeByTable 转义数据库字段类型到model
Types ¶
type Field ¶
type Field struct { Field string `gorm:"column:Field"` // 字段 Type string `gorm:"column:Type"` // 类型 Collation string `gorm:"column:Collation"` // 编码 Null string `gorm:"column:Null"` // 是否为空 Key string `gorm:"column:Key"` // 主键 Default string `gorm:"column:Default"` // 默认值 Extra string `gorm:"column:Extra"` // 额外类型 Privileges string `gorm:"column:Privileges"` // 权限 Comment string `gorm:"column:Comment"` // 注释 }
Field 表字段
Click to show internal directories.
Click to hide internal directories.