This commit is contained in:
@@ -200,22 +200,12 @@ public class RetResult<T> {
|
|||||||
this.retinfo = retinfo;
|
this.retinfo = retinfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 判断结果是否成功返回, retcode = 0 视为成功, 否则视为错误码
|
|
||||||
*
|
|
||||||
* @return 是否成功
|
|
||||||
*/
|
|
||||||
@ConvertColumn(index = 3)
|
|
||||||
public boolean isSuccess() {
|
|
||||||
return retcode == 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 结果附件
|
* 结果附件
|
||||||
*
|
*
|
||||||
* @return 结果附件
|
* @return 结果附件
|
||||||
*/
|
*/
|
||||||
@ConvertColumn(index = 4)
|
@ConvertColumn(index = 3)
|
||||||
public Map<String, String> getAttach() {
|
public Map<String, String> getAttach() {
|
||||||
return attach;
|
return attach;
|
||||||
}
|
}
|
||||||
@@ -225,7 +215,7 @@ public class RetResult<T> {
|
|||||||
*
|
*
|
||||||
* @param attach Map
|
* @param attach Map
|
||||||
*/
|
*/
|
||||||
@ConvertColumn(index = 4)
|
@ConvertColumn(index = 3)
|
||||||
public void setAttach(Map<String, String> attach) {
|
public void setAttach(Map<String, String> attach) {
|
||||||
this.attach = attach;
|
this.attach = attach;
|
||||||
}
|
}
|
||||||
@@ -247,7 +237,7 @@ public class RetResult<T> {
|
|||||||
*
|
*
|
||||||
* @return 结果对象
|
* @return 结果对象
|
||||||
*/
|
*/
|
||||||
@ConvertColumn(index = 5)
|
@ConvertColumn(index = 4)
|
||||||
public T getResult() {
|
public T getResult() {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -257,11 +247,21 @@ public class RetResult<T> {
|
|||||||
*
|
*
|
||||||
* @param result T
|
* @param result T
|
||||||
*/
|
*/
|
||||||
@ConvertColumn(index = 5)
|
@ConvertColumn(index = 4)
|
||||||
public void setResult(T result) {
|
public void setResult(T result) {
|
||||||
this.result = result;
|
this.result = result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 判断结果是否成功返回, retcode = 0 视为成功, 否则视为错误码
|
||||||
|
*
|
||||||
|
* @return 是否成功
|
||||||
|
*/
|
||||||
|
@ConvertColumn(index = 5)
|
||||||
|
public boolean isSuccess() {
|
||||||
|
return retcode == 0;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return JsonConvert.root().convertTo(this);
|
return JsonConvert.root().convertTo(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user