oc.go 2.2 KB

123456789101112131415161718192021222324252627282930
  1. package datamodels
  2. import "time"
  3. // Oc
  4. type Oc struct {
  5. OcId int64 `json:"ocId" form:"ocTypeId" xorm:"'oc_id' bigint pk comment('主键ID') " `
  6. OcName string `json:"ocName" form:"ocName" xorm:"'oc_name' varchar(127) comment('ENT类型名称') " `
  7. OcTypeId int64 `json:"ocTypeId" form:"ocTypeId" xorm:"'oc_type_id' bigint comment('Type ID') " `
  8. RootId int64 `json:"rootId" form:"rootId" xorm:"'root_id' bigint comment('Root ID') " `
  9. ParentId int64 `json:"parentId" form:"parentId" xorm:"'parent_id' bigint comment('Parent ID') " `
  10. AdminId int64 `json:"adminId" form:"adminId" xorm:"'admin_id' bigint comment('Admin ID') " `
  11. AdminName string `json:"adminName" form:"adminName" xorm:"'admin_name' varchar(127) comment('Admin Name') " `
  12. GroupId int64 `json:"groupId" form:"groupId" xorm:"'group_id' bigint comment('Root Group Id')" `
  13. ifLic int `json:"ifLic" form:"ifLic" xorm:"'if_lic' int comment('Admin ID') " `
  14. NodeLeft int `json:"nodeLeft" form:"nodeLeft" xorm:"'node_left' int comment('Admin ID') " `
  15. NodeRight int `json:"nodeRight" form:"nodeRight" xorm:"'node_right' int comment('Admin ID') " `
  16. IsLeaf int `json:"isLeaf" form:"isLeaf" xorm:"'is_leaf' int comment('Admin ID') " `
  17. NodeLevel int `json:"nodeLevel" form:"nodeLevel" xorm:"'node_level' int comment('Admin ID') " `
  18. Status int `json:"status" form:"status" xorm:"'status' int comment('OC Status') " `
  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. }