From 01da67dbf8f352b5baf8723a760d0c4fbf087a77 Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Mon, 11 Jul 2016 14:13:27 +0800 Subject: [PATCH] --- src/org/redkale/service/RetResult.java | 66 +++++++++++++------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/org/redkale/service/RetResult.java b/src/org/redkale/service/RetResult.java index aa879042d..f920352b8 100644 --- a/src/org/redkale/service/RetResult.java +++ b/src/org/redkale/service/RetResult.java @@ -79,19 +79,6 @@ public class RetResult { return retcode == 0; } - /** - * 结果码 0表示成功、 非0表示错误 - * - * @return 结果码 - */ - public int getRetcode() { - return retcode; - } - - public void setRetcode(int retcode) { - this.retcode = retcode; - } - /** * 同 setRetcode * @@ -104,14 +91,6 @@ public class RetResult { return this; } - public String getRetinfo() { - return retinfo; - } - - public void setRetinfo(String retinfo) { - this.retinfo = retinfo; - } - /** * 同 setRetinfo * @@ -124,6 +103,39 @@ public class RetResult { return this; } + /** + * 同 setResult + * + * @param result result + * + * @return RetResult + */ + public RetResult result(T result) { + this.result = result; + return this; + } + + /** + * 结果码 0表示成功、 非0表示错误 + * + * @return 结果码 + */ + public int getRetcode() { + return retcode; + } + + public void setRetcode(int retcode) { + this.retcode = retcode; + } + + public String getRetinfo() { + return retinfo; + } + + public void setRetinfo(String retinfo) { + this.retinfo = retinfo; + } + /** * 结果对象, 通常只有在retcode = 0时值才有效 * @@ -137,18 +149,6 @@ public class RetResult { this.result = result; } - /** - * 同 setResult - * - * @param result result - * - * @return RetResult - */ - public RetResult result(T result) { - this.result = result; - return this; - } - @Override public String toString() { return JsonFactory.root().getConvert().convertTo(this);