oc_info.go 2.0 KB

123456789101112131415161718192021222324252627
  1. package viewmodels
  2. // OcInfo Oc Info
  3. type OcInfo struct {
  4. OcId int64 `json:"ocId" xorm:"'oc_id' bigint pk comment('主键ID') " `
  5. OcName string `json:"ocName" xorm:"'oc_name' varchar(127) comment('ENT类型名称') " `
  6. OcTypeId int64 `json:"ocTypeId" xorm:"'oc_type_id' bigint comment('Type ID') " `
  7. OcTypeTitle string `json:"ocTypeTitle" xorm:"'oc_type_title' varchar(50) comment('群组类型名称') " `
  8. OcCatId int64 `json:"ocCatId" xorm:"'oc_cat_id' bigint comment('Cat ID') " `
  9. OcCatTitle string `json:"ocCatTitle" xorm:"'oc_cat_title' varchar(50) comment('群组类型名称') "`
  10. RootId int64 `json:"rootId" xorm:"'root_id' bigint comment('Root ID') " `
  11. ParentId int64 `json:"parentId" xorm:"'parent_id' bigint comment('Parent ID') " `
  12. AdminId int64 `json:"adminId" xorm:"'admin_id' bigint comment('Admin ID') " `
  13. AdminName string `json:"adminName" xorm:"'admin_name' varchar(127) comment('Admin Name') " `
  14. GroupId int64 `json:"groupId" xorm:"'group_id' bigint comment('Root Group Id')" `
  15. IfLic int `json:"ifLic" xorm:"'if_lic' int comment('Admin ID') " `
  16. NodeLeft int `json:"nodeLeft" xorm:"'node_left' int comment('Admin ID') " `
  17. NodeRight int `json:"nodeRight" xorm:"'node_right' int comment('Admin ID') " `
  18. IsLeaf int `json:"isLeaf" xorm:"'is_leaf' int comment('Admin ID') " `
  19. NodeLevel int `json:"nodeLevel" xorm:"'node_level' int comment('Admin ID') " `
  20. Status int `json:"status" xorm:"'status' int comment('OC Status') " `
  21. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' bigint comment('Is Fixed') " `
  22. }
  23. func (t *OcInfo) TableName() string {
  24. return "oc"
  25. }