-
Notifications
You must be signed in to change notification settings - Fork 1
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/#233] addArticleViewHis에서 runCatching 후 예외 발생시 트랜잭션 롤백되도록 수정 * feat: 아티클 목록 조회 목킹 API 프로토타입 * refacotr: ReadArticleResponse 에서 uc out dto 의존성 제거 * test: 아티클 목록 조회 컨트롤러 테스트 작성 (swagger 허브 등록) * test: 아티클 조회 includedWorkbooks 필드 Null 처리 * test: 아티클 단건 조회에서 includedWorkbooks 필드에 대한 Description 추가 * test: 응답 바디 type descrition 수정 * test: 응답 바디 type descrition 수정 (fieldWithObject -> fieldWithArray) * test: 아티클 목록 조회 API URI 일부 수정 * test: 아티클 목록 조회 API reponse body description 추가 * test: 학습지 목록 조회 응답 body type 수정 * test: article 목록 조회 API field description 수정 * test: field path 수정 (data.articles -> data.articles[]) * test: 아티클 단건 조회 테스트에서 fieild descritpion 수정
- Loading branch information
Showing
9 changed files
with
206 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
15 changes: 15 additions & 0 deletions
15
api/src/main/kotlin/com/few/api/domain/article/usecase/ReadArticlesUseCase.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,15 @@ | ||
package com.few.api.domain.article.usecase | ||
|
||
import com.few.api.domain.article.usecase.dto.ReadArticlesUseCaseIn | ||
import com.few.api.domain.article.usecase.dto.ReadArticlesUseCaseOut | ||
import org.springframework.stereotype.Component | ||
import org.springframework.transaction.annotation.Transactional | ||
|
||
@Component | ||
class ReadArticlesUseCase { | ||
|
||
@Transactional(readOnly = true) | ||
fun execute(useCaseIn: ReadArticlesUseCaseIn): ReadArticlesUseCaseOut { | ||
return ReadArticlesUseCaseOut(emptyList()) // TODO: impl | ||
} | ||
} |
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
5 changes: 5 additions & 0 deletions
5
api/src/main/kotlin/com/few/api/domain/article/usecase/dto/ReadArticlesUseCaseIn.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,5 @@ | ||
package com.few.api.domain.article.usecase.dto | ||
|
||
data class ReadArticlesUseCaseIn( | ||
val prevArticleId: Long, | ||
) |
5 changes: 5 additions & 0 deletions
5
api/src/main/kotlin/com/few/api/domain/article/usecase/dto/ReadArticlesUseCaseOut.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,5 @@ | ||
package com.few.api.domain.article.usecase.dto | ||
|
||
data class ReadArticlesUseCaseOut( | ||
val articles: List<ReadArticleUseCaseOut>, | ||
) |
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: 6 additions & 0 deletions
6
api/src/main/kotlin/com/few/api/web/controller/article/response/ReadArticlesResponse.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,6 @@ | ||
package com.few.api.web.controller.article.response | ||
|
||
data class ReadArticlesResponse( | ||
val articles: List<ReadArticleResponse>, | ||
val isLast: Boolean, | ||
) |
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