fix
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user