From d77dae4b11db5e2e07b38ee47e63deb3672f76e6 Mon Sep 17 00:00:00 2001 From: Minjae-An Date: Mon, 11 Mar 2024 22:01:27 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=83=81=EB=8C=80=20=ED=94=84=EB=A1=9C?= =?UTF-8?q?=ED=95=84=20=EC=9D=91=EB=8B=B5=20DTO=20=EC=88=98=EC=A0=95(#27)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 래퍼 타입 필드들 기본 타입으로 변경 - 프로필 사진 URL 리스트 필드 추가 - 사용자가 가진 총 화살 수 필드 추가 - 음주 성향, 흡연 성향 필드 추가 - 코드 정렬 --- .../dto/response/UserProfileResponse.java | 56 ++++++++++++------- 1 file changed, 36 insertions(+), 20 deletions(-) diff --git a/be/src/main/java/yeonba/be/user/dto/response/UserProfileResponse.java b/be/src/main/java/yeonba/be/user/dto/response/UserProfileResponse.java index 2f4837a9..43e04524 100644 --- a/be/src/main/java/yeonba/be/user/dto/response/UserProfileResponse.java +++ b/be/src/main/java/yeonba/be/user/dto/response/UserProfileResponse.java @@ -1,6 +1,7 @@ package yeonba.be.user.dto.response; import io.swagger.v3.oas.annotations.media.Schema; +import java.util.List; import lombok.AllArgsConstructor; import lombok.Getter; @@ -8,59 +9,74 @@ @AllArgsConstructor public class UserProfileResponse { + @Schema( + type = "array", + description = "프로필 사진 URL들") + private List profilePhotosUrls; + @Schema( type = "string", description = "닉네임", - example = "존잘남" - ) + example = "존잘남") private String nickname; + @Schema( + type = "number", + description = "사용자가 가진 총 화살 수", + example = "10") + private int arrows; + @Schema( type = "number", description = "나이", - example = "23" - ) - private Integer age; + example = "23") + private int age; @Schema( type = "number", description = "키", - example = "177" - ) - private Integer height; + example = "177") + private int height; @Schema( type = "string", description = "활동 지역", - example = "서울시 강남구" - ) + example = "서울") private String activityArea; @Schema( type = "number", description = "사진 싱크로율", - example = "80" - ) - private Integer photoSyncRate; + example = "80") + private double photoSyncRate; + + @Schema( + type = "string", + description = "음주 성향", + example = "가끔") + private String drinkingHabit; + + @Schema( + type = "string", + description = "흡연 성향", + example = "자주") + private String smokingHabit; @Schema( type = "string", description = "음역대", - example = "저음" - ) + example = "저음") private String vocalRange; @Schema( type = "string", description = "닮은 동물상", - example = "여우상" - ) + example = "여우상") private String lookAlikeAnimalName; @Schema( type = "boolean", description = "이전 화살 전송 여부", - example = "false" - ) - private Boolean isAlreadySentArrow; + example = "false") + private boolean isAlreadySentArrow; }