Commit 34031532 by ypenglv

common处理

1 parent 17adc532
......@@ -38,7 +38,7 @@ public class BusinessExceptionHandler {
@ResponseBody
public Result businessErrorHandler(BusinessException 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;
@Data
public class Result<T> {
private Long code;
private Integer intCode;
private String message;
private T data;
......@@ -23,10 +22,6 @@ public class Result<T> {
this.code = code;
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!