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

      public R()
      已过时。
    • R

      public R​(IErrorCode errorCode)
      已过时。
  • 方法详细资料

    • ok

      public static <T> R<T> ok​(T data)
      已过时。
    • failed

      public static <T> R<T> failed​(String msg)
      已过时。
    • failed

      public static <T> R<T> failed​(IErrorCode errorCode)
      已过时。
    • restResult

      public static <T> R<T> restResult​(T data, IErrorCode errorCode)
      已过时。
    • ok

      public boolean ok()
      已过时。
    • serviceData

      public T serviceData()
      已过时。
      服务间调用非业务正常,异常直接释放
    • getCode

      public long getCode()
      已过时。
      业务错误码
    • getData

      public T getData()
      已过时。
      结果集
    • getMsg

      public String getMsg()
      已过时。
      描述
    • setCode

      public R<T> setCode​(long code)
      已过时。
      业务错误码
      返回:
      this.
    • setData

      public R<T> setData​(T data)
      已过时。
      结果集
      返回:
      this.
    • setMsg

      public R<T> setMsg​(String msg)
      已过时。
      描述
      返回:
      this.
    • equals

      public boolean equals​(Object o)
      已过时。
      覆盖:
      equals 在类中 Object
    • canEqual

      protected boolean canEqual​(Object other)
      已过时。
    • hashCode

      public int hashCode()
      已过时。
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      已过时。
      覆盖:
      toString 在类中 Object