This commit is contained in:
laodaming
2023-06-09 12:16:37 +08:00
parent 2a18f0c21a
commit 5e9bfeacb6
5 changed files with 101 additions and 0 deletions

View File

@@ -15,6 +15,9 @@ service canteen {
//获取餐厅详情
@handler GetCanteenDetailHandler
post /canteen-type/detail(GetCanteenDetailReq) returns (response);
//保存餐厅类型关联产品数据
@handler SaveCanteenTypeProductHandler
post /canteen-type/save(SaveCanteenTypeProductReq) returns (response);
}
//获取餐厅详情
@@ -31,4 +34,16 @@ type CanteenProduct {
Name string `json:"name"`
SizeId int64 `json:"size_id"`
SId string `json:"s_id"`
}
//保存餐厅类型关联产品数据
type SaveCanteenTypeProductReq {
Id int64 `json:"id"`
Name string `json:"name"`
ProductList []SaveCanteenProduct `json:"productList"`
}
type SaveCanteenProduct {
Id int64 `json:"id"`
Name string `json:"name"`
SizeId int64 `json:"size_id"`
SId string `json:"s_id"`
}