Skip to content

Commit

Permalink
Merge pull request #17 from FC-Toy-Project-9/feature/responseDto
Browse files Browse the repository at this point in the history
Chore : 코드 리팩토링
  • Loading branch information
JeongUijeong authored Oct 27, 2023
2 parents 491555f + e7b019f commit 429a32d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/fc/toy_project2/global/DTO/ResponseDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ResponseDTO<T>{
* @return 생성된 ResponseDTO 객체
*/
public static <T> ResponseDTO<T> res (HttpStatus httpStatus, @Nullable T data, String message) {
return (ResponseDTO<T>) ResponseDTO.builder()
return ResponseDTO.<T>builder()
.code(httpStatus.value())
.message(message)
.data(data)
Expand All @@ -43,7 +43,7 @@ public static <T> ResponseDTO<T> res (HttpStatus httpStatus, @Nullable T data, S
* @return 생성된 ResponseDTO 객체
*/
public static <T> ResponseDTO<T> res (HttpStatus httpStatus, String message) {
return (ResponseDTO<T>) ResponseDTO.builder()
return ResponseDTO.<T>builder()
.code(httpStatus.value())
.message(message)
.build();
Expand Down

0 comments on commit 429a32d

Please sign in to comment.