SysOrg_gen.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package models
  2. import (
  3. "time"
  4. //__import_packages__
  5. )
  6. type SysOrg struct {
  7. //主键
  8. Id string `xorm:"'id' varchar(36) pk notnull "json:"id"`
  9. //上级组织
  10. Parent string `xorm:"'parent' varchar(36) null "json:"parent"`
  11. //继承关系
  12. Inheritance string `xorm:"'inheritance' varchar(500) null "json:"inheritance"`
  13. //名称
  14. Name string `xorm:"'name' varchar(36) notnull "json:"name"`
  15. //全名
  16. FullName string `xorm:"'full_name' varchar(36) notnull "json:"full_name"`
  17. //领导人
  18. Leader string `xorm:"'leader' varchar(36) notnull "json:"leader"`
  19. //组织类型
  20. Type int32 `xorm:"'type' notnull "json:"type"`
  21. //排序
  22. Order int32 `xorm:"'order' notnull "json:"order"`
  23. //状态 0:禁用 1:正常
  24. Status int32 `xorm:"'status' notnull "json:"status"`
  25. //域
  26. Domain string `xorm:"'domain' varchar(36) notnull "json:"domain"`
  27. //创建人
  28. CreateBy string `xorm:"'create_by' varchar(36) notnull "json:"create_by"`
  29. //创建时间
  30. CreateTime time.Time `xorm:"'create_time' notnull "json:"create_time"`
  31. //最后更新人
  32. LastUpdateBy string `xorm:"'last_update_by' varchar(36) notnull "json:"last_update_by"`
  33. //最后更新时间
  34. LastUpdateTime int64 `xorm:"'last_update_time' notnull "json:"last_update_time"`
  35. //是否删除 1:删除 0:正常
  36. DelFlag int32 `xorm:"'del_flag' notnull "json:"del_flag"`
  37. }
  38. func (t *SysOrg) TableName() string {
  39. return "sys_org"
  40. }
  41. func init() {
  42. AddTableName("sys_org")
  43. RegisterModel(new(SysOrg))
  44. }