-
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.
- Loading branch information
Showing
5 changed files
with
118 additions
and
7 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
39 changes: 39 additions & 0 deletions
39
...n/java/idorm/idormServer/calendar/dto/TeamCalendar/SleepoverCalendarUpdateRequestDto.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,39 @@ | ||
package idorm.idormServer.calendar.dto.TeamCalendar; | ||
|
||
import com.fasterxml.jackson.annotation.JsonFormat; | ||
import idorm.idormServer.common.ValidationSequence; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.validation.GroupSequence; | ||
import javax.validation.constraints.NotNull; | ||
import javax.validation.constraints.Positive; | ||
import java.time.LocalDate; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@GroupSequence({ | ||
SleepoverCalendarUpdateRequestDto.class, | ||
ValidationSequence.NotNull.class | ||
}) | ||
@ApiModel(value = "외박일정 수정 요청") | ||
public class SleepoverCalendarUpdateRequestDto { | ||
|
||
@ApiModelProperty(position = 1, required = true, value= "팀 일정 식별자", example = "1") | ||
@NotNull(message = "내용을 입력해 주세요.", groups = ValidationSequence.NotNull.class) | ||
@Positive(message = "수정할 팀 일정 식별자는 양수만 가능합니다.") | ||
private Long teamCalendarId; | ||
|
||
@ApiModelProperty(position = 2, notes = "string", value = "시작일자", example = "2023-04-27") | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") | ||
private LocalDate startDate; | ||
|
||
@ApiModelProperty(position = 3, notes = "string", value = "종료일자", example = "2023-04-28") | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") | ||
private LocalDate endDate; | ||
} |
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