Skip to content

Commit

Permalink
📑 :: (#178) UserAnswerCountUsecase 파일 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
flower1465 committed Jul 11, 2022
1 parent 1e2d3ee commit 114bbfd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/usecase/user/user-answer-count.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { VideoRepository } from 'src/domain/repositories/video.repository';

export class UserAnswerCountUsecase {
constructor(private readonly videoRepository: VideoRepository) {}

async execute(userId: number): Promise<number> {
const userAnswerCnt = await this.videoRepository.userAnswerCount(userId);

return userAnswerCnt;
}
}

0 comments on commit 114bbfd

Please sign in to comment.