Skip to content

Commit

Permalink
fix: 공유 패키지 사용하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
joyjhm committed Jan 19, 2025
1 parent 22c0646 commit 9b8b57e
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 297 deletions.
104 changes: 0 additions & 104 deletions apps/quiz-zone/src/constant.ts

This file was deleted.

30 changes: 0 additions & 30 deletions apps/quiz-zone/src/entities/quiz-zone.entity.ts

This file was deleted.

13 changes: 0 additions & 13 deletions apps/quiz-zone/src/entities/quiz.entity.ts

This file was deleted.

6 changes: 0 additions & 6 deletions apps/quiz-zone/src/entities/rank.entity.ts

This file was deleted.

15 changes: 0 additions & 15 deletions apps/quiz-zone/src/entities/submitted-quiz.entity.ts

This file was deleted.

5 changes: 0 additions & 5 deletions apps/quiz-zone/src/quiz-zone/chat-message.interface.ts

This file was deleted.

16 changes: 0 additions & 16 deletions apps/quiz-zone/src/quiz-zone/dto/create-quiz-zone.dto.ts

This file was deleted.

20 changes: 0 additions & 20 deletions apps/quiz-zone/src/quiz-zone/dto/current-quiz.dto.ts

This file was deleted.

53 changes: 0 additions & 53 deletions apps/quiz-zone/src/quiz-zone/dto/find-quiz-zone.dto.ts

This file was deleted.

9 changes: 0 additions & 9 deletions apps/quiz-zone/src/quiz-zone/dto/find-quizzes-response.dto.ts

This file was deleted.

6 changes: 2 additions & 4 deletions apps/quiz-zone/src/quiz-zone/quiz-zone.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ import {
} from '@nestjs/common';
import { QuizZoneService } from './quiz-zone.service';
import { ApiOperation, ApiParam, ApiResponse, ApiTags } from '@nestjs/swagger';
import { CreateQuizZoneDto } from './dto/create-quiz-zone.dto'
import { QuizZone } from '../entities/quiz-zone.entity';
import { CHAT_SERVER_URL } from '../constant';
import { CustomHttpService } from '../http/http.service';
import { CHAT_SERVER_URL, QuizZone, RequestCreateQuizZone } from '@web08-booquiz/shared';


@ApiTags('Quiz Zone')
Expand All @@ -30,7 +28,7 @@ export class QuizZoneController {
@ApiResponse({ status: 201, description: '퀴즈존이 성공적으로 생성되었습니다.' })
@ApiResponse({ status: 400, description: '세션 정보가 없습니다.' })
async create(
@Body() createQuizZoneDto: CreateQuizZoneDto,
@Body() createQuizZoneDto: RequestCreateQuizZone,
@Session() session: Record<string, any>,
): Promise<void> {
if (!session || !session.id) {
Expand Down
2 changes: 1 addition & 1 deletion apps/quiz-zone/src/quiz-zone/quiz-zone.redis.repository.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IQuizZoneRepository } from './quiz-zone.repository.interface';
import { RedisService } from '../redis/redis.service';
import { QuizZone } from 'src/entities/quiz-zone.entity';
import { QuizZone } from '@web08-booquiz/shared';

export class QuizZoneRedisRepository implements IQuizZoneRepository {
constructor(private readonly redisService: RedisService) {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { QuizZone } from '../entities/quiz-zone.entity';
import { QuizZone } from '@web08-booquiz/shared';

/**
* 퀴즈 존 저장소를 위한 인터페이스입니다.
Expand Down
Loading

0 comments on commit 9b8b57e

Please sign in to comment.