This commit is contained in:
laodaming 2023-11-22 16:04:48 +08:00
parent 9f412fe108
commit 4f814d7361

View File

@ -42,8 +42,8 @@ func (l *GetProductModelsLogic) GetProductModels(req *types.GetProductModelsReq,
logx.Error(err)
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "err param(format err)")
}
if len(productIds) > 20 {
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "the count of product can`t greater than 20")
if len(productIds) > 10 {
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "the count of product can`t greater than 10")
}
if len(productIds) == 0 {
return resp.SetStatusWithMessage(basic.CodeOK, "success", nil)