|
|
@@ -1,29 +1,28 @@
|
|
|
-
|
|
|
package models
|
|
|
+
|
|
|
import (
|
|
|
- //__import_packages__
|
|
|
+//__import_packages__
|
|
|
)
|
|
|
|
|
|
type SysUserTemplate struct {
|
|
|
//主键
|
|
|
- Id string `xorm:"'id' varchar(36) pk notnull "json:"id"`
|
|
|
+ Id string `xorm:"'id' varchar(36) pk notnull "json:"id"`
|
|
|
//模板名称
|
|
|
- Name string `xorm:"'name' varchar(200) notnull "json:"name"`
|
|
|
+ Name string `xorm:"'name' varchar(200) notnull "json:"name"`
|
|
|
//模板类型 0:固定模板 1:动态模板 2:自定义模板
|
|
|
- Type string `xorm:"'type' varchar(50) notnull "json:"type"`
|
|
|
+ Type int64 `xorm:"'type' bigint notnull "json:"type"`
|
|
|
//是否默认 1:是 0:否
|
|
|
- Default int32 `xorm:"'default' notnull "json:"default"`
|
|
|
+ Default int32 `xorm:"'default' notnull "json:"default"`
|
|
|
//创建人
|
|
|
- CreateBy string `xorm:"'create_by' varchar(36) notnull "json:"create_by"`
|
|
|
+ CreateBy string `xorm:"'create_by' varchar(36) notnull "json:"create_by"`
|
|
|
//创建时间
|
|
|
- CreateTime LocalTime `xorm:"'create_time' notnull "json:"create_time"`
|
|
|
+ CreateTime LocalTime `xorm:"'create_time' notnull "json:"create_time"`
|
|
|
//最后更新人
|
|
|
- LastUpdateBy string `xorm:"'last_update_by' varchar(36) notnull "json:"last_update_by"`
|
|
|
+ LastUpdateBy string `xorm:"'last_update_by' varchar(36) notnull "json:"last_update_by"`
|
|
|
//最后更新时间
|
|
|
- LastUpdateTime int64 `xorm:"'last_update_time' notnull "json:"last_update_time"`
|
|
|
+ LastUpdateTime int64 `xorm:"'last_update_time' notnull "json:"last_update_time"`
|
|
|
//是否删除 1:删除 0:正常
|
|
|
- DelFlag int32 `xorm:"'del_flag' notnull "json:"del_flag"`
|
|
|
-
|
|
|
+ DelFlag int32 `xorm:"'del_flag' notnull "json:"del_flag"`
|
|
|
}
|
|
|
|
|
|
func (t *SysUserTemplate) TableName() string {
|
|
|
@@ -31,6 +30,6 @@ func (t *SysUserTemplate) TableName() string {
|
|
|
}
|
|
|
|
|
|
func init() {
|
|
|
- AddTableName("sys_user_template")
|
|
|
+ AddTableName("sys_user_template")
|
|
|
RegisterModel(new(SysUserTemplate))
|
|
|
}
|