-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π§ͺ [Test] Admin ν
νλ¦Ώ μΆκ°, μ κ±°, μμ ν
μ€νΈμ½λ μμ± (#756)
- Loading branch information
Showing
6 changed files
with
342 additions
and
12 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
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
40 changes: 33 additions & 7 deletions
40
.../main/java/gg/party/api/admin/templates/controller/request/TemplateAdminUpdateReqDto.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,34 +1,60 @@ | ||
package gg.party.api.admin.templates.controller.request; | ||
|
||
import javax.validation.constraints.Min; | ||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
import javax.validation.constraints.Size; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class TemplateAdminUpdateReqDto { | ||
@NotNull(message = "Category must not be null") | ||
@NotNull(message = "μΉ΄ν κ³ λ¦¬ IDλ νμμ λλ€.") | ||
private Long categoryId; | ||
|
||
@NotNull(message = "Game name must not be null") | ||
@NotBlank(message = "κ²μ μ΄λ¦μ νμμ΄λ©°, λΉμ΄ μμ μ μμ΅λλ€.") | ||
@Size(max = 15, message = "κ²μ μ΄λ¦μ 15μλ₯Ό μ΄κ³Όν μ μμ΅λλ€.") | ||
private String gameName; | ||
|
||
@NotNull(message = "Maximum game people must not be null") | ||
@NotNull(message = "μ΅λ κ²μ μΈμμ νμμ λλ€.") | ||
@Min(value = 2, message = "μ΅λ κ²μ μΈμμ μ΅μ 2λͺ μ΄μμ΄μ΄μΌ ν©λλ€.") | ||
private Integer maxGamePeople; | ||
|
||
@NotNull(message = "Minimum game people must not be null") | ||
@NotNull(message = "μ΅μ κ²μ μΈμμ νμμ λλ€.") | ||
@Min(value = 2, message = "μ΅μ κ²μ μΈμμ μ΅μ 2λͺ μ΄μμ΄μ΄μΌ ν©λλ€.") | ||
private Integer minGamePeople; | ||
|
||
@NotNull(message = "Maximum game time must not be null") | ||
@NotNull(message = "μ΅λ κ²μ μκ°μ νμμ λλ€.") | ||
@Min(value = 1, message = "μ΅λ κ²μ μκ°μ μ΅μ 1λΆ μ΄μμ΄μ΄μΌ ν©λλ€.") | ||
private Integer maxGameTime; | ||
|
||
@NotNull(message = "Minimum game time must not be null") | ||
@NotNull(message = "μ΅μ κ²μ μκ°μ νμμ λλ€.") | ||
@Min(value = 1, message = "μ΅μ κ²μ μκ°μ μ΅μ 1λΆ μ΄μμ΄μ΄μΌ ν©λλ€.") | ||
private Integer minGameTime; | ||
|
||
@NotBlank(message = "μ₯λ₯΄λ νμμ΄λ©°, λΉμ΄ μμ μ μμ΅λλ€.") | ||
@Size(max = 10, message = "μ₯λ₯΄λ 10μλ₯Ό μ΄κ³Όν μ μμ΅λλ€.") | ||
private String genre; | ||
|
||
@Size(max = 10, message = "λμ΄λλ 10μλ₯Ό μ΄κ³Όν μ μμ΅λλ€.") | ||
private String difficulty; | ||
|
||
@NotNull(message = "Summary must not be null") | ||
@NotBlank(message = "λ΄μ©μ νμμ΄λ©°, λΉμ΄ μμ μ μμ΅λλ€.") | ||
@Size(max = 100, message = "λ΄μ©μ 100μλ₯Ό μ΄κ³Όν μ μμ΅λλ€.") | ||
private String summary; | ||
|
||
public TemplateAdminUpdateReqDto(long categoryId, String gameName, int maxGamePeople, int minGamePeople, | ||
int maxGameTime, int minGameTime, String genre, String difficulty, String summary) { | ||
this.categoryId = categoryId; | ||
this.gameName = gameName; | ||
this.maxGamePeople = maxGamePeople; | ||
this.minGamePeople = minGamePeople; | ||
this.maxGameTime = maxGameTime; | ||
this.minGameTime = minGameTime; | ||
this.genre = genre; | ||
this.difficulty = difficulty; | ||
this.summary = summary; | ||
} | ||
} |
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
Oops, something went wrong.