Commit 6d3be815 by wangli

修改变量名称

1 parent b879d39d
...@@ -73,11 +73,11 @@ public class Result<T> { ...@@ -73,11 +73,11 @@ public class Result<T> {
this.message = message; this.message = message;
} }
public T getData() { public T getResult() {
return this.result; return this.result;
} }
public void setData(T result) { public void setResult(T result) {
this.result = result; this.result = result;
} }
...@@ -85,7 +85,7 @@ public class Result<T> { ...@@ -85,7 +85,7 @@ public class Result<T> {
Result<T> r = new Result<>(); Result<T> r = new Result<>();
r.setCode(code); r.setCode(code);
r.setMessage(message); r.setMessage(message);
r.setData(result); r.setResult(result);
return r; return r;
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!