package viewmodels type ModelTreeInfo struct { Label string `json:"label" xorm:"'label' varchar(50) comment('Label 名称') "` Value int64 `json:"value" xorm:"'value' bigint comment('Value ID') "` IsLeaf int64 `json:"isLeaf" xorm:"'isLeaf' bigint comment('Is Leaf') "` ModelId int64 `json:"modelId" xorm:"'model_id' bigint comment('主键ID') "` ModelTitle string `json:"modelTitle" xorm:"'model_title' varchar(50) comment('模型名称') "` ModelDesc string `json:"modelDesc" xorm:"'model_desc' varchar(50) comment('描述') "` Children []ModelTreeNodeInfo `json:"children"` } func (t *ModelTreeInfo) TableName() string { return "ds_model" }