SysUserTemplate_gen.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package models
  2. import (
  3. //__import_packages__
  4. )
  5. type SysUserTemplate struct {
  6. //主键
  7. Id string `xorm:"'id' varchar(36) pk notnull "json:"id"`
  8. //模板名称
  9. Name string `xorm:"'name' varchar(200) notnull "json:"name"`
  10. //模板类型 0:固定模板 1:动态模板 2:自定义模板
  11. Type int64 `xorm:"'type' bigint notnull "json:"type"`
  12. //是否默认 1:是 0:否
  13. Default int32 `xorm:"'default' notnull "json:"default"`
  14. //创建人
  15. CreateBy string `xorm:"'create_by' varchar(36) notnull "json:"create_by"`
  16. //创建时间
  17. CreateTime LocalTime `xorm:"'create_time' notnull "json:"create_time"`
  18. //最后更新人
  19. LastUpdateBy string `xorm:"'last_update_by' varchar(36) notnull "json:"last_update_by"`
  20. //最后更新时间
  21. LastUpdateTime int64 `xorm:"'last_update_time' notnull "json:"last_update_time"`
  22. //是否删除 1:删除 0:正常
  23. DelFlag int32 `xorm:"'del_flag' notnull "json:"del_flag"`
  24. }
  25. func (t *SysUserTemplate) TableName() string {
  26. return "sys_user_template"
  27. }
  28. func init() {
  29. AddTableName("sys_user_template")
  30. RegisterModel(new(SysUserTemplate))
  31. }