类 R<T>
java.lang.Object
com.baomidou.mybatisplus.extension.api.R<T>
- 所有已实现的接口:
Serializable
@Deprecated public class R<T> extends Object implements Serializable
已过时。
REST API 返回结果
- 从以下版本开始:
- 2018-06-05
- 作者:
- hubin
- 另请参阅:
- 序列化表格
-
构造器概要
构造器 构造器 说明 R()已过时。R(IErrorCode errorCode)已过时。 -
方法概要
修饰符和类型 方法 说明 protected booleancanEqual(Object other)已过时。booleanequals(Object o)已过时。static <T> R<T>failed(IErrorCode errorCode)已过时。static <T> R<T>failed(String msg)已过时。longgetCode()已过时。业务错误码TgetData()已过时。结果集StringgetMsg()已过时。描述inthashCode()已过时。booleanok()已过时。static <T> R<T>ok(T data)已过时。static <T> R<T>restResult(T data, IErrorCode errorCode)已过时。TserviceData()已过时。服务间调用非业务正常,异常直接释放R<T>setCode(long code)已过时。业务错误码R<T>setData(T data)已过时。结果集R<T>setMsg(String msg)已过时。描述StringtoString()已过时。
-
构造器详细资料
-
R
public R()已过时。 -
R
已过时。
-
-
方法详细资料
-
ok
已过时。 -
failed
已过时。 -
failed
已过时。 -
restResult
已过时。 -
ok
public boolean ok()已过时。 -
serviceData
已过时。服务间调用非业务正常,异常直接释放 -
getCode
public long getCode()已过时。业务错误码 -
getData
已过时。结果集 -
getMsg
已过时。描述 -
setCode
已过时。业务错误码- 返回:
this.
-
setData
已过时。结果集- 返回:
this.
-
setMsg
已过时。描述- 返回:
this.
-
equals
已过时。 -
canEqual
已过时。 -
hashCode
public int hashCode()已过时。 -
toString
已过时。
-