| 程序包 | 说明 |
|---|---|
| top.iteratefast.bootstarter.restful.vo |
| 限定符和类型 | 方法和说明 |
|---|---|
static Resp |
Resp.error(Exception e)
基于异常构建一个错误响应
|
static Resp |
Resp.error(String errorCode,
String errorDescription,
String errorMsg)
构建错误响应
|
Resp |
Resp.setErrorCode(String errorCode) |
Resp |
Resp.setErrorDescription(String errorDescription) |
Resp |
Resp.setErrorMsg(String errorMsg) |
Resp |
Resp.setResult(T result) |
Resp |
Resp.setSuccess(boolean success) |
static Resp<String> |
Resp.success()
成功(无返回值)
|
static <T> Resp<T> |
Resp.success(T result)
成功
|
Copyright © 2018. All rights reserved.