Skip to content

Commit

Permalink
#53 [style] : 변수명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbang105 committed Jun 9, 2024
1 parent fabb3c0 commit 84971d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public ResponseEntity<ApiResponse<Object>> collectCandleData(
@RequestParam("end_date") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime endDate,
@RequestParam("candle_name") String candleName) {

candleDataCollector.collectCandleData(koreanName, startDate, endDate, candleName);
candleDataCollector.collectCandleData(koreanName, candleName, startDate, endDate);

return ApiResponse.onSuccess(SuccessStatus.SUCCESS_CANDLE_INFOS);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
import java.util.List;

public interface CandleInfoRepository extends JpaRepository<CandleInfo,Long> {
@Query("SELECT c FROM CandleInfo c WHERE c.candle = :candle AND c.dateTime BETWEEN :startDate AND :endDate ORDER BY c.dateTime")
List<CandleInfo> findFilteredCandleInfo(Candle candle, LocalDateTime startDate, LocalDateTime endDate);
@Query("SELECT c FROM CandleInfo c WHERE c.market = :market AND c.candle = :candle AND c.dateTime BETWEEN :startDate AND :endDate ORDER BY c.dateTime")
List<CandleInfo> findFilteredCandleInfo(Market market, Candle candle, LocalDateTime startDate, LocalDateTime endDate);

@Query("SELECT c FROM CandleInfo c WHERE c.market = :market AND c.candle = :candle AND c.dateTime > :startDate ORDER BY c.dateTime")
List<CandleInfo> findByMarketAndCandleAndDateTimeAfter(Market market, Candle candle, LocalDateTime startDate);

CandleInfo findTopByMarketAndCandleOrderByTimestampDesc(Market market, Candle candle);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
import java.time.LocalDateTime;

public interface CandleInfoService {
void getCandleInfo(String marketKoreanName, LocalDateTime to, int count, String candleType);
void getCandleInfo(String koreanName, LocalDateTime to, int count, String candleName);
}

0 comments on commit 84971d4

Please sign in to comment.