-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTaskResponseDTO.java
More file actions
73 lines (65 loc) · 1.81 KB
/
TaskResponseDTO.java
File metadata and controls
73 lines (65 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package umc.codeplay.dto;
import java.time.LocalDateTime;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
public class TaskResponseDTO {
@Builder
@Getter
@NoArgsConstructor
@AllArgsConstructor
public static class HarmonyDTO {
// 화성분석Id, 음원Id, 음원제목, 생성 날짜, 키, bpm, 평균음압
Long harmonyId;
Long musicId;
String musicTitle;
LocalDateTime createdAt;
String scale;
String genre;
Integer bpm;
String voiceColor;
}
@Builder
@Getter
@NoArgsConstructor
@AllArgsConstructor
public static class TrackDTO {
// 세션 분리 harmonyId, 음원 harmonyId, 음원 제목, 생성일자, 보컬 파일 url, 반주 url, 베이스 파일 url, 드럼 파일 url,
Long trackId;
Long musicId;
String musicTitle;
LocalDateTime createdAt;
String vocalUrl;
String instrumentalUrl;
String bassUrl;
String drumsUrl;
}
@Builder
@Getter
@NoArgsConstructor
@AllArgsConstructor
public static class RemixDTO {
Long remixId;
Long musicId;
String musicTitle;
LocalDateTime createdAt;
Integer scaleModulation;
Double tempoRatio;
Double reverbAmount;
Boolean isCorusOn;
String resultMusicUrl;
private Long parentRemixId; // 부모 Remix의 ID
private List<RemixDTO> childRemixList; // 자식 Remix 리스트
}
@Builder
@Getter
@NoArgsConstructor
@AllArgsConstructor
public static class GetByTaskIdDTO {
private List<HarmonyDTO> harmonies;
private List<TrackDTO> tracks;
private List<RemixDTO> remixes;
}
}