SysAreaTemplate_gen.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package models
  2. import (
  3. //__import_packages__
  4. )
  5. type SysAreaTemplate 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. Domain string `xorm:"'domain' varchar(36) notnull "json:"domain"`
  16. //创建人
  17. CreateBy string `xorm:"'create_by' varchar(36) notnull "json:"create_by"`
  18. //创建时间
  19. CreateTime LocalTime `xorm:"'create_time' notnull "json:"create_time"`
  20. //最后更新人
  21. LastUpdateBy string `xorm:"'last_update_by' varchar(36) notnull "json:"last_update_by"`
  22. //最后更新时间
  23. LastUpdateTime int64 `xorm:"'last_update_time' notnull "json:"last_update_time"`
  24. //是否删除 1:删除 0:正常
  25. DelFlag int32 `xorm:"'del_flag' notnull "json:"del_flag"`
  26. }
  27. func (t *SysAreaTemplate) TableName() string {
  28. return "sys_area_template"
  29. }
  30. func init() {
  31. AddTableName("sys_area_template")
  32. RegisterModel(new(SysAreaTemplate))
  33. }