Commit 34031532 by ypenglv

common处理

1 parent 17adc532
...@@ -38,7 +38,7 @@ public class BusinessExceptionHandler { ...@@ -38,7 +38,7 @@ public class BusinessExceptionHandler {
@ResponseBody @ResponseBody
public Result businessErrorHandler(BusinessException e) { public Result businessErrorHandler(BusinessException e) {
log.error (e.getMessage (), e); log.error (e.getMessage (), e);
return new Result(e.getStatusCode(), e.getMessage()); return new Result(new Long((long)e.getStatusCode()), e.getMessage());
} }
/** /**
......
...@@ -10,7 +10,6 @@ import org.nafmii.constant.MessageEnum; ...@@ -10,7 +10,6 @@ import org.nafmii.constant.MessageEnum;
@Data @Data
public class Result<T> { public class Result<T> {
private Long code; private Long code;
private Integer intCode;
private String message; private String message;
private T data; private T data;
...@@ -23,10 +22,6 @@ public class Result<T> { ...@@ -23,10 +22,6 @@ public class Result<T> {
this.code = code; this.code = code;
this.message = message; this.message = message;
} }
public Result(Integer intCode, String message) {
this.intCode = intCode;
this.message = message;
}
/** /**
* 成功返回结果 * 成功返回结果
* *
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!