-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: StudentSendMailRequest validation ์ถ๊ฐ * feat: StudentVerificateRequest validation ์ถ๊ฐ * refactor: FestivalCreateRequest NotNull/NotBlank ์ ์ฝ์กฐ๊ฑด ์ถ๊ฐ * refactor: TicketValidationRequest NotNull -> NotBlank ๋ก ๋ณ๊ฒฝ * refactor: LoginRequest NotNull -> NotBlank ๋ก ๋ณ๊ฒฝ * feat: Request DTO Validation ์ถ๊ฐ * refactor: ์์ธ ๋ฉ์์ง ์ผ๊ด์ ์ด๊ฒ ๋ณ๊ฒฝ * style: ๊ฐํ ์ผ๊ด ์ ์ฉ * refactor: Controller์ Request Body @Valid ์ ์ฉ * refactor: ์์ ์คํ ์์ * refactor: Validation Error ๋ฉ์ธ์ง ์์ธํ๊ฒ ์์ --------- Co-authored-by: seokjin8678 <[email protected]>
- Loading branch information
Showing
16 changed files
with
85 additions
and
28 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
backend/src/main/java/com/festago/auth/dto/AdminLoginRequest.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
4 changes: 4 additions & 0 deletions
4
backend/src/main/java/com/festago/auth/dto/AdminSignupRequest.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
10 changes: 7 additions & 3 deletions
10
backend/src/main/java/com/festago/auth/dto/LoginRequest.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,11 +1,15 @@ | ||
package com.festago.auth.dto; | ||
|
||
import com.festago.auth.domain.SocialType; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record LoginRequest( | ||
@NotNull(message = "socialType ์ null ์ผ ์ ์์ต๋๋ค.") SocialType socialType, | ||
@NotNull(message = "acessToken ์ null ์ผ ์ ์์ต๋๋ค.") String accessToken, | ||
@NotNull(message = "fcmToken ์ null ์ผ ์ ์์ต๋๋ค.") String fcmToken) { | ||
@NotNull(message = "socialType์ null ์ผ ์ ์์ต๋๋ค.") | ||
SocialType socialType, | ||
@NotBlank(message = "acessToken์ ๊ณต๋ฐฑ์ผ ์ ์์ต๋๋ค.") | ||
String accessToken, | ||
@NotBlank(message = "fcmToken์ ๊ณต๋ฐฑ์ผ ์ ์์ต๋๋ค.") | ||
String fcmToken) { | ||
|
||
} |
3 changes: 3 additions & 0 deletions
3
backend/src/main/java/com/festago/auth/dto/RootAdminInitializeRequest.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
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: 4 additions & 2 deletions
6
backend/src/main/java/com/festago/entry/dto/TicketValidationRequest.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,8 +1,10 @@ | ||
package com.festago.entry.dto; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.NotBlank; | ||
|
||
public record TicketValidationRequest( | ||
@NotNull(message = "code ๋ null ์ผ ์ ์์ต๋๋ค.") String code) { | ||
@NotBlank(message = "code๋ ๊ณต๋ฐฑ์ผ ์ ์์ต๋๋ค.") | ||
String code | ||
) { | ||
|
||
} |
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
8 changes: 5 additions & 3 deletions
8
backend/src/main/java/com/festago/school/dto/SchoolCreateRequest.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,12 @@ | ||
package com.festago.school.dto; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.NotBlank; | ||
|
||
public record SchoolCreateRequest( | ||
@NotNull(message = "name ์ null ์ผ ์ ์์ต๋๋ค.") String name, | ||
@NotNull(message = "domain ์ null ์ผ ์ ์์ต๋๋ค.") String domain | ||
@NotBlank(message = "name์ ๊ณต๋ฐฑ์ผ ์ ์์ต๋๋ค.") | ||
String name, | ||
@NotBlank(message = "domain์ ๊ณต๋ฐฑ์ผ ์ ์์ต๋๋ค.") | ||
String domain | ||
) { | ||
|
||
} |
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
5 changes: 5 additions & 0 deletions
5
backend/src/main/java/com/festago/student/dto/StudentSendMailRequest.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
7 changes: 6 additions & 1 deletion
7
backend/src/main/java/com/festago/student/dto/StudentVerificateRequest.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,5 +1,10 @@ | ||
package com.festago.student.dto; | ||
|
||
public record StudentVerificateRequest(String code) { | ||
import jakarta.validation.constraints.NotBlank; | ||
|
||
public record StudentVerificateRequest( | ||
@NotBlank(message = "code๋ ๊ณต๋ฐฑ์ผ ์ ์์ต๋๋ค.") | ||
String code | ||
) { | ||
|
||
} |
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