art_cat_info.go 1.3 KB

12345678910111213141516171819
  1. package viewmodel
  2. type ArtCatInfo struct {
  3. ArtCatId int64 `json:"artCatId" xorm:"'art_cat_id' bigint pk comment('主键ID') "`
  4. ArtCatTitle string `json:"artCatTitle" xorm:"'art_cat_title' varchar(50) comment('群组类型名称') "`
  5. ArtCatDesc string `json:"artCatDesc" xorm:"'art_cat_desc' varchar(50) comment('描述') "`
  6. RootId int64 `json:"rootId" xorm:"'root_id' bigint not null comment('Order') " `
  7. ParentId int64 `json:"parentId" xorm:"'parent_id' bigint not null comment('父群组ID') " `
  8. NodeLeft int64 `json:"nodeLeft" xorm:"'node_left' bigint not null comment('群组LEFT') " `
  9. NodeRight int64 `json:"nodeRight" xorm:"'node_right' bigint not null comment('群组RIGHT') " `
  10. NodeLevel int64 `json:"nodeLevel" xorm:"'node_level' bigint not null comment('群组LEVEL') " `
  11. IsLeaf int64 `json:"isLeaf" xorm:"'is_leaf' bigint not null comment('LEAF群组') " `
  12. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' bigint not null comment('群组STATUS') " `
  13. }
  14. func (t *ArtCatInfo) TableName() string {
  15. return "art_cat"
  16. }