iailab-framework/iailab-common/src/main/java/com/iailab/framework/common/pojo/CommonResult.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
iailab-framework/iailab-common/src/main/java/com/iailab/framework/common/pojo/CommonResult.java
@@ -77,6 +77,13 @@ return result; } public static CommonResult<String> success() { CommonResult<String> result = new CommonResult<>(); result.code = GlobalErrorCodeConstants.SUCCESS.getCode(); result.msg = "success"; return result; } public static boolean isSuccess(Integer code) { return Objects.equals(code, GlobalErrorCodeConstants.SUCCESS.getCode()); }