-
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 #6 from molohala/Feature/community
chore: add islike in community res
- Loading branch information
Showing
9 changed files
with
45 additions
and
32 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
22 changes: 11 additions & 11 deletions
22
infinity-api/src/test/kotlin/com/molohala/infinityapi/InfinityApiApplicationTests.kt
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,13 @@ | ||
package com.molohala.infinityapi | ||
|
||
//import org.junit.jupiter.api.Test | ||
//import org.springframework.boot.test.context.SpringBootTest | ||
// | ||
//@SpringBootTest | ||
//class InfinityApiApplicationTests { | ||
// | ||
// @Test | ||
// fun contextLoads() { | ||
// } | ||
// | ||
//} | ||
import org.junit.jupiter.api.Test | ||
import org.springframework.boot.test.context.SpringBootTest | ||
|
||
@SpringBootTest | ||
class InfinityApiApplicationTests { | ||
|
||
@Test | ||
fun contextLoads() { | ||
} | ||
|
||
} |
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
6 changes: 3 additions & 3 deletions
6
...rc/main/kotlin/com/molohala/infinitycore/community/repository/QueryCommunityRepository.kt
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,9 +1,9 @@ | ||
package com.molohala.infinitycore.community.repository | ||
|
||
import com.molohala.infinitycore.common.PageRequest | ||
import com.molohala.infinitycore.community.application.dto.res.CommunityListRes | ||
import com.molohala.infinitycore.community.application.dto.res.CommunityRes | ||
|
||
interface QueryCommunityRepository { | ||
fun findWithPagination(pageRequest: PageRequest):List<CommunityListRes> | ||
fun findById(id: Long, likeCnt:Long): CommunityListRes? | ||
fun findWithPagination(pageRequest: PageRequest):List<CommunityRes> | ||
fun findById(id: Long, likeCnt:Long, isLike: Boolean): CommunityRes? | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,4 @@ class QueryDslLikeRepository( | |
.where(like.id.eq(communityId)) | ||
.fetchCount() | ||
} | ||
|
||
|
||
} |