repo_object_tree_info.go 1.7 KB

1234567891011121314151617181920212223242526
  1. package viewmodel
  2. type RepoObjectNodeInfo 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('Model ID') "`
  7. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint comment('Object ID') "`
  8. ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('Object Title') "`
  9. ObjectType string `json:"objectType" xorm:"'object_type' bigint comment('Object Type') "`
  10. ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('Object Code') "`
  11. }
  12. type RepoModelTreeInfo struct {
  13. Label string `json:"label" xorm:"'label' varchar(50) comment('Label 名称') "`
  14. Value int64 `json:"value" xorm:"'value' bigint comment('Value ID') "`
  15. IsLeaf int64 `json:"isLeaf" xorm:"'isLeaf' bigint comment('Is Leaf') "`
  16. ModelId int64 `json:"modelId" xorm:"'model_id' bigint comment('Model ID') "`
  17. ModelTitle string `json:"modelTitle" xorm:"'model_title' varchar(50) comment('Model Title') "`
  18. Children []RepoObjectNodeInfo `json:"children"`
  19. }
  20. func (t *RepoModelTreeInfo) TableName() string {
  21. return "repo_object"
  22. }