This commit is contained in:
@@ -11,7 +11,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 本地模式注解。
|
* 本地模式注解。
|
||||||
* 声明为LocalService的Service将不会变成远程模式,只能以本地模式存在, 无论配置文件中是否配置成远程模式都会被忽略。
|
* 声明为LocalService的Service只能以本地模式存在, 即使配置文件中配置成远程模式也将被忽略。
|
||||||
*
|
*
|
||||||
* <p> 详情见: http://redkale.org
|
* <p> 详情见: http://redkale.org
|
||||||
* @author zhangjx
|
* @author zhangjx
|
||||||
|
|||||||
@@ -39,7 +39,13 @@ public class RetResult<T> {
|
|||||||
public void setResult(T result) {
|
public void setResult(T result) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 使用 RetResult.success() 方法代替
|
||||||
|
*
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public static final RetResult SUCCESS = new RetSuccessResult();
|
public static final RetResult SUCCESS = new RetSuccessResult();
|
||||||
|
|
||||||
protected int retcode;
|
protected int retcode;
|
||||||
@@ -70,6 +76,10 @@ public class RetResult<T> {
|
|||||||
this.result = result;
|
this.result = result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static RetResult success() {
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 判断结果是否成功返回, retcode = 0 视为成功, 否则视为错误码
|
* 判断结果是否成功返回, retcode = 0 视为成功, 否则视为错误码
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user