Package com.arms.api.util.response
Class CommonResponse
java.lang.Object
com.arms.api.util.response.CommonResponse
CommonResponse은 Response의 결과를 리턴해주는 클래스이다..
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> CommonResponse.ApiResult<T>static <T> CommonResponse.ApiResult<T>static <T> CommonResponse.ApiResult<T>static <T> CommonResponse.ApiResult<T>static <T> CommonResponse.ApiResult<T>success(T response)
-
Method Details
-
success
-
error
public static <T> CommonResponse.ApiResult<T> error(Throwable throwable, org.springframework.http.HttpStatus status) -
error
public static <T> CommonResponse.ApiResult<T> error(String message, org.springframework.http.HttpStatus status) -
error
public static <T> CommonResponse.ApiResult<T> error(ErrorCode errorCode, org.springframework.http.HttpStatus status) -
error
public static <T> CommonResponse.ApiResult<T> error(String message, ErrorCode errorCode, org.springframework.http.HttpStatus status)
-