Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] redis를 사용해 최근 검색어 저장 #105

Merged
merged 25 commits into from
Nov 14, 2024
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2ee713d
Merge branch 'back/main' of https://github.com/boostcampwm-2024/web16…
jinddings Nov 13, 2024
ea0afd5
Merge branch 'back/main' of https://github.com/boostcampwm-2024/web16…
jinddings Nov 13, 2024
0afe5b1
✨ feat : redis를 이용해 최근 검색 단어 저장(#57):
jinddings Nov 13, 2024
a617038
✨ feat: API 분리를 위해 chart 전용으로 변경#54
uuuo3o Nov 13, 2024
e23424b
✨ feat: 프론트에서 필요한 값만 반환할 수 있도록 DTO 수정#54
uuuo3o Nov 13, 2024
0203e65
🎨 style: 코드 순서 변경#54
uuuo3o Nov 13, 2024
00677ba
🔥 remove: 불필요한 파일 삭제#54
uuuo3o Nov 13, 2024
383a166
📝 docs: 파일명 변경 및 swagger 문서 수정#54
uuuo3o Nov 13, 2024
463c4cd
➕ add: 차트 그리기에 필요한 값 추가 및 인터페이스 이름 변경#54
uuuo3o Nov 13, 2024
764de7b
🚚 rename: 중복되는 이름 변경#54
uuuo3o Nov 13, 2024
98b8b57
✨ feat: 주식 현재가 API에 사용할 interface, dto 구현#54
uuuo3o Nov 13, 2024
4fe008b
✨ feat: 주식 현재가 API 요청 로직 구현#54
uuuo3o Nov 13, 2024
7dd9da8
♻️ refactor: requestApi 함수 분리 및 불필요한 파일 삭제#55
uuuo3o Nov 13, 2024
6df873c
🚚 rename: 이름을 명확하게 변경#55
uuuo3o Nov 13, 2024
875f2a7
✨ feat: 주식현재가 일자별 API에 사용할 interface, dto 구현#55
uuuo3o Nov 13, 2024
e56921a
✨ feat: 주식현재가 일자별 API 요청 로직 구현#55
uuuo3o Nov 13, 2024
7a61c8d
🚑 !HOTFIX : 도커 컨테이너 시간 설정
jinddings Nov 14, 2024
850e53b
🚑 !HOTFIX : docker 시간 설정 명령어 수정
jinddings Nov 14, 2024
5eb4fc5
🚑 !HOTFIX : docker 시간 설정 명령어 수정
jinddings Nov 14, 2024
e028917
🔧 fix : auth api 경로 변경(#57)
jinddings Nov 14, 2024
d218da8
🚚 rename : redisUtil -> redisDomainService로 클래스 및 파일 이름 변경(#57)
jinddings Nov 14, 2024
3bb0365
✨ feat : 최근 검색어 10 개만 저장하도록 수정(#57)
jinddings Nov 14, 2024
2b2b642
Merge branch 'back/main' into feature/api/stockList-#57
jinddings Nov 14, 2024
b19180c
♻️ refactor : lint 오류 수정(#57)
jinddings Nov 14, 2024
6bd2c54
Merge branch 'feature/api/stockList-#57' of https://github.com/boostc…
jinddings Nov 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
📝 docs: 파일명 변경 및 swagger 문서 수정#54
  • Loading branch information
uuuo3o authored and jinddings committed Nov 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 383a166626cfd0ff1b73c92282d644cb58e78cdf
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import { ApiProperty } from '@nestjs/swagger';
/**
* 국내주식기간별시세(일/주/월/년) API를 이용할 때 필요한 요청 데이터를 담고 있는 DTO
*/
export class StockDetailRequestDto {
export class StockDetailChartRequestDto {
@ApiProperty({ description: '조회 시작일자 (ex) 20220501' })
fid_input_date_1: string;

10 changes: 5 additions & 5 deletions BE/src/stock/detail/stock-detail.controller.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Body, Controller, Param, Post } from '@nestjs/common';
import { ApiBody, ApiOperation, ApiParam, ApiResponse } from '@nestjs/swagger';
import { StockDetailService } from './stock-detail.service';
import { StockDetailRequestDto } from './dto/stock-detail-request.dto';
import { StockDetailChartRequestDto } from './dto/stock-detail-chart-request.dto';
import { InquirePriceChartResponseDto } from './dto/stock-detail-chart-response.dto';

@Controller('/api/stocks')
export class StockDetailController {
constructor(private readonly stockDetailService: StockDetailService) {}

@Post(':stockCode')
@ApiOperation({ summary: '단일 주식 종목 detail 페이지 상단부 조회 API' })
@ApiOperation({ summary: '국내주식기간별시세(일/주/월/년) 조회 API' })
@ApiParam({
name: 'stockCode',
required: true,
@@ -23,16 +23,16 @@ export class StockDetailController {
'fid_input_date_1: 조회 시작일자 (ex) 20240505\n\n' +
'fid_input_date_2: 조회 종료일자 (ex) 20241111\n\n' +
'fid_period_div_code: 기간 분류 코드 (ex) D(일봉), W(주봉), M(월봉), Y(년봉)',
type: StockDetailRequestDto,
type: StockDetailChartRequestDto,
})
@ApiResponse({
status: 201,
description: '단일 주식 종목 기본값 조회 성공',
description: '국내주식기간별시세(일/주/월/년) 조회 성공',
type: InquirePriceChartResponseDto,
})
getStockDetail(
@Param('stockCode') stockCode: string,
@Body() body: StockDetailRequestDto,
@Body() body: StockDetailChartRequestDto,
) {
const { fid_input_date_1, fid_input_date_2, fid_period_div_code } = body;
return this.stockDetailService.getInquirePriceChart(