Skip to content

Commit

Permalink
Merge pull request #287 from ASAP-as-soon-as-possible/feat/#270
Browse files Browse the repository at this point in the history
#270 [feat] Prefer time 관련 로직 삭제
  • Loading branch information
KWY0218 authored Jul 29, 2024
2 parents 36b11ea + 6a47a90 commit 69d6649
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 134 deletions.
42 changes: 0 additions & 42 deletions src/main/java/com/asap/server/persistence/domain/PreferTime.java

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ public record MeetingSaveRequestDto(
String title,
@Schema(description = "회의 가능 날짜", example = "[\"2024/7/9/MON\"]")
List<String> availableDates,
@Schema(description = "회의 선호 시간")
List<PreferTimeSaveRequestDto> preferTimes,
@NotNull(message = "회의 형식이 입력되지 않았습니다.")
@Schema(description = "회의 방식", example = "ONLINE", allowableValues = {"ONLINE", "OFFLINE", "UNDEFINED"})
PlaceType place,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ public class MeetingScheduleResponseDto {
private PlaceType place;
private String placeDetail;
private List<AvailableDateResponseDto> availableDates;
private List<PreferTimeResponseDto> preferTimes;
}
3 changes: 0 additions & 3 deletions src/main/java/com/asap/server/service/MeetingService.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public class MeetingService {
private final MeetingRepository meetingRepository;
private final UserService userService;
private final AvailableDateService availableDateService;
private final PreferTimeService preferTimeService;
private final JwtService jwtService;
private final MeetingTimeRecommendService meetingTimeRecommendService;
private final TimeBlockRepository timeBlockRepository;
Expand All @@ -72,7 +71,6 @@ public MeetingSaveResponseDto create(final MeetingSaveRequestDto meetingSaveRequ

User host = userService.createUser(meeting, meetingSaveRequestDto.name(), Role.HOST);

preferTimeService.create(meeting, meetingSaveRequestDto.preferTimes());
availableDateService.create(meeting, meetingSaveRequestDto.availableDates());

meeting.setHost(host);
Expand Down Expand Up @@ -122,7 +120,6 @@ public MeetingScheduleResponseDto getMeetingSchedule(Long meetingId) {
.place(meeting.getPlace().getPlaceType())
.placeDetail(meeting.getPlace().getPlaceDetail())
.availableDates(availableDateService.getAvailableDates(meeting))
.preferTimes(preferTimeService.getPreferTimes(meeting))
.build();
}

Expand Down
57 changes: 0 additions & 57 deletions src/main/java/com/asap/server/service/PreferTimeService.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.asap.server.concurrency;

import com.asap.server.presentation.controller.dto.request.MeetingSaveRequestDto;
import com.asap.server.presentation.controller.dto.request.PreferTimeSaveRequestDto;
import com.asap.server.persistence.domain.enums.Duration;
import com.asap.server.persistence.domain.enums.PlaceType;
import com.asap.server.persistence.domain.enums.TimeSlot;
Expand Down Expand Up @@ -45,7 +44,6 @@ public void multipleRequestTest() throws Exception {
MeetingSaveRequestDto bodyDto = new MeetingSaveRequestDto(
"title",
List.of("2024/07/09/MON", "2024/07/10/TUE"),
List.of(new PreferTimeSaveRequestDto(TimeSlot.SLOT_6_00, TimeSlot.SLOT_6_30)),
PlaceType.OFFLINE,
"회의 장소 설명",
Duration.HOUR,
Expand Down

0 comments on commit 69d6649

Please sign in to comment.