oc.go 2.1 KB

12345678910111213141516171819202122232425262728293031
  1. package datamodels
  2. import "time"
  3. type Oc 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. OcCatId int64 `json:"ocCatId" xorm:"'oc_cat_id' bigint comment('Cat ID') " `
  8. RootId int64 `json:"rootId" xorm:"'root_id' bigint comment('Root ID') " `
  9. ParentId int64 `json:"parentId" xorm:"'parent_id' bigint comment('Parent ID') " `
  10. AdminId int64 `json:"adminId" xorm:"'admin_id' bigint comment('Admin ID') " `
  11. GroupId int64 `json:"groupId" xorm:"'group_id' bigint comment('Root Group Id')" `
  12. IfLic int64 `json:"ifLic" xorm:"'if_lic' int comment('Admin ID') " `
  13. NodeLeft int `json:"nodeLeft" xorm:"'node_left' int comment('Admin ID') " `
  14. NodeRight int `json:"nodeRight" xorm:"'node_right' int comment('Admin ID') " `
  15. IsLeaf int `json:"isLeaf" xorm:"'is_leaf' int comment('Admin ID') " `
  16. NodeLevel int `json:"nodeLevel" xorm:"'node_level' int comment('Admin ID') " `
  17. Status int64 `json:"status" xorm:"'status' bigint comment('OC Status') " `
  18. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' bigint comment('Is Fixed') " `
  19. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  20. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  21. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  22. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  23. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  24. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  25. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  26. }