This commit is contained in:
laodaming
2023-06-14 14:05:27 +08:00
parent 50bca808f1
commit 6f6da3f481
22 changed files with 1027 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ func NewSaveCanteenTypeProductLogic(ctx context.Context, svcCtx *svc.ServiceCont
// 保存餐厅类型的关联产品
func (l *SaveCanteenTypeProductLogic) SaveCanteenTypeProduct(req *types.SaveCanteenTypeProductReq, loginInfo *auth.UserInfo) (resp *basic.Response) {
if len(req.ProductList) == 0 {
return resp.SetStatusWithMessage(basic.CodeServiceErr, "product list can`t be empty")
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "product list can`t be empty")
}
canteenProductModel := gmodel.NewFsCanteenProductModel(l.svcCtx.MysqlConn)
//获取原有餐厅类型的所有产品