类 ApiController

java.lang.Object
com.baomidou.mybatisplus.extension.api.ApiController

@Deprecated
public class ApiController
extends Object
已过时。
REST API 通用控制器
从以下版本开始:
2018-06-08
作者:
hubin
  • 字段详细资料

    • logger

      protected final org.slf4j.Logger logger
      已过时。
  • 构造器详细资料

    • ApiController

      public ApiController()
      已过时。
  • 方法详细资料

    • success

      protected <T> R<T> success​(T data)
      已过时。
      请求成功
      类型参数:
      T - 对象泛型
      参数:
      data - 数据内容
      返回:
      ignore
    • failed

      protected <T> R<T> failed​(String msg)
      已过时。
      请求失败
      参数:
      msg - 提示内容
      返回:
      ignore
    • failed

      protected <T> R<T> failed​(IErrorCode errorCode)
      已过时。
      请求失败
      参数:
      errorCode - 请求错误码
      返回:
      ignore