类 RespVO<T>
- java.lang.Object
-
- cn.woodwhales.common.model.vo.RespVO<T>
-
public class RespVO<T> extends Object
通用响应视图- 作者:
- woodwhales on 2020-08-25
-
-
构造器概要
构造器 构造器 说明 RespVO()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static <T> RespVO<T>buildWithBaseRespResult(BaseRespResult baseRespResult)static <T> RespVO<T>buildWithBaseRespResult(BaseRespResult baseRespResult, T data)static <T> RespVO<T>error()static <T> RespVO<T>error(BaseRespResult baseRespResult)static <T> RespVO<T>error(BaseRespResult baseRespResult, T data)static <T> RespVO<T>errorWithErrorMsg(BaseRespResult baseRespResult, String errorMsg)static <T> RespVO<T>errorWithErrorMsg(String errorMsg)static <S,T>
RespVO<T>resp(OpResult<S> opResult, java.util.function.Function<S,T> function)static <T> RespVO<T>resp(OpResult<T> opResult)static <T> RespVO<T>success()static <T> RespVO<T>success(T data)
-
-
-
方法详细资料
-
success
public static <T> RespVO<T> success()
-
success
public static <T> RespVO<T> success(T data)
-
error
public static <T> RespVO<T> error()
-
error
public static <T> RespVO<T> error(BaseRespResult baseRespResult)
-
error
public static <T> RespVO<T> error(BaseRespResult baseRespResult, T data)
-
buildWithBaseRespResult
public static <T> RespVO<T> buildWithBaseRespResult(BaseRespResult baseRespResult)
-
errorWithErrorMsg
public static <T> RespVO<T> errorWithErrorMsg(BaseRespResult baseRespResult, String errorMsg)
-
buildWithBaseRespResult
public static <T> RespVO<T> buildWithBaseRespResult(BaseRespResult baseRespResult, T data)
-
resp
public static <S,T> RespVO<T> resp(OpResult<S> opResult, java.util.function.Function<S,T> function)
-
-