feat:完善项目信息

This commit is contained in:
henry
2022-01-04 15:04:37 +08:00
parent e29371da3e
commit 40841a4a27
10 changed files with 496 additions and 11 deletions

View File

@ -17,7 +17,7 @@ type Equipment struct {
type EquipmentHandle func(session *session.Enterprise, local string) *Equipment
type (
EquipmentInfo struct {
EquipmentInstance struct {
ID string `json:"id"`
*model2.ManageEquipment
}
@ -58,10 +58,10 @@ func (c *Equipment) List(kind int, code, title string, page, pageSize int) (*con
if err := model2.Pages(mManageEquipment.ManageEquipment, &out, page, pageSize, &count, where...); err != nil {
return nil, err
}
list := make([]*EquipmentInfo, 0)
list := make([]*EquipmentInstance, 0)
for _, v := range out {
list = append(list, &EquipmentInfo{
list = append(list, &EquipmentInstance{
ID: v.GetEncodeID(), ManageEquipment: v,
})
}