Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop

This commit is contained in:
eson
2023-06-20 19:37:08 +08:00
22 changed files with 406 additions and 485 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 {