-
Notifications
You must be signed in to change notification settings - Fork 0
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 #230 from Link-MIND/test
[Merge] ํ ์คํธ ์ ๋ชฉ ๋ณ๊ฒฝ API
- Loading branch information
Showing
6 changed files
with
51 additions
and
1 deletion.
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
12 changes: 12 additions & 0 deletions
12
linkmind/src/main/java/com/app/toaster/controller/request/toast/UpdateToastDto.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,12 @@ | ||
package com.app.toaster.controller.request.toast; | ||
|
||
import com.app.toaster.controller.valid.Severity; | ||
import com.app.toaster.controller.valid.TitleValid; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record UpdateToastDto(Long toastId, @TitleValid(payload = Severity.Error.class) @NotNull String title) { | ||
public static UpdateToastDto of(Long toastId, String title){ | ||
return new UpdateToastDto(toastId,title); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
linkmind/src/main/java/com/app/toaster/controller/response/toast/ModifiedTitle.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,7 @@ | ||
package com.app.toaster.controller.response.toast; | ||
|
||
public record ModifiedTitle(String updatedTitle) { | ||
public static ModifiedTitle of(String updatedTitle){ | ||
return new ModifiedTitle(updatedTitle); | ||
} | ||
} |
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