Project/Gameple
[Project - Gameple] Project Gameple(9) - Generic을 적용하자
개요이번 포스팅에서는 API 응답 DTO에 Generic을 이용해 개선해보는 시간을 가져보겠습니다. 기존 API 응답 DTO@Datapublic class ApiResponse implements Serializable { @Schema(description = "서버 정의 상태코드" , example = "1") private String statusCode; @Schema(description = "서버 정의 메세지" , example = "1") private String message; @Schema(description = "데이터") private Object data; @Builder public ApiResponse(String statusCode..