Skip to content

feat(news): 뉴스 학습 부가 기능 구현 (#389)#487

Merged
DDINGJOO merged 1 commit into
developfrom
feature/389/news-learning-extras
Jan 22, 2026
Merged

feat(news): 뉴스 학습 부가 기능 구현 (#389)#487
DDINGJOO merged 1 commit into
developfrom
feature/389/news-learning-extras

Conversation

@DDINGJOO

@DDINGJOO DDINGJOO commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 뉴스 학습 부가 기능 구현 (읽기 기록, 북마크, 통계, TTS)

API Endpoints

Method Path Description
POST /news/{articleId}/read 읽기 완료 기록
POST /news/{articleId}/bookmark 북마크 토글
GET /news/bookmarks 북마크 목록 조회
GET /news/stats 학습 통계 조회
GET /news/{articleId}/audio TTS 오디오 URL

Query Parameters

  • limit: 1~50 (default: 10) - 북마크 목록
  • voice: TTS 음성 (default: Joanna)

Response Examples

학습 통계 (GET /news/stats)

```json
{
"totalRead": 25,
"thisWeekRead": 5,
"totalBookmarks": 10,
"byLevel": {"BEGINNER": 10, "INTERMEDIATE": 15},
"byCategory": {"TECH": 8, "BUSINESS": 12}
}
```

Changes

  • UserNewsRecord: 사용자 뉴스 활동 기록 모델
  • UserNewsRepository: 읽기/북마크 저장소
  • NewsLearningService: 학습 부가 기능 서비스
  • NewsHandler: 새 API 엔드포인트 추가
  • NewsErrorCode: UNAUTHORIZED 에러 코드 추가
  • template.yaml: API Gateway 이벤트 및 Polly 권한 추가

Related Issue

Test Plan

  • Gradle 빌드 성공
  • 읽기 완료 기록 테스트
  • 북마크 추가/해제 토글 테스트
  • 북마크 목록 조회 테스트
  • 학습 통계 조회 테스트
  • TTS 오디오 URL 생성 테스트

- 읽기 완료 기록 API (POST /news/{articleId}/read)
- 북마크 토글 API (POST /news/{articleId}/bookmark)
- 북마크 목록 조회 API (GET /news/bookmarks)
- 학습 통계 조회 API (GET /news/stats)
- TTS 오디오 URL 조회 API (GET /news/{articleId}/audio)
- UserNewsRecord 모델 추가
- UserNewsRepository 추가
- NewsLearningService 추가
@github-actions github-actions Bot added backend Backend code changes layer:entity Entity/Domain layer layer:repository Repository/DAO layer layer:service Service layer labels Jan 22, 2026
@github-actions

github-actions Bot commented Jan 22, 2026

Copy link
Copy Markdown

Jira: MESP-261

@DDINGJOO DDINGJOO merged commit d993204 into develop Jan 22, 2026
2 checks passed
hye-inA pushed a commit that referenced this pull request Jan 23, 2026
…-learning-extras

feat(news): 뉴스 학습 부가 기능 구현 (#389)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend code changes layer:entity Entity/Domain layer layer:repository Repository/DAO layer layer:service Service layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant