Skip to content

Commit

Permalink
Merge pull request #381 from Namo-log/feature/380
Browse files Browse the repository at this point in the history
[Feature/380] 일정 생성 시 위치 정보 null 허용 수정
  • Loading branch information
joowojr authored Oct 22, 2024
2 parents db1ae95 + 8a51364 commit 951c8ba
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public static class PostMeetingScheduleDto {
@NotNull(message = "일정 시작일, 종료일 정보는 필수 입니다.")
@Schema(description = "기간 정보")
private PeriodDto period;
@NotNull(message = "장소가 없을 시 emtpy object를 전송합니다.")
@Schema(description = "카카오 맵 장소 정보, 장소가 없을 시 emtpy object를 전송합니다.")
private LocationDto location;
@NotNull(message = "모임 일정에 참여할 친구는 1명부터 9명까지 입력 가능합니다.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ public static class PostPersonalScheduleDto {
@NotNull(message = "일정 시작일, 종료일 정보는 필수 입니다.")
@Schema(description = "기간 정보")
private PersonalScheduleRequest.PeriodDto period;
@NotNull(message = "장소 정보가 없을 경우 empty object를 전송합니다.")
@Schema(description = "카카오 맵 장소 정보")
private PersonalScheduleRequest.LocationDto location;
@NotNull(message = "알림이 없을 시 emtpy array를 전송합니다.")
@ValidReminderTimes
@Schema(description = "알림 트리거, 정시 -> 'ST', 일-> 'D{1-59 까지의 정수}', 시-> 'H{1-36 까지의 정수}', 분-> 'M{1-7 까지의 정수}'")
@Schema(description = "알림 트리거, 정시 -> 'ST', 일-> 'M{1-59 까지의 정수}', 시-> 'H{1-36 까지의 정수}', 분-> 'D{1-7 까지의 정수}'")
private List<@NotBlank String> reminderTrigger;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static class GetMonthlyScheduleDto {
private int scheduleType;
@Schema(description = "모임 일정 정보, 모임 일정이 아닐 시에는 null")
private MeetingInfoDto meetingInfo;
@Schema(description = "알림 일시, 알림 트리거, 정시 -> 'ST', 일-> 'D{1-59 까지의 정수}', 시-> 'H{1-36 까지의 정수}', 분-> 'M{1-7 까지의 정수}")
@Schema(description = "알림 일시, 알림 트리거, 정시 -> 'ST', 일-> 'M{1-59 까지의 정수}', 시-> 'H{1-36 까지의 정수}', 분-> 'D{1-7 까지의 정수}")
private List<NotificationDto> notificationInfo;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public class ScheduleMaker {
private final ScheduleService scheduleService;
private final ImageUrlProperties imageUrlProperties;

public Schedule createPersonalSchedule(PersonalScheduleRequest.PostPersonalScheduleDto dto, Period period,
String nickname) {
public Schedule createPersonalSchedule(PersonalScheduleRequest.PostPersonalScheduleDto dto, Period period) {
Schedule schedule = toSchedule(dto.getTitle(), period, dto.getLocation(), PERSONAL_SCHEDULE_TYPE, null, null,
null);
return scheduleService.createSchedule(schedule);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public Schedule getMeetingSchedule(Long scheduleId) {

public Schedule createPersonalSchedule(PersonalScheduleRequest.PostPersonalScheduleDto request, Member member) {
Period period = getValidatedPeriod(request.getPeriod().getStartDate(), request.getPeriod().getEndDate());
Schedule schedule = scheduleMaker.createPersonalSchedule(request, period, member.getNickname());
Schedule schedule = scheduleMaker.createPersonalSchedule(request, period);
participantManageService.createPersonalScheduleParticipant(member, schedule, request.getCategoryId());
return schedule;
}
Expand Down

0 comments on commit 951c8ba

Please sign in to comment.