-
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.
* feat: TIMEOUT 필드 이름 변경 * fix: 종목 조회 및 배당 일정 조회 메서드를 Mono 타입으로 반환하도록 변경 * test: 테스트 실패 해결 * test: 상장 종목 조회의 예외 케이스 추가 * fix: Flux 연산 수행중 별도의 쓰레드에서 동작시 blocking하지 않도록 변경 * test: 테스트 실패 해결 * test: todo 추가 및 새로운 테스트 추가 - 도중에 blocking되지 않아야함 * fix: fetchDividend 메서드 반환타입을 Flux로 변경 * test: 테스트 추가 * test: 액세스 토큰 재발급 실패시 에외 케이스 테스트 추가 * fix: checkAccessToken 애노테이션으로 변경 * fix: onErrorResume 연산 추가 * feat: 로깅 추가 * test: 테스트 제거 * feat: 액세스 토큰을 재발급하는 스케줄러 구현 * test: 액세스 토큰 재발급하는 테스트 추가 * feat: 스케줄러 주기 변경 * fix: aop 제거 및 애노테이션 제거 * refactor: 종가 저장소 개선 * feat: 애노테이션 제거 * rename: 패키지 이동 * style: 코드 정리
- Loading branch information
1 parent
61b49a3
commit cfe38e0
Showing
33 changed files
with
528 additions
and
425 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/main/java/codesquad/fineants/domain/exchangerate/scheduler/ExchangeRateScheduler.java
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,21 @@ | ||
package codesquad.fineants.domain.exchangerate.scheduler; | ||
|
||
import org.springframework.scheduling.annotation.Scheduled; | ||
import org.springframework.stereotype.Component; | ||
import org.springframework.transaction.annotation.Transactional; | ||
|
||
import codesquad.fineants.domain.exchangerate.service.ExchangeRateService; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Component | ||
@RequiredArgsConstructor | ||
public class ExchangeRateScheduler { | ||
|
||
private final ExchangeRateService service; | ||
|
||
@Scheduled(cron = "0 0 * * * *") // 매일 자정에 한번씩 수행 | ||
@Transactional | ||
public void updateExchangeRates() { | ||
service.updateExchangeRates(); | ||
} | ||
} |
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
25 changes: 25 additions & 0 deletions
25
...n/java/codesquad/fineants/domain/gainhistory/scheduler/PortfolioGainHistoryScheduler.java
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,25 @@ | ||
package codesquad.fineants.domain.gainhistory.scheduler; | ||
|
||
import org.springframework.scheduling.annotation.Scheduled; | ||
import org.springframework.stereotype.Component; | ||
import org.springframework.transaction.annotation.Transactional; | ||
|
||
import codesquad.fineants.domain.gainhistory.domain.dto.response.PortfolioGainHistoryCreateResponse; | ||
import codesquad.fineants.domain.gainhistory.service.PortfolioGainHistoryService; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
|
||
@Component | ||
@RequiredArgsConstructor | ||
@Slf4j | ||
public class PortfolioGainHistoryScheduler { | ||
|
||
private final PortfolioGainHistoryService service; | ||
|
||
@Scheduled(cron = "0 0 16 * * ?") // 매일 16시에 실행 | ||
@Transactional | ||
public void scheduledPortfolioGainHistory() { | ||
PortfolioGainHistoryCreateResponse response = service.addPortfolioGainHistory(); | ||
log.info("포트폴리오 수익 내역 기록 결과, size = {}", response.getIds().size()); | ||
} | ||
} |
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
80 changes: 0 additions & 80 deletions
80
src/main/java/codesquad/fineants/domain/kis/aop/AccessTokenAspect.java
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/main/java/codesquad/fineants/domain/kis/aop/CheckedKisAccessToken.java
This file was deleted.
Oops, something went wrong.
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
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.