From 6ad32b2933fac5dbfe2b5ee11ab1641351f2d39e Mon Sep 17 00:00:00 2001 From: wj <1285151836@qq.com> Date: Wed, 17 May 2023 16:29:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=8D=E5=BA=94=E7=A0=81=E6=94=B9=E4=B8=BA20?= =?UTF-8?q?000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/glxp/sale/common/enums/ResultEnum.java | 2 +- .../src/main/java/com/glxp/sale/common/util/ResultVOUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-common/src/main/java/com/glxp/sale/common/enums/ResultEnum.java b/api-common/src/main/java/com/glxp/sale/common/enums/ResultEnum.java index 0fed18d..8fc34c8 100644 --- a/api-common/src/main/java/com/glxp/sale/common/enums/ResultEnum.java +++ b/api-common/src/main/java/com/glxp/sale/common/enums/ResultEnum.java @@ -8,7 +8,7 @@ import lombok.Getter; @Getter public enum ResultEnum { - SUCCESS(0, "success"), + SUCCESS(20000, "success"), NOT_NETWORK(1, "系统繁忙,请稍后再试。"), LOGIN_VERIFY_FALL(2, "登录失效"), PARAM_VERIFY_FALL(3, "参数验证错误"), diff --git a/api-common/src/main/java/com/glxp/sale/common/util/ResultVOUtils.java b/api-common/src/main/java/com/glxp/sale/common/util/ResultVOUtils.java index 7702da5..20368a6 100644 --- a/api-common/src/main/java/com/glxp/sale/common/util/ResultVOUtils.java +++ b/api-common/src/main/java/com/glxp/sale/common/util/ResultVOUtils.java @@ -18,7 +18,7 @@ public class ResultVOUtils { */ public static BaseResponse success(Object data) { BaseResponse baseResponse = new BaseResponse<>(); - baseResponse.setCode(20000); + baseResponse.setCode(ResultEnum.SUCCESS.getCode()); baseResponse.setMessage("success"); baseResponse.setData(data); return baseResponse;