public class AjaxResponse extends Object implements Serializable
| 构造器和说明 |
|---|
AjaxResponse(int code,
String message,
Object data)
Instantiates a new Ajax response.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static AjaxResponse |
error(int code,
String msg)
Error ajax response.
|
static AjaxResponse |
error(String msg)
Error ajax response.
|
static AjaxResponse |
get(int code,
String msg,
Object data)
Get ajax response.
|
int |
getCode()
Gets code.
|
Object |
getData()
Gets data.
|
String |
getMessage()
Gets message.
|
void |
setData(Object data)
Sets data.
|
static AjaxResponse |
success()
Success ajax response.
|
static AjaxResponse |
success(Object data)
Success ajax response.
|
static AjaxResponse |
success(String msg)
Success ajax response.
|
static AjaxResponse |
success(String msg,
Object data)
Success ajax response.
|
String |
toString() |
public static AjaxResponse success()
public static AjaxResponse success(String msg)
msg - the msgpublic static AjaxResponse success(Object data)
data - the datapublic static AjaxResponse success(String msg, Object data)
msg - the msgdata - the datapublic static AjaxResponse error(String msg)
msg - the msgpublic static AjaxResponse error(int code, String msg)
code - the codemsg - the msgpublic static AjaxResponse get(int code, String msg, Object data)
code - the codemsg - the msgdata - the datapublic int getCode()
public String getMessage()
public Object getData()
public void setData(Object data)
data - the dataCopyright © 2019 dromara. All rights reserved.