| 构造器和说明 |
|---|
Ret() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Ret<Void> |
badRequest() |
static Ret<Void> |
fail(int code,
String msg) |
static Ret<Void> |
fail(Retable ret) |
static Ret<Void> |
fail(String msg) |
static Ret<Void> |
fail(String template,
Object... values) |
static Ret<Void> |
forbidden() |
int |
getCode() |
T |
getData() |
String |
getMsg() |
boolean |
isFail() |
boolean |
isOk() |
static Ret<Void> |
notFound() |
static <T> Ret<T> |
ok() |
static <T> Ret<T> |
ok(T data) |
static Ret<Void> |
serverError() |
void |
setCode(int code) |
void |
setData(T data) |
void |
setMsg(String msg) |
String |
toString() |
static Ret<Void> |
unauthorized() |
Copyright © 2021. All rights reserved.