-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b04e109
commit a41305d
Showing
25 changed files
with
1,084 additions
and
161 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
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
11 changes: 11 additions & 0 deletions
11
backend/src/main/java/com/woowacourse/friendogly/club/dto/request/SaveClubMemberRequest.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,11 @@ | ||
package com.woowacourse.friendogly.club.dto.request; | ||
|
||
import jakarta.validation.constraints.NotEmpty; | ||
import java.util.List; | ||
|
||
public record SaveClubMemberRequest( | ||
@NotEmpty(message = "모임에 참석 할 강아지를 1마리 이상 선택해주세요.") | ||
List<Long> participatingPetsId | ||
) { | ||
|
||
} |
42 changes: 42 additions & 0 deletions
42
backend/src/main/java/com/woowacourse/friendogly/club/dto/request/SaveClubRequest.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,42 @@ | ||
package com.woowacourse.friendogly.club.dto.request; | ||
|
||
import com.woowacourse.friendogly.pet.domain.Gender; | ||
import com.woowacourse.friendogly.pet.domain.SizeType; | ||
import jakarta.validation.constraints.Max; | ||
import jakarta.validation.constraints.Min; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotEmpty; | ||
import jakarta.validation.constraints.Size; | ||
import java.util.List; | ||
import java.util.Set; | ||
|
||
public record SaveClubRequest( | ||
@NotBlank(message = "제목을 작성해주세요.") | ||
@Size(min = 1, max = 100, message = "제목은 1글자 100글자 사이입니다.") | ||
String title, | ||
|
||
@NotBlank(message = "본문을 작성해주세요.") | ||
@Size(min = 1, max = 1000, message = "본문은 1글자 1000글자 사이입니다.") | ||
String content, | ||
|
||
@NotBlank(message = "모임 사진을 등록해주세요.") | ||
String imageUrl, | ||
|
||
@NotBlank(message = "주소를 읽을 수 없습니다. 다시 시도해주세요.") | ||
String address, | ||
|
||
@NotEmpty(message = "모임에 참여가능한 성별을 선택해주세요.") | ||
Set<Gender> allowedGenders, | ||
|
||
@NotEmpty(message = "모임에 참여가능한 댕댕이 사이즈를 선택해주세요.") | ||
Set<SizeType> allowedSizes, | ||
|
||
@Min(value = 1, message = "모임 최대 인원은 1명 이상입니다.") | ||
@Max(value = 5, message = "모임 최대 인원은 5명 이하입니다.") | ||
int memberCapacity, | ||
|
||
@NotEmpty(message = "모임에 참여할 댕댕이를 선택해주세요.") | ||
List<Long> participatingPetsId | ||
) { | ||
|
||
} |
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.