-
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.
Browse files
Browse the repository at this point in the history
* fix: QueryDSL Config 수정 * refactor: Diary 쿼리 transform 변경 및 DTO 생성 방법 리팩토링 * refactor: 쿼리 변경으로 인한 로직 리팩토링 * test: DTO 변경으로 인한 테스트 코드 수정 * refactor: ktlint 적용 * refactor: DiarySimpleResponse로 리팩토링 * test: 유저의 다이어리 전체 조회 및 날짜별 조회 리팩토링 * refactor: ktlint 적용 * feat: Business Exception 추가 * refactor: ktlint 적용
- Loading branch information
Showing
15 changed files
with
137 additions
and
194 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
14 changes: 0 additions & 14 deletions
14
lovebird-api/src/main/kotlin/com/lovebird/api/dto/response/diary/DiarySimpleListResponse.kt
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
lovebird-api/src/main/kotlin/com/lovebird/api/dto/response/diary/DiarySimpleResponse.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,14 @@ | ||
package com.lovebird.api.dto.response.diary | ||
|
||
import com.lovebird.domain.dto.query.DiaryResponseParam | ||
|
||
data class DiarySimpleResponse( | ||
val diaries: List<DiaryResponseParam>, | ||
val totalCount: Int = diaries.size | ||
) { | ||
companion object { | ||
fun of(diaries: List<DiaryResponseParam>): DiarySimpleResponse { | ||
return DiarySimpleResponse(diaries) | ||
} | ||
} | ||
} |
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.