This commit is contained in:
@@ -26,14 +26,18 @@ import org.redkale.util.Utility;
|
|||||||
*/
|
*/
|
||||||
public class RetResult<T> {
|
public class RetResult<T> {
|
||||||
|
|
||||||
|
@ConvertColumn(index = 1)
|
||||||
protected int retcode;
|
protected int retcode;
|
||||||
|
|
||||||
|
@ConvertColumn(index = 2)
|
||||||
protected String retinfo;
|
protected String retinfo;
|
||||||
|
|
||||||
protected T result;
|
@ConvertColumn(index = 3)
|
||||||
|
|
||||||
protected Map<String, String> attach;
|
protected Map<String, String> attach;
|
||||||
|
|
||||||
|
@ConvertColumn(index = 4)
|
||||||
|
protected T result;
|
||||||
|
|
||||||
protected Convert convert;
|
protected Convert convert;
|
||||||
|
|
||||||
public RetResult() {
|
public RetResult() {
|
||||||
@@ -170,12 +174,10 @@ public class RetResult<T> {
|
|||||||
*
|
*
|
||||||
* @return 结果码
|
* @return 结果码
|
||||||
*/
|
*/
|
||||||
@ConvertColumn(index = 1)
|
|
||||||
public int getRetcode() {
|
public int getRetcode() {
|
||||||
return retcode;
|
return retcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ConvertColumn(index = 1)
|
|
||||||
public void setRetcode(int retcode) {
|
public void setRetcode(int retcode) {
|
||||||
this.retcode = retcode;
|
this.retcode = retcode;
|
||||||
}
|
}
|
||||||
@@ -185,7 +187,6 @@ public class RetResult<T> {
|
|||||||
*
|
*
|
||||||
* @return 结果信息
|
* @return 结果信息
|
||||||
*/
|
*/
|
||||||
@ConvertColumn(index = 2)
|
|
||||||
public String getRetinfo() {
|
public String getRetinfo() {
|
||||||
return retinfo;
|
return retinfo;
|
||||||
}
|
}
|
||||||
@@ -195,7 +196,6 @@ public class RetResult<T> {
|
|||||||
*
|
*
|
||||||
* @param retinfo 结果信息
|
* @param retinfo 结果信息
|
||||||
*/
|
*/
|
||||||
@ConvertColumn(index = 2)
|
|
||||||
public void setRetinfo(String retinfo) {
|
public void setRetinfo(String retinfo) {
|
||||||
this.retinfo = retinfo;
|
this.retinfo = retinfo;
|
||||||
}
|
}
|
||||||
@@ -205,7 +205,6 @@ public class RetResult<T> {
|
|||||||
*
|
*
|
||||||
* @return 结果附件
|
* @return 结果附件
|
||||||
*/
|
*/
|
||||||
@ConvertColumn(index = 3)
|
|
||||||
public Map<String, String> getAttach() {
|
public Map<String, String> getAttach() {
|
||||||
return attach;
|
return attach;
|
||||||
}
|
}
|
||||||
@@ -215,7 +214,6 @@ public class RetResult<T> {
|
|||||||
*
|
*
|
||||||
* @param attach Map
|
* @param attach Map
|
||||||
*/
|
*/
|
||||||
@ConvertColumn(index = 3)
|
|
||||||
public void setAttach(Map<String, String> attach) {
|
public void setAttach(Map<String, String> attach) {
|
||||||
this.attach = attach;
|
this.attach = attach;
|
||||||
}
|
}
|
||||||
@@ -237,7 +235,6 @@ public class RetResult<T> {
|
|||||||
*
|
*
|
||||||
* @return 结果对象
|
* @return 结果对象
|
||||||
*/
|
*/
|
||||||
@ConvertColumn(index = 4)
|
|
||||||
public T getResult() {
|
public T getResult() {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -247,7 +244,6 @@ public class RetResult<T> {
|
|||||||
*
|
*
|
||||||
* @param result T
|
* @param result T
|
||||||
*/
|
*/
|
||||||
@ConvertColumn(index = 4)
|
|
||||||
public void setResult(T result) {
|
public void setResult(T result) {
|
||||||
this.result = result;
|
this.result = result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user