Skip to content

Commit

Permalink
refactor: poker interface & provider 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
w8385 committed Feb 14, 2024
1 parent 17b9fd9 commit 836262a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/poker/poker.interface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export interface Poker {
pokerId: string;
name: string;
createdAt: string;
participants: string[];
}

export interface Participant {
handle: string;
profileImage: string;
goal: number;
point: number;
problems: number[];
}

export interface PokerResult {
pokerId: string;
name: string;
createdAt: string;
results: Participant[];
}
11 changes: 11 additions & 0 deletions src/poker/poker.provider.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Inject, Injectable } from '@nestjs/common';
import { UserService } from '../user/user.service';
import { RedisClientType } from 'redis';

@Injectable()
export class PokerProvider {
constructor(
private readonly userService: UserService,
@Inject('REDIS') private readonly redisClient: RedisClientType,
) {}
}

0 comments on commit 836262a

Please sign in to comment.