File tree Expand file tree Collapse file tree
src/main/java/everTale/everTale_be/domain Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 ())
You can’t perform that action at this time.
0 commit comments