public class ApiResult<T> extends Object implements Serializable
REST API 返回结果
| Constructor and Description |
|---|
ApiResult() |
| Modifier and Type | Method and Description |
|---|---|
static ApiResult |
fail() |
static ApiResult |
fail(ApiCode apiCode) |
static ApiResult |
fail(ApiCode apiCode,
Object data) |
static ApiResult |
fail(String msg) |
static ApiResult |
fail(String key,
Object value) |
static ApiResult |
ok() |
static ApiResult |
ok(Object data) |
static ApiResult |
ok(Object data,
String msg) |
static ApiResult |
okMap(String key,
Object value) |
static ApiResult |
result(ApiCode apiCode) |
static ApiResult |
result(ApiCode apiCode,
Object data) |
static ApiResult |
result(ApiCode apiCode,
String msg,
Object data) |
static ApiResult |
result(boolean flag) |
Copyright © 2019. All rights reserved.