public class AjaxResponse<T> extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static long |
serialVersionUID |
| 构造器和说明 |
|---|
AjaxResponse() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> AjaxResponse |
build(AjaxResponseCode responseCode) |
static <T> AjaxResponse |
build(AjaxResponseCode responseCode,
T body) |
static <T> AjaxResponse |
build(int code) |
static <T> AjaxResponse |
build(int code,
String message) |
static <T> AjaxResponse |
build(int code,
T body) |
static <T> AjaxResponse |
buildFailed()
请求处理失败
|
static <T> AjaxResponse |
buildFailed(String message)
请求处理失败
|
static <T> AjaxResponse |
buildFailed(String message,
T body)
请求处理失败
|
static <T> AjaxResponse |
buildFailedbody(T body)
请求处理失败
|
static <T> AjaxResponse |
buildSuccess()
请求处理成功
|
static <T> AjaxResponse |
buildSuccess(String message)
请求处理成功
|
static <T> AjaxResponse |
buildSuccess(String message,
T body)
请求处理成功
|
static <T> AjaxResponse |
buildSuccessbody(T body)
请求处理成功
|
public static final long serialVersionUID
public static <T> AjaxResponse build(int code)
public static <T> AjaxResponse build(int code, String message)
public static <T> AjaxResponse build(int code, T body)
public static <T> AjaxResponse build(AjaxResponseCode responseCode)
public static <T> AjaxResponse build(AjaxResponseCode responseCode, T body)
public static <T> AjaxResponse buildSuccess()
public static <T> AjaxResponse buildSuccess(String message)
message - public static <T> AjaxResponse buildSuccess(String message, T body)
message - body - public static <T> AjaxResponse buildSuccessbody(T body)
body - public static <T> AjaxResponse buildFailed()
public static <T> AjaxResponse buildFailed(String message)
message - public static <T> AjaxResponse buildFailed(String message, T body)
message - body - public static <T> AjaxResponse buildFailedbody(T body)
body - Copyright © 2018. All rights reserved.