SysAreaTemplateDetail_gen.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package models
  2. import (
  3. //__import_packages__
  4. )
  5. type SysAreaTemplateDetail struct {
  6. //主键
  7. Id string `xorm:"'id' varchar(36) pk notnull "json:"id"`
  8. //区域信息模板id
  9. TempId string `xorm:"'temp_id' varchar(36) notnull "json:"temp_id"`
  10. //名称
  11. Name string `xorm:"'name' varchar(50) notnull "json:"name"`
  12. //值
  13. Value string `xorm:"'value' varchar(36) notnull "json:"value"`
  14. //类型 0:数值项 1:单选项 2:文字项 3:列表项
  15. Type int64 `xorm:"'type' bigint notnull "json:"type"`
  16. //优先级
  17. Priority int64 `xorm:"'priority' bigint notnull "json:"priority"`
  18. //内容
  19. Content string `xorm:"'content' text notnull "json:"content"`
  20. //域
  21. Domain string `xorm:"'domain' varchar(36) notnull "json:"domain"`
  22. //创建人
  23. CreateBy string `xorm:"'create_by' varchar(36) notnull "json:"create_by"`
  24. //创建时间
  25. CreateTime LocalTime `xorm:"'create_time' notnull "json:"create_time"`
  26. //最后更新人
  27. LastUpdateBy string `xorm:"'last_update_by' varchar(36) notnull "json:"last_update_by"`
  28. //最后更新时间
  29. LastUpdateTime int64 `xorm:"'last_update_time' notnull "json:"last_update_time"`
  30. //是否删除 1:删除 0:正常
  31. DelFlag int32 `xorm:"'del_flag' notnull "json:"del_flag"`
  32. }
  33. func (t *SysAreaTemplateDetail) TableName() string {
  34. return "sys_area_template_detail"
  35. }
  36. func init() {
  37. AddTableName("sys_area_template_detail")
  38. RegisterModel(new(SysAreaTemplateDetail))
  39. }