This commit is contained in:
laodaming
2023-06-20 18:37:56 +08:00
parent 313e8a9457
commit f6cee27c3f
19 changed files with 351 additions and 346 deletions

View File

@@ -94,9 +94,9 @@ func (l *GetCanteenDetailLogic) GetCanteenDetail(req *types.GetCanteenDetailReq,
mapSize[v.Id] = v
}
//组装返回
list := make([]types.CanteenProduct, 0, len(canteenProductList))
list := make([]*types.CanteenProduct, 0, len(canteenProductList))
for _, v := range canteenProductList {
data := types.CanteenProduct{
data := &types.CanteenProduct{
Id: v.Id,
SizeId: *v.SizeId,
SId: *v.Sid,

View File

@@ -10,9 +10,9 @@ type GetCanteenDetailReq struct {
}
type GetCanteenDetailRsp struct {
Id int64 `json:"id"`
Name string `json:"name"`
ProductList []CanteenProduct `json:"product_list"`
Id int64 `json:"id"`
Name string `json:"name"`
ProductList []*CanteenProduct `json:"product_list"`
}
type CanteenProduct struct {