model_tree_info.go 857 B

123456789101112131415
  1. package viewmodels
  2. type ModelTreeInfo 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. ModelId int64 `json:"modelId" xorm:"'model_id' bigint comment('主键ID') "`
  7. ModelTitle string `json:"modelTitle" xorm:"'model_title' varchar(50) comment('模型名称') "`
  8. ModelDesc string `json:"modelDesc" xorm:"'model_desc' varchar(50) comment('描述') "`
  9. Children []ModelTreeNodeInfo `json:"children"`
  10. }
  11. func (t *ModelTreeInfo) TableName() string {
  12. return "ds_model"
  13. }