-
Notifications
You must be signed in to change notification settings - Fork 0
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
31 changed files
with
1,370 additions
and
444 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
17 changes: 17 additions & 0 deletions
17
src/main/java/com/example/eatmate/app/domain/meeting/domain/MeetingStatus.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,17 @@ | ||
package com.example.eatmate.app.domain.meeting.domain; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum MeetingStatus { | ||
ACTIVE("활성화"), | ||
INACTIVE("비활성화"), | ||
; | ||
|
||
private final String text; | ||
|
||
MeetingStatus(String text) { | ||
this.text = text; | ||
} | ||
|
||
} |
8 changes: 5 additions & 3 deletions
8
...a/com/example/eatmate/app/domain/meeting/domain/repository/DeliveryMeetingRepository.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,13 +1,15 @@ | ||
package com.example.eatmate.app.domain.meeting.domain.repository; | ||
|
||
import java.util.List; | ||
|
||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.domain.Slice; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import com.example.eatmate.app.domain.meeting.domain.DeliveryMeeting; | ||
import com.example.eatmate.app.domain.meeting.domain.FoodCategory; | ||
import com.example.eatmate.app.domain.meeting.domain.MeetingStatus; | ||
|
||
public interface DeliveryMeetingRepository extends JpaRepository<DeliveryMeeting, Long> { | ||
List<DeliveryMeeting> findAllByFoodCategory(FoodCategory foodCategory); | ||
Slice<DeliveryMeeting> findAllByFoodCategoryAndMeetingStatus(FoodCategory foodCategory, | ||
MeetingStatus meetingStatus, Pageable pageable); | ||
} | ||
|
16 changes: 16 additions & 0 deletions
16
...ava/com/example/eatmate/app/domain/meeting/domain/repository/MeetingCustomRepository.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,16 @@ | ||
package com.example.eatmate.app.domain.meeting.domain.repository; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
|
||
import com.example.eatmate.app.domain.meeting.domain.MeetingStatus; | ||
import com.example.eatmate.app.domain.meeting.domain.ParticipantRole; | ||
import com.example.eatmate.app.domain.meeting.dto.MeetingListResponseDto; | ||
import com.example.eatmate.app.domain.meeting.dto.UpcomingMeetingResponseDto; | ||
|
||
public interface MeetingCustomRepository { | ||
List<MeetingListResponseDto> findAllMeetings(Long memberId, ParticipantRole role, MeetingStatus meetingStatus, | ||
Long lastMeetingId, LocalDateTime lastDateTime, int pageSize); | ||
|
||
UpcomingMeetingResponseDto findUpcomingMeeting(Long memberId); | ||
} |
Oops, something went wrong.