mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-11-02 04:22:40 +08:00
更换为null_time,null_int
This commit is contained in:
@@ -18,33 +18,33 @@ type GenTable struct {
|
||||
TreeName string `gorm:"not null;default:'';comment:'树显示字段'"`
|
||||
GenTpl string `gorm:"not null;default:'crud';comment:'生成模板方式: [crud=单表, tree=树表]'"`
|
||||
|
||||
Remarks string `gorm:"not null;default:'';comment:'备注信息'"`
|
||||
CreateTime core.TsTime `gorm:"autoCreateTime;not null;comment:'创建时间'"`
|
||||
UpdateTime core.TsTime `gorm:"autoUpdateTime;not null;comment:'更新时间'"`
|
||||
Remarks string `gorm:"not null;default:'';comment:'备注信息'"`
|
||||
CreateTime core.NullTime `gorm:"autoCreateTime;not null;comment:'创建时间'"`
|
||||
UpdateTime core.NullTime `gorm:"autoUpdateTime;not null;comment:'更新时间'"`
|
||||
}
|
||||
|
||||
//GenTableColumn 代码生成表列实体
|
||||
type GenTableColumn struct {
|
||||
ID uint `gorm:"primarykey;comment:'列主键'"`
|
||||
TableID uint `gorm:"not null;default:0;comment:'表外键'"`
|
||||
ColumnName string `gorm:"not null;default:'';comment:'列名称'"`
|
||||
ColumnComment string `gorm:"not null;default:'';comment:'列描述'"`
|
||||
ColumnLength int `gorm:"not null;default:0;comment:'列长度'"`
|
||||
ColumnType string `gorm:"not null;default:'';comment:'列类型'"`
|
||||
GoType string `gorm:"not null;default:'';comment:'类型'"`
|
||||
GoField string `gorm:"not null;default:'';comment:'字段名'"`
|
||||
IsPk uint8 `gorm:"not null;default:0;comment:'是否主键: [1=是, 0=否]'"`
|
||||
IsIncrement uint8 `gorm:"not null;default:0;comment:'是否自增: [1=是, 0=否]'"`
|
||||
IsRequired uint8 `gorm:"not null;default:0;comment:'是否必填: [1=是, 0=否]'"`
|
||||
IsInsert uint8 `gorm:"not null;default:0;comment:'是否为插入字段: [1=是, 0=否]'"`
|
||||
IsEdit uint8 `gorm:"not null;default:0;comment:'是否编辑字段: [1=是, 0=否]'"`
|
||||
IsList uint8 `gorm:"not null;default:0;comment:'是否列表字段: [1=是, 0=否]'"`
|
||||
IsQuery uint8 `gorm:"not null;default:0;comment:'是否查询字段: [1=是, 0=否]'"`
|
||||
QueryType string `gorm:"not null;default:'=';comment:'查询方式: [等于、不等于、大于、小于、范围]'"`
|
||||
HtmlType string `gorm:"not null;default:'';comment:'显示类型: [文本框、文本域、下拉框、复选框、单选框、日期控件]'"`
|
||||
DictType string `gorm:"not null;default:'';comment:'字典类型'"`
|
||||
ListAllApi string `gorm:"not null;default:'';comment:'列表数据来源'"`
|
||||
Sort int `gorm:"not null;default:0;comment:'排序编号'"`
|
||||
CreateTime core.TsTime `gorm:"autoCreateTime;not null;comment:'创建时间'"`
|
||||
UpdateTime core.TsTime `gorm:"autoUpdateTime;not null;comment:'更新时间'"`
|
||||
ID uint `gorm:"primarykey;comment:'列主键'"`
|
||||
TableID uint `gorm:"not null;default:0;comment:'表外键'"`
|
||||
ColumnName string `gorm:"not null;default:'';comment:'列名称'"`
|
||||
ColumnComment string `gorm:"not null;default:'';comment:'列描述'"`
|
||||
ColumnLength int `gorm:"not null;default:0;comment:'列长度'"`
|
||||
ColumnType string `gorm:"not null;default:'';comment:'列类型'"`
|
||||
GoType string `gorm:"not null;default:'';comment:'类型'"`
|
||||
GoField string `gorm:"not null;default:'';comment:'字段名'"`
|
||||
IsPk uint8 `gorm:"not null;default:0;comment:'是否主键: [1=是, 0=否]'"`
|
||||
IsIncrement uint8 `gorm:"not null;default:0;comment:'是否自增: [1=是, 0=否]'"`
|
||||
IsRequired uint8 `gorm:"not null;default:0;comment:'是否必填: [1=是, 0=否]'"`
|
||||
IsInsert uint8 `gorm:"not null;default:0;comment:'是否为插入字段: [1=是, 0=否]'"`
|
||||
IsEdit uint8 `gorm:"not null;default:0;comment:'是否编辑字段: [1=是, 0=否]'"`
|
||||
IsList uint8 `gorm:"not null;default:0;comment:'是否列表字段: [1=是, 0=否]'"`
|
||||
IsQuery uint8 `gorm:"not null;default:0;comment:'是否查询字段: [1=是, 0=否]'"`
|
||||
QueryType string `gorm:"not null;default:'=';comment:'查询方式: [等于、不等于、大于、小于、范围]'"`
|
||||
HtmlType string `gorm:"not null;default:'';comment:'显示类型: [文本框、文本域、下拉框、复选框、单选框、日期控件]'"`
|
||||
DictType string `gorm:"not null;default:'';comment:'字典类型'"`
|
||||
ListAllApi string `gorm:"not null;default:'';comment:'列表数据来源'"`
|
||||
Sort int `gorm:"not null;default:0;comment:'排序编号'"`
|
||||
CreateTime core.NullTime `gorm:"autoCreateTime;not null;comment:'创建时间'"`
|
||||
UpdateTime core.NullTime `gorm:"autoUpdateTime;not null;comment:'更新时间'"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user