Skip to content

Commit

Permalink
✨ feat: 소켓 데이터 전달에 사용할 DTO 구현#97
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuo3o committed Nov 13, 2024
1 parent 9b584ee commit 1fbafe4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions BE/src/websocket/stock/detail/dto/stock-detail-socket.dto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export class StockDetailSocketDto {
mksc_shrn_iscd: string; // 종목코드
stck_prpr: string; // 주식 현재가
prdy_vrss_sign: string; // 전일 대비 부호
prdy_vrss: string; // 전일 대비
prdy_ctrt: string; // 전일 대비율

constructor(
mksc_shrn_iscd: string,
stck_prpr: string,
prdy_vrss_sign: string,
prdy_vrss: string,
prdy_ctrt: string,
) {
this.mksc_shrn_iscd = mksc_shrn_iscd;
this.stck_prpr = stck_prpr;
this.prdy_vrss_sign = prdy_vrss_sign;
this.prdy_vrss = prdy_vrss;
this.prdy_ctrt = prdy_ctrt;
}
}

0 comments on commit 1fbafe4

Please sign in to comment.