Skip to content

Commit 452fc19

Browse files
authored
Merge pull request #169 from dnd-side-project/dev
fix(PlaylistResponse): genre๋„ ํ•จ๊ป˜ ๋ฐ˜ํ™˜
2 parents a4bc935 + 35fc5a0 commit 452fc19

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

โ€Žmain-server/src/main/java/com/example/demo/domain/playlist/dto/playlistdto/PlaylistResponse.javaโ€Ž

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.example.demo.domain.playlist.dto.playlistdto;
22

33
import com.example.demo.domain.cd.dto.response.CdResponse;
4+
import com.example.demo.domain.playlist.dto.PlaylistGenre;
45
import com.example.demo.domain.playlist.entity.Playlist;
56
import io.swagger.v3.oas.annotations.media.Schema;
67
import lombok.Builder;
@@ -15,9 +16,12 @@ public record PlaylistResponse(
1516
@Schema(description = "ํ”Œ๋ ˆ์ด๋ฆฌ์ŠคํŠธ ์ด๋ฆ„", example = "์—ฌ๋ฆ„ ๋“œ๋ผ์ด๋ธŒ ํ”Œ๋ ˆ์ด๋ฆฌ์ŠคํŠธ")
1617
String playlistName,
1718

18-
@Schema(description = "ํ”Œ๋ ˆ์ด๋ฆฌ์ŠคํŠธ ์ œ์ž‘์ž ์ด๋ฆ„", example = "์—ฌ๋ฆ„ ๋“œ๋ผ์ด๋ธŒ ํ”Œ๋ ˆ์ด๋ฆฌ์ŠคํŠธ")
19+
@Schema(description = "ํ”Œ๋ ˆ์ด๋ฆฌ์ŠคํŠธ ์ œ์ž‘์ž ์ด๋ฆ„", example = "๊น€๋“ค๋ฝ")
1920
String creatorNickname,
2021

22+
@Schema(description = "ํ”Œ๋ ˆ์ด๋ฆฌ์ŠคํŠธ ์žฅ๋ฅด", example = "JAZZ")
23+
PlaylistGenre genre,
24+
2125
@Schema(description = "ํ”Œ๋ ˆ์ด๋ฆฌ์ŠคํŠธ ๊ณต๊ฐœ ์—ฌ๋ถ€", example = "true")
2226
boolean isPublic,
2327

@@ -32,6 +36,7 @@ public static PlaylistResponse from(Playlist playlist, CdResponse cd, boolean is
3236
return PlaylistResponse.builder()
3337
.playlistId(playlist.getId())
3438
.playlistName(playlist.getName())
39+
.genre(playlist.getGenre())
3540
.creatorNickname(playlist.getUsers().getUsername())
3641
.isPublic(playlist.isPublic())
3742
.isLiked(isLiked)

0 commit comments

Comments
ย (0)