Unverified 提交 233a4415 authored 作者: 芋道源码's avatar 芋道源码 提交者: GitHub

Merge pull request #7 from DeligentNezha/patch-1

Update ServiceExceptionUtil.java
...@@ -39,7 +39,7 @@ public class ServiceExceptionUtil { ...@@ -39,7 +39,7 @@ public class ServiceExceptionUtil {
ServiceExceptionUtil.messages.put(code, message); ServiceExceptionUtil.messages.put(code, message);
} }
// TODO 芋艿,可能不是目前最优解,目前暂时这样 // TODO 芋艿,可能不是目前最优解,目前暂时这样 枚举实现接口
public static <T> CommonResult<T> error(Integer code) { public static <T> CommonResult<T> error(Integer code) {
return CommonResult.error(code, messages.get(code)); return CommonResult.error(code, messages.get(code));
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论