doc_dir.go 1.9 KB

12345678910111213141516171819202122232425262728293031
  1. package datamodel
  2. import "time"
  3. type DocDir struct {
  4. OcId int64 `json:"ocId" xorm:"'oc_id' bigint pk comment('OC ID') "`
  5. DirId int64 `json:"dirId" xorm:"'dir_id' bigint pk comment('主键ID') "`
  6. DirTitle string `json:"dirTitle" xorm:"'dir_title' varchar(50) comment('群组类型名称') "`
  7. DirDesc string `json:"dirDesc" xorm:"'dir_desc' varchar(50) comment('描述') "`
  8. RootId int64 `json:"rootId" xorm:"'root_id' bigint not null comment('Order') " `
  9. ParentId int64 `json:"parentId" xorm:"'parent_id' bigint not null comment('父群组ID') " `
  10. NodeLeft int64 `json:"nodeLeft" xorm:"'node_left' bigint not null comment('群组LEFT') " `
  11. NodeRight int64 `json:"nodeRight" xorm:"'node_right' bigint not null comment('群组RIGHT') " `
  12. NodeLevel int64 `json:"nodeLevel" xorm:"'node_level' bigint not null comment('群组LEVEL') " `
  13. IsLeaf int64 `json:"isLeaf" xorm:"'is_leaf' bigint not null comment('LEAF群组') " `
  14. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' bigint not null comment('群组STATUS') " `
  15. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  16. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  17. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  18. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  19. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  20. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  21. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  22. }
  23. func (t *DocDir) TableName() string {
  24. return "doc_dir"
  25. }