@Deprecated public class AjaxResult extends HashMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CODE_TAG
已过时。
状态码
|
static String |
DATA_TAG
已过时。
数据对象
|
static String |
MSG_TAG
已过时。
返回内容
|
private static long |
serialVersionUID
已过时。
|
| 构造器和说明 |
|---|
AjaxResult()
已过时。
初始化一个新创建的 AjaxResult 对象,使其表示一个空消息。
|
AjaxResult(int code,
String msg)
已过时。
初始化一个新创建的 AjaxResult 对象
|
AjaxResult(int code,
String msg,
Object data)
已过时。
初始化一个新创建的 AjaxResult 对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
static AjaxResult |
error()
已过时。
返回错误消息
|
static AjaxResult |
error(int code,
String msg)
已过时。
返回错误消息
|
static AjaxResult |
error(String msg)
已过时。
返回错误消息
|
static AjaxResult |
error(String msg,
Object data)
已过时。
返回错误消息
|
AjaxResult |
put(String key,
Object value)
已过时。
方便链式调用
|
static AjaxResult |
success()
已过时。
返回成功消息
|
static AjaxResult |
success(Object data)
已过时。
返回成功数据
|
static AjaxResult |
success(String msg)
已过时。
返回成功消息
|
static AjaxResult |
success(String msg,
Object data)
已过时。
返回成功消息
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringprivate static final long serialVersionUID
public AjaxResult()
public AjaxResult(int code,
String msg)
code - 状态码msg - 返回内容public static AjaxResult success()
public static AjaxResult success(Object data)
public static AjaxResult success(String msg)
msg - 返回内容public static AjaxResult success(String msg, Object data)
msg - 返回内容data - 数据对象public static AjaxResult error()
public static AjaxResult error(String msg)
msg - 返回内容public static AjaxResult error(String msg, Object data)
msg - 返回内容data - 数据对象public static AjaxResult error(int code, String msg)
code - 状态码msg - 返回内容Copyright © 2024. All rights reserved.