From b94fb43240d823b69d967610a24121b9a33c4d6d Mon Sep 17 00:00:00 2001 From: shijie <648688341@qq.com> Date: Tue, 9 Mar 2021 14:23:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E8=BF=94=E5=9B=9E=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/msdw/tms/entity/response/ResponseResult.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/msdw/tms/entity/response/ResponseResult.java b/src/main/java/com/msdw/tms/entity/response/ResponseResult.java index 2b2464b..45a6820 100644 --- a/src/main/java/com/msdw/tms/entity/response/ResponseResult.java +++ b/src/main/java/com/msdw/tms/entity/response/ResponseResult.java @@ -24,7 +24,7 @@ public class ResponseResult { /** * 状态码 */ - private int code; + private int status; /** * 返回的数据 @@ -36,15 +36,15 @@ public class ResponseResult { */ private String message; - public ResponseResult(boolean success, int code, String message) { + public ResponseResult(boolean success, int status, String message) { this.success = success; - this.code = code; + this.status = status; this.message = message; } public ResponseResult(ResultCode resultCode) { this.success = resultCode.success(); - this.code = resultCode.code(); + this.status = resultCode.code(); this.message = resultCode.message(); } @@ -68,8 +68,8 @@ public class ResponseResult { return new ResponseResult(CommonCode.FAIL); } - public static ResponseResult FAIL(int code, String message) { - return new ResponseResult<>(false, code, null, message); + public static ResponseResult FAIL(int status, String message) { + return new ResponseResult<>(false, status, null, message); } }