biz_tree_info.go 837 B

123456789101112131415
  1. package viewmodel
  2. type BizTreeInfo struct {
  3. Label string `json:"label" xorm:"'label' varchar(50) comment('Label 名称') "`
  4. Value int64 `json:"value" xorm:"'value' bigint comment('Value ID') "`
  5. IsLeaf int64 `json:"isLeaf" xorm:"'isLeaf' bigint comment('Is Leaf') "`
  6. BizId int64 `json:"bizId" xorm:"'biz_id' bigint comment('Biz ID') "`
  7. BizTitle string `json:"bizTitle" xorm:"'biz_title' varchar(50) comment('Biz Title') "`
  8. BizDesc string `json:"bizDesc" xorm:"'biz_desc' varchar(50) comment('Biz Desc') "`
  9. Children []BizTreeNodeInfo `json:"children"`
  10. }
  11. func (t *BizTreeInfo) TableName() string {
  12. return "biz"
  13. }