Commit 3ad49e7650ef13b184aba3e63dd39eb7e7e7d3a9
1 parent
68236c3297
Exists in
master
and in
6 other branches
返回码文件提交
Showing 1 changed file with 5 additions and 0 deletions
platform-common/src/main/java/com/lyms/platform/common/result/RespBuilder.java
View file @
3ad49e7
... | ... | @@ -17,7 +17,12 @@ |
17 | 17 | } |
18 | 18 | |
19 | 19 | public static BaseObjectResponse buildErro(ResponseCode code) { |
20 | + return buildErro(code, null); | |
21 | + } | |
22 | + | |
23 | + public static BaseObjectResponse buildErro(ResponseCode code, Object data) { | |
20 | 24 | BaseObjectResponse resp = new BaseObjectResponse(); |
25 | + resp.setData(data); | |
21 | 26 | if(code != null) { |
22 | 27 | resp.setErrorcode(code.getCode()); |
23 | 28 | resp.setErrormsg(code.getMsg()); |