Class ResultDTOUtils<T>

java.lang.Object
com.luna.common.dto.ResultDTOUtils<T>

public class ResultDTOUtils<T> extends Object
Author:
Luna
  • Constructor Details

    • ResultDTOUtils

      public ResultDTOUtils()
  • Method Details

    • checkResultAndGetData

      public static <T> T checkResultAndGetData(ResultDTO<T> resultDTO)
    • success

      public static ResultDTO<Void> success()
    • success

      public static <T> ResultDTO<T> success(T object)
    • success

      public static ResultDTO<Void> success(int code, String message)
    • success

      public static <T> ResultDTO<T> success(int code, String message, T object)
    • failure

      public static <T> ResultDTO<T> failure(T object)
    • failure

      public static ResultDTO<Void> failure()
    • failure

      public static ResultDTO<Void> failure(int code, String message)
    • failure

      public static <T> ResultDTO<T> failure(int code, String message, T object)