Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closed #59
✅ PR 유형
📝 작업 내용
Pull Request: 기사 생성 기능 구현
개요
이 PR은 주식 예측 데이터를 기반으로 기사 생성 기능을 추가합니다. 매일 오전 7시 30분에 주식 트렌드를 분석하여 기사를 자동으로 생성하며, 생성된 기사는 정해진 기간 동안 저장됩니다. 시스템은 기사의 총 개수가 최대 제한(10개)을 초과하지 않도록 관리하며, 만료된 기사는 자동으로 삭제됩니다.
주요 기능
1. ArticleScheduler
2. ArticleGenerationService
Article
엔티티로 변환합니다.SHORT_TERM
,MID_TERM
,LONG_TERM
)에 따라 기사의 지속 기간을 설정합니다 (3일, 7일, 14일).3. ArticleServiceImpl
getAllArticles
).getArticlesBySymbol
).4. ArticleController
GET /articles
: 모든 기사 조회.GET /articles/{symbol}
: 특정 주식 심볼의 기사 조회.POST /articles/generate
: 기사 생성을 강제로 실행.5. AdvTrendAnalyzerImpl
6. ChatGptConfig
RestClient
를 구성합니다.주요 개선사항
동적 기사 생성:
효율적인 트렌드 분석:
기사 수 제한:
수동 실행 가능:
POST /articles/generate
엔드포인트를 추가하여 관리자가 수동으로 기사 생성을 실행할 수 있습니다.🔍 테스트 결과
🎈 변경 사항 체크리스트
✨ 피드백 반영사항
💬 리뷰 요구사항