fix: admin database charset
This commit is contained in:
@@ -35,11 +35,11 @@ func NewStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *StatusLogi
|
||||
func (l *StatusLogic) Status(in *product.StatusReq) (*product.Response, error) {
|
||||
var req validator.ProductStatusValidator
|
||||
if msg := validateService.ValidateFromProto(in, &req); msg != utils.StringEmpty {
|
||||
return msgResponse(utils.Ok.Code, msg), nil
|
||||
return outResponse(utils.ErrorParams, msg), nil
|
||||
}
|
||||
|
||||
if req.Status == uint32(dao.ProductStatusDisabled) && len(req.Reason) < 1 {
|
||||
return failResponse(utils.ErrorReasonParams), nil
|
||||
return failErr(utils.ErrorReasonParams), nil
|
||||
}
|
||||
|
||||
var info dao.ProductCheckExist
|
||||
|
||||
Reference in New Issue
Block a user