일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 캐시메모리저장후DB저장
- joi vs classvalidation
- Class Validation
- ormconfig.ts
- devcamp
- 로그파일저장
- TypeORMconfig.ts
- get
- 네스트로거
- NEST좌석
- CRUD
- Til
- Nest
- TYPESCRIPT좌석생성
- 내일배움캠프
- 좌석만들기
- 테스트결제
- 카카오페이테스트결제
- Nest.js
- NEST좌석생성
- TypeORMconfig
- 좌석생성
- 포트원
- 자바스크립트
- 캐시메모리DB저장
- Live server
- nestwinston
- 좌석내가격
- javascript
- cachememory
- Today
- Total
목록NEST좌석생성 (2)
배씨의 개발일지
어제 만들었던 좌석에 좌석의 가격을 넣어주고 그걸 조회하는 걸 생성했다. Room안에 seat가 들어가 있고 seatPrice에 type과 price을 넣어주고 RoomId로 조회 시 seat와 해당하는 type의 가격이 출력되도록 구현. async createPrice(seatId: number, data: createSeatInfoDto) { const seat = await this.seatRepository.findOne({ where: { seatId }, select: ['type'], }); const seatPrice = new SeatPrice(); seatPrice.type = seat.type; seatPrice.price = data.price; seatPrice.seatId = s..
기존에 만들었던 좌석은 2차원 배열로 만들어서 저장 => 몽고DB에 2차원 배열 저장 => 만들어진 배열 가져오기 MySQL에 배열에 좌표를 찍어 줄 x,y값 과 좌석의 정보 저장 => 2개를 합쳐서 프론트엔드로 던져주면 좌석 완성..? mongoDB로 2차원 배열 저장하는 로직 async createSeat(type: number, row: number, column: number): Promise { try { await this.client.connect(); console.log('MongoDB에 연결되었습니다.'); const db: Db = this.client.db('seat'); // 사각형 모양의 2차원 배열 생성 const seatShape: number[][] = Array.from(..