@@ -409,6 +409,9 @@ public static class ChallengeInfo {
409409 @ Schema (description = "작성자 아이디" , example = "1" )
410410 private Long writerId ;
411411
412+ @ Schema (description = "작성자 닉네임" , example = "닉네임" )
413+ private String writerNickname ;
414+
412415 @ Schema (description = "챌린지 썸네일" )
413416 private FileDto .FileResponse thumbnail ;
414417
@@ -442,6 +445,7 @@ public static class ChallengeInfo {
442445 public static ChallengeInfo from (Challenge challenge , boolean isLiked ) {
443446 return ChallengeInfo .builder ()
444447 .writerId (challenge .getHost ().getId ())
448+ .writerNickname (challenge .getHost ().getNickname ())
445449 .thumbnail (challenge .getChallengeImage () == null ? null : FileDto .FileResponse .from (challenge .getChallengeImage ()))
446450 .name (challenge .getName ())
447451 .isLiked (isLiked )
@@ -634,6 +638,9 @@ public static class ChallengeInfo {
634638 @ Schema (description = "작성자 아이디" , example = "1" )
635639 private Long writerId ;
636640
641+ @ Schema (description = "작성자 닉네임" , example = "닉네임" )
642+ private String writerNickname ;
643+
637644 @ Schema (description = "챌린지 썸네일" )
638645 private FileDto .FileResponse thumbnail ;
639646
@@ -673,6 +680,7 @@ public static class ChallengeInfo {
673680 public static ChallengeInfo from (Challenge challenge , boolean isLiked ) {
674681 return ChallengeInfo .builder ()
675682 .writerId (challenge .getHost ().getId ())
683+ .writerNickname (challenge .getHost ().getNickname ())
676684 .thumbnail (
677685 challenge .getChallengeImage () == null
678686 ? null
0 commit comments