feat:完善项目信息
This commit is contained in:
@ -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,
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user