类 BaseController

java.lang.Object
io.springboot.plugin.goview.common.base.BaseController
直接已知子类:
GoViewProjectAPIController

public class BaseController extends Object
web层通用数据处理
作者:
fuce
  • 构造器详细资料

    • BaseController

      public BaseController()
  • 方法详细资料

    • initBinder

      @InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
      将前台传递过来的日期格式的字符串,自动转化为Date类型
    • toAjax

      protected AjaxResult toAjax(int rows)
      响应返回结果
      参数:
      rows - 影响行数
      返回:
      操作结果
    • success

      public AjaxResult success()
      返回成功
    • error

      public AjaxResult error()
      返回失败消息
    • success

      public AjaxResult success(String message)
      返回成功消息
    • error

      public AjaxResult error(String message)
      返回失败消息
    • error

      public AjaxResult error(int code, String message)
      返回错误码消息
    • retobject

      public AjaxResult retobject(int code, Object data)
      返回object数据
    • redirect

      public String redirect(String url)
      页面跳转
    • pageTable

      protected static ResultTable pageTable(Object data, long count)
      Describe: 返回数据表格数据 分页 Param data Return 表格分页数据
    • dataTable

      protected static ResultTable dataTable(Object data)
      Describe: 返回数据表格数据 Param data Return 表格分页数据
    • treeTable

      protected static ResultTable treeTable(Object data)
      Describe: 返回树状表格数据 分页 Param data Return 表格分页数据