-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from 9uttery/feat/put-my-album-all-api-#206
[Feature] 앨범 편집 API 기능 구현
- Loading branch information
Showing
9 changed files
with
137 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/guttery/madii/domain/albums/application/dto/AlbumPutAllRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.guttery.madii.domain.albums.application.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.Size; | ||
|
||
import java.util.List; | ||
|
||
@Schema(description = "앨범 편집 요청") | ||
public record AlbumPutAllRequest( | ||
@NotBlank(message = "앨범 제목은 필수입니다.") | ||
@Schema(description = "앨범 제목", example = "겨울 필수 소확행 모음 zip") | ||
@Size(max=30, message = "앨범 제목은 30자 이내로 입력해 주세요.") | ||
String name, | ||
@Schema(description = "앨범 내용", example = "이 소확행은 기분이 째질 때 츄라이해보면 좋은 소확행이에요.") | ||
@Size(max=50, message = "앨범 내용은 50자 이내로 입력해 주세요.") | ||
String description, | ||
@Schema(description = "수정되거나 추가된 소확행 목록", example = "") | ||
List<SavingJoyDto> joys, | ||
@Schema(description = "삭제할 소확행 ID 목록", example = "") | ||
List<Long> deletedJoyIds | ||
) { | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/guttery/madii/domain/albums/application/dto/SavingJoyDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.guttery.madii.domain.albums.application.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record SavingJoyDto( | ||
@Schema(description = "소확행 아이디", example = "11") | ||
Long joyId, | ||
@Schema(description = "소확행 내용", example = "낮잠자기") | ||
String contents, | ||
@Schema(description = "소확행 정렬 순서", example = "3") | ||
Integer joyOrder | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters