响应码改为20000

test^2
wj 2 years ago
parent f08a344c1c
commit 6ad32b2933

@ -8,7 +8,7 @@ import lombok.Getter;
@Getter @Getter
public enum ResultEnum { public enum ResultEnum {
SUCCESS(0, "success"), SUCCESS(20000, "success"),
NOT_NETWORK(1, "系统繁忙,请稍后再试。"), NOT_NETWORK(1, "系统繁忙,请稍后再试。"),
LOGIN_VERIFY_FALL(2, "登录失效"), LOGIN_VERIFY_FALL(2, "登录失效"),
PARAM_VERIFY_FALL(3, "参数验证错误"), PARAM_VERIFY_FALL(3, "参数验证错误"),

@ -18,7 +18,7 @@ public class ResultVOUtils {
*/ */
public static BaseResponse success(Object data) { public static BaseResponse success(Object data) {
BaseResponse<Object> baseResponse = new BaseResponse<>(); BaseResponse<Object> baseResponse = new BaseResponse<>();
baseResponse.setCode(20000); baseResponse.setCode(ResultEnum.SUCCESS.getCode());
baseResponse.setMessage("success"); baseResponse.setMessage("success");
baseResponse.setData(data); baseResponse.setData(data);
return baseResponse; return baseResponse;

Loading…
Cancel
Save