| Package | Description |
|---|---|
| io.geekidea.springbootplus.common.api |
| Modifier and Type | Method and Description |
|---|---|
static ApiCode |
ApiCode.getApiCode(int code) |
static ApiCode |
ApiCode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiCode[] |
ApiCode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
protected ApiResult<Object> |
ApiController.fail(ApiCode apiCode)
请求失败
|
static ApiResult |
ApiResult.fail(ApiCode apiCode) |
static ApiResult |
ApiResult.fail(ApiCode apiCode,
Object data) |
static ApiResult |
ApiResult.result(ApiCode apiCode) |
static ApiResult |
ApiResult.result(ApiCode apiCode,
Object data) |
static ApiResult |
ApiResult.result(ApiCode apiCode,
String msg,
Object data) |
Copyright © 2019. All rights reserved.