-
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.
* ✨ 커뮤니티 게시글 리스트 조회 로직 수정 (#129) * ✨ 커뮤니티 게시글 리스트 조회 response 다음 페이지 인덱스 추가 (#129) * 🐛 커뮤니티 게시글 싫어요 초기 생성 시 좋아요로 되는 문제 수정 (#129)
- Loading branch information
Showing
10 changed files
with
111 additions
and
57 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
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
7 changes: 4 additions & 3 deletions
7
...in/backend/team/ahachul_backend/api/community/application/port/out/CommunityPostReader.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,15 +1,16 @@ | ||
package backend.team.ahachul_backend.api.community.application.port.out | ||
|
||
import backend.team.ahachul_backend.api.community.adapter.web.`in`.dto.post.SearchCommunityPostCommand | ||
import backend.team.ahachul_backend.api.community.domain.CommunityPost | ||
import backend.team.ahachul_backend.api.community.domain.GetCommunityPost | ||
import backend.team.ahachul_backend.api.community.domain.SearchCommunityPost | ||
import backend.team.ahachul_backend.api.community.domain.entity.CommunityPostEntity | ||
import org.springframework.data.domain.Slice | ||
|
||
interface CommunityPostReader { | ||
|
||
fun getCommunityPost(id: Long): CommunityPostEntity | ||
|
||
fun getByCustom(postId: Long, memberId: String?): CommunityPost | ||
fun getByCustom(postId: Long, memberId: String?): GetCommunityPost | ||
|
||
fun searchCommunityPosts(command: SearchCommunityPostCommand): Slice<CommunityPostEntity> | ||
fun searchCommunityPosts(command: SearchCommunityPostCommand): Slice<SearchCommunityPost> | ||
} |
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
20 changes: 20 additions & 0 deletions
20
.../src/main/kotlin/backend/team/ahachul_backend/api/community/domain/SearchCommunityPost.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package backend.team.ahachul_backend.api.community.domain | ||
|
||
import backend.team.ahachul_backend.api.community.domain.model.CommunityCategoryType | ||
import backend.team.ahachul_backend.common.model.RegionType | ||
import java.time.LocalDateTime | ||
|
||
data class SearchCommunityPost( | ||
val id: Long, | ||
val title: String, | ||
val content: String, | ||
val categoryType: CommunityCategoryType, | ||
val regionType: RegionType, | ||
val subwayLineId: Long, | ||
val likeCnt: Long, | ||
val commentCnt: Long, | ||
val createdAt: LocalDateTime, | ||
val createdBy: String, | ||
val writer: String, | ||
) { | ||
} |
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