Skip to content

Commit 8cc81ea

Browse files
authored
Merge pull request #66 from DropThe8bit/refactor/profile
[refactor] 회원 정보에 badge 필드 추가
2 parents 9810759 + f811e1a commit 8cc81ea

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/everTale/everTale_be/domain/profile/dto/response/ChildProfileInfoResponseDto.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@ public class ChildProfileInfoResponseDto implements ProfileInfoResponseDto{
2020
@Schema(description = "기관명", example = "새싹 유치원")
2121
private String institution;
2222

23+
@Schema(description = "칭호", example = "수줍은 새싹 꿈나무")
24+
private String badge;
25+
2326
public static ChildProfileInfoResponseDto from(Profile profile){
2427
return ChildProfileInfoResponseDto.builder()
2528
.name(profile.getName())
2629
.birthDate(profile.getBirthDate())
2730
.institution(profile.getInstitution())
31+
.badge(profile.getBadge().getTag())
2832
.build();
2933
}
3034
}

src/main/java/everTale/everTale_be/domain/quiz/entity/enums/Badge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public enum Badge {
2121
WORLD_CHANGING_HERO(50, "세상을 바꾸는 영웅님");
2222

2323
private final int threshold;
24-
private final String badge;
24+
private final String tag;
2525

2626
public static Badge fromSolvedCount(int count) {
2727
return Arrays.stream(Badge.values())

0 commit comments

Comments
 (0)