类 RespVO<T>


  • public class RespVO<T>
    extends Object
    通用响应视图
    作者:
    woodwhales on 2020-08-25
    • 构造器详细资料

      • RespVO

        public RespVO()
    • 方法详细资料

      • success

        public static <T> RespVO<T> success()
      • success

        public static <T> RespVO<T> success​(T data)
      • error

        public static <T> RespVO<T> error()
      • buildWithBaseRespResult

        public static <T> RespVO<T> buildWithBaseRespResult​(BaseRespResult baseRespResult)
      • errorWithErrorMsg

        public static <T> RespVO<T> errorWithErrorMsg​(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)