| 构造器和说明 |
|---|
R() |
R(IErrorCode errorCode) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> R<T> |
failed(IErrorCode errorCode) |
static <T> R<T> |
failed(java.lang.String msg) |
boolean |
ok() |
static <T> R<T> |
ok(T data) |
static <T> R<T> |
restResult(T data,
IErrorCode errorCode) |
T |
serviceData()
服务间调用非业务正常,异常直接释放
|
public R()
public R(IErrorCode errorCode)
public static <T> R<T> ok(T data)
public static <T> R<T> failed(java.lang.String msg)
public static <T> R<T> failed(IErrorCode errorCode)
public static <T> R<T> restResult(T data, IErrorCode errorCode)
public boolean ok()
public T serviceData()