diff --git a/src/usecase/user/user-answer-count.ts b/src/usecase/user/user-answer-count.ts new file mode 100644 index 0000000..9166a22 --- /dev/null +++ b/src/usecase/user/user-answer-count.ts @@ -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 { + const userAnswerCnt = await this.videoRepository.userAnswerCount(userId); + + return userAnswerCnt; + } +}