SysOrg_gen.go 1.3 KB

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