-
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.
Merge pull request #9 from kusitms-28th-Meetup-E/feat/community
Feat/community
- Loading branch information
Showing
16 changed files
with
158 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,4 @@ out/ | |
|
||
application.yml | ||
src/main/generated/ | ||
generated |
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
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
...ava/gwangjang/server/domain/community/domain/entity/constant/CommunityOrderCondition.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 gwangjang.server.domain.community.domain.entity.constant; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public enum CommunityOrderCondition { | ||
TOPIC("topic"),ISSUE("issue"), KEYWORD("keyword"),ALL("all"); | ||
private final String name; | ||
} |
7 changes: 5 additions & 2 deletions
7
...n/java/gwangjang/server/domain/community/domain/repository/CommunityCustomRepository.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,16 +1,19 @@ | ||
package gwangjang.server.domain.community.domain.repository; | ||
|
||
import gwangjang.server.domain.community.application.dto.res.CommunityRes; | ||
import gwangjang.server.domain.community.domain.entity.constant.CommunityOrderCondition; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public interface CommunityCustomRepository { | ||
|
||
|
||
Optional<List<CommunityRes>> findAllCommunityByDomain(String domain); | ||
Optional<List<CommunityRes>> findAllCommunityByTopic(String topic); | ||
Optional<List<CommunityRes>> findAllCommunity(); | ||
Optional<CommunityRes> findCommunity(Long communityId); | ||
Optional<List<CommunityRes>> findCommunityTop5ByHeartsAndDomain(String domain); | ||
Optional<List<CommunityRes>> findCommunityTop5ByHeartsAndTopic(String topic); | ||
|
||
Optional<List<CommunityRes>> findCommunityTop5(CommunityOrderCondition orderCondition, String word); | ||
|
||
} |
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
Oops, something went wrong.