Skip to content

Commit

Permalink
feat: 상대 프로필 응답 DTO 수정(#27)
Browse files Browse the repository at this point in the history
- 래퍼 타입 필드들 기본 타입으로 변경
- 프로필 사진 URL 리스트 필드 추가
- 사용자가 가진 총 화살 수 필드 추가
- 음주 성향, 흡연 성향 필드 추가
- 코드 정렬
  • Loading branch information
Minjae-An committed Mar 11, 2024
1 parent 7efedf9 commit d77dae4
Showing 1 changed file with 36 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,66 +1,82 @@
package yeonba.be.user.dto.response;

import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public class UserProfileResponse {

@Schema(
type = "array",
description = "프로필 사진 URL들")
private List<String> 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;
}

0 comments on commit d77dae4

Please sign in to comment.