类 ResponseWrapper<T>
java.lang.Object
io.eden.common.core.ResponseWrapper<T>
- 所有已实现的接口:
Serializable
public class ResponseWrapper<T> extends Object implements Serializable
- 另请参阅:
- 序列化表格
-
构造器概要
构造器 构造器 说明 ResponseWrapper(boolean succ, String msg, T content) -
方法概要
修饰符和类型 方法 说明 ResponseWrapper<T>addOption(String key, Object value)static ResponseWrapperfail()static <T> ResponseWrapper<T>fail(Exception e)static ResponseWrapperfail(String msg)static <T> ResponseWrapper<T>fail(String msg, Exception e)ObjectgetOption(String key)booleanisContentSucc()ResponseWrapper<T>setCode(String code)static ResponseWrappersuccess()static ResponseWrappersuccess(String msg)static <T> ResponseWrapper<T>success(T content)static <T> ResponseWrapper<T>success(T content, String msg)
-
构造器详细资料
-
ResponseWrapper
-
-
方法详细资料
-
success
-
success
-
success
-
success
-
fail
-
fail
-
fail
-
fail
-
addOption
-
getOption
-
setCode
-
isContentSucc
public boolean isContentSucc()
-