Skip to content

Commit fd78cde

Browse files
authored
Merge pull request #229 from 9uttery/feat/create-joy-v2-#221
[Feature] Phase 3.0 앨범/소확행 관련 API 구현
2 parents 3c97870 + c4f3ff1 commit fd78cde

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

src/main/java/com/guttery/madii/domain/albums/application/dto/AlbumCreateRequestV2.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import io.swagger.v3.oas.annotations.media.Schema;
44
import jakarta.validation.constraints.NotBlank;
5+
import jakarta.validation.constraints.NotNull;
56
import jakarta.validation.constraints.Size;
67

78
@Schema(description = "앨범 생성 요청")
@@ -13,8 +14,8 @@ public record AlbumCreateRequestV2(
1314
@Schema(description = "앨범 내용", example = "이 소확행은 기분이 째질 때 츄라이해보면 좋은 소확행이에요.")
1415
@Size(max=50, message = "앨범 내용은 50자 이내로 입력해 주세요.")
1516
String description,
16-
@NotBlank(message = "앨범 썸네일 색상 번호는 필수입니다.")
17+
@NotNull(message = "앨범 썸네일 색상 번호는 필수입니다.")
1718
@Schema(description = "앨범 썸네일 색상 번호", example = "2")
18-
int albumCoverNum
19+
Integer albumCoverNum
1920
) {
2021
}

src/main/java/com/guttery/madii/domain/albums/application/dto/JoyGetInfoV2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public record JoyGetInfoV2(
66
@Schema(description = "소확행 아이디", example = "11")
77
Long joyId,
88
@Schema(description = "소확행 썸네일 색상 번호", example = "2")
9-
int joyColorNum,
9+
Integer joyColorNum,
1010
@Schema(description = "소확행 내용", example = "낮잠자기")
1111
String contents,
1212
@Schema(description = "소확행 저장 여부", example = "true(1)")

src/main/java/com/guttery/madii/domain/joy/application/dto/JoyCreateRequestV2.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import io.swagger.v3.oas.annotations.media.Schema;
44
import jakarta.validation.constraints.NotBlank;
5+
import jakarta.validation.constraints.NotNull;
56
import jakarta.validation.constraints.Size;
67

78
@Schema(description = "소확행 기록 요청")
@@ -10,8 +11,8 @@ public record JoyCreateRequestV2(
1011
@Schema(description = "소확행 내용", example = "낮잠자기")
1112
@Size(max=30, message = "소확행은 30자 이내로 입력해 주세요.")
1213
String contents,
13-
@NotBlank(message = "소확행 썸네일 색상 번호는 필수입니다.")
14+
@NotNull(message = "소확행 썸네일 색상 번호는 필수입니다.")
1415
@Schema(description = "소확행 썸네일 색상 번호", example = "2")
15-
int joyColorNum
16+
Integer joyColorNum
1617
) {
1718
}

src/main/java/com/guttery/madii/domain/joy/application/dto/JoyCreateResponseV2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ public record JoyCreateResponseV2(
1010
@Schema(description = "소확행 내용", example = "낮잠자기")
1111
String contents,
1212
@Schema(description = "소확행 썸네일 색상 번호", example = "2")
13-
int joyColorNum
13+
Integer joyColorNum
1414
) {
1515
}

src/main/java/com/guttery/madii/domain/joy/application/dto/JoyGetDetailResponseV2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public record JoyGetDetailResponseV2(
77
@Schema(description = "소확행 아이디", example = "11")
88
Long joyId,
99
@Schema(description = "소확행 썸네일 색상 번호", example = "2")
10-
int joyColorNum,
10+
Integer joyColorNum,
1111
@Schema(description = "소확행 내용", example = "낮잠자기")
1212
String contents,
1313
@Schema(description = "소확행 저장 여부", example = "true(1)")

0 commit comments

Comments
 (0)