art_cat.go 1.8 KB

1234567891011121314151617181920212223242526272829
  1. package datamodels
  2. import "time"
  3. type ArtCat struct {
  4. ArtCatId int64 `json:"artCatId" xorm:"'art_cat_id' bigint pk comment('主键ID') "`
  5. ArtCatTitle string `json:"artCatTitle" xorm:"'art_cat_title' varchar(50) comment('群组类型名称') "`
  6. ArtCatDesc string `json:"artCatDesc" xorm:"'art_cat_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. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  15. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  16. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  17. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  18. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  19. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  20. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  21. }
  22. func (t *ArtCat) TableName() string {
  23. return "art_cat"
  24. }