doc_dir_info.go 1.3 KB

123456789101112131415161718192021
  1. package viewmodel
  2. type DocDirInfo struct {
  3. OcId int64 `json:"ocId" xorm:"'oc_id' bigint pk comment('OC ID') "`
  4. DirId int64 `json:"dirId" xorm:"'dir_id' bigint pk comment('主键ID') "`
  5. DirTitle string `json:"dirTitle" xorm:"'dir_title' varchar(50) comment('群组类型名称') "`
  6. DirDesc string `json:"dirDesc" xorm:"'dir_desc' varchar(50) comment('描述') "`
  7. RootId int64 `json:"rootId" xorm:"'root_id' bigint not null comment('Order') " `
  8. ParentId int64 `json:"parentId" xorm:"'parent_id' bigint not null comment('父群组ID') " `
  9. NodeLeft int64 `json:"nodeLeft" xorm:"'node_left' bigint not null comment('群组LEFT') " `
  10. NodeRight int64 `json:"nodeRight" xorm:"'node_right' bigint not null comment('群组RIGHT') " `
  11. NodeLevel int64 `json:"nodeLevel" xorm:"'node_level bigint not null comment('群组LEVEL') " `
  12. IsLeaf int64 `json:"isLeaf" xorm:"'is_leaf' bigint not null comment('LEAF群组') " `
  13. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' bigint not null comment('群组STATUS') " `
  14. }
  15. func (t *DocDirInfo) TableName() string {
  16. return "doc_dir"
  17. }