Commit 58c7d79a authored by fangxinjiang's avatar fangxinjiang

返回200

parent 596f5329
......@@ -72,10 +72,7 @@ public interface CommonConstants {
*/
Integer SUCCESS = 200;
/**
* 成功标记 200
*/
int SUCCESS_CODE = 200;
/**
* 失败标记
......
......@@ -51,7 +51,7 @@ public class R<T> implements Serializable {
public R(T data) {
super();
this.data = data;
this.code = CommonConstants.SUCCESS_CODE;
this.code = CommonConstants.SUCCESS;
}
//这个异常类不要放开,new R(null)容易出现问题
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment