feat:完善项目

This commit is contained in:
henry
2021-11-09 16:32:36 +08:00
parent be0ef1a1d0
commit 1c00a7c328
6 changed files with 536 additions and 35 deletions

View File

@ -18,6 +18,7 @@ type (
ID string `json:"id"`
Name string `json:"name"`
*model2.AreaInfo
Remark string `json:"remark"`
Children []*InstanceInfo `json:"children"`
}
// InstanceParams 参数信息
@ -37,6 +38,7 @@ func (c *Instance) tree(src []*model2.SysTenant, parentID uint64) []*InstanceInf
ID: v.GetEncodeID(),
Name: v.Name,
AreaInfo: v.Area.Format(),
Remark: v.Remark,
Children: c.tree(src, v.ID),
})
}