public class AjaxResponse extends Object implements Serializable
| 构造器和说明 |
|---|
AjaxResponse(int code,
String message,
Object data) |
| 限定符和类型 | 方法和说明 |
|---|---|
static AjaxResponse |
error(int code,
String msg) |
static AjaxResponse |
error(String msg) |
static AjaxResponse |
get(int code,
String msg,
Object data) |
int |
getCode() |
Object |
getData() |
String |
getMessage() |
void |
setData(Object data) |
static AjaxResponse |
success() |
static AjaxResponse |
success(Object data) |
static AjaxResponse |
success(String msg) |
static AjaxResponse |
success(String msg,
Object data) |
String |
toString() |
public static AjaxResponse success()
public static AjaxResponse success(String msg)
public static AjaxResponse success(Object data)
public static AjaxResponse success(String msg, Object data)
public static AjaxResponse error(String msg)
public static AjaxResponse error(int code, String msg)
public static AjaxResponse get(int code, String msg, Object data)
public int getCode()
public String getMessage()
public Object getData()
public void setData(Object data)
Copyright © 2019 dromara. All rights reserved.