public class SummerController extends Object
构造说明 :
new DataResultException();
| 构造器和说明 |
|---|
SummerController() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
redirect(String action)
springMVC 重定向
|
protected Map<String,Object> |
renderJSON(DataResult result)
返回 json 对象
|
protected Map<String,Object> |
renderJSON(Object... params)
返回 json 对象
|
protected Map<String,Object> |
renderLayuiFileUpload(boolean status,
Object data,
String msg)
返回 layui fileupload 标准数据
|
protected Map<String,Object> |
renderLayuiTableData(boolean status,
Object data,
Integer dataCount,
String msg)
返回 layui table 的数据类型
|
void |
setRediectErrorMessage(org.springframework.web.servlet.mvc.support.RedirectAttributesModelMap model,
String msg)
设置跨重定向的 spring mvc 返回消息
|
void |
setRediectSuccessMessage(org.springframework.web.servlet.mvc.support.RedirectAttributesModelMap model,
String msg)
设置跨重定向的 spring mvc 返回消息
|
void |
setRediectWarnMessage(org.springframework.web.servlet.mvc.support.RedirectAttributesModelMap model,
String msg)
设置跨重定向的 spring mvc 返回消息
|
protected Map<String,Object> renderJSON(Object... params)
params - 按照 status 状态 、data 数据、message、传递protected Map<String,Object> renderJSON(DataResult result)
result - DataResult 类型protected String redirect(String action)
action - 例如 /test/getUserpublic void setRediectErrorMessage(org.springframework.web.servlet.mvc.support.RedirectAttributesModelMap model,
String msg)
model - 重定向 mapmsg - 消息public void setRediectSuccessMessage(org.springframework.web.servlet.mvc.support.RedirectAttributesModelMap model,
String msg)
model - 重定向 mapmsg - 消息public void setRediectWarnMessage(org.springframework.web.servlet.mvc.support.RedirectAttributesModelMap model,
String msg)
model - 重定向 mapmsg - 消息protected Map<String,Object> renderLayuiTableData(boolean status, Object data, Integer dataCount, String msg)
status - 状态data - 数据dataCount - 总行数msg - 消息 ,仅在失败时有效Copyright © 2019. All rights reserved.