-
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 #46 from 9oormthon-univ/33-feature-implementation-…
…of-api-for-leaving-messages-of-gratitude 33 feature implementation of api for leaving messages of gratitude
- Loading branch information
Showing
6 changed files
with
72 additions
and
0 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
15 changes: 15 additions & 0 deletions
15
.../example/mymoo/domain/donationusage/dto/request/DonationUsageUpdateMessageRequestDto.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,15 @@ | ||
package com.example.mymoo.domain.donationusage.dto.request; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Size; | ||
|
||
public record DonationUsageUpdateMessageRequestDto( | ||
@NotNull(message = "donationId는 필수 입력 항목입니다.") | ||
Long donationId, | ||
@NotBlank(message = "message는 필수 항목입니다") | ||
@Size(min = 1, max = 255, message = "message는 최소 1자, 최대 255자입니다.") | ||
String message | ||
) { | ||
|
||
} |
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
6 changes: 6 additions & 0 deletions
6
src/main/java/com/example/mymoo/domain/donationusage/service/DonationUsageService.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 |
---|---|---|
@@ -1,10 +1,16 @@ | ||
package com.example.mymoo.domain.donationusage.service; | ||
|
||
import com.example.mymoo.domain.donationusage.dto.request.DonationUsageCreateRequestDto; | ||
import com.example.mymoo.domain.donationusage.dto.request.DonationUsageUpdateMessageRequestDto; | ||
|
||
public interface DonationUsageService { | ||
void useDonation( | ||
Long storeAccountId, | ||
DonationUsageCreateRequestDto donationUsageCreateRequestDto | ||
); | ||
|
||
void updateMessage( | ||
Long childAccountId, | ||
DonationUsageUpdateMessageRequestDto donationUsageUpdateMessageRequestDto | ||
); | ||
} |
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