Merge pull request #7 from DeligentNezha/patch-1

Update ServiceExceptionUtil.java
pull/2/MERGE
芋道源码 2020-04-17 04:02:27 -05:00 committed by GitHub
commit 233a441579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class ServiceExceptionUtil {
ServiceExceptionUtil.messages.put(code, message);
}
// TODO 芋艿,可能不是目前最优解,目前暂时这样
// TODO 芋艿,可能不是目前最优解,目前暂时这样 枚举实现接口
public static <T> CommonResult<T> error(Integer code) {
return CommonResult.error(code, messages.get(code));
}