From 0f99a0bcbf2165ff08c62ea15ba5c5646baff1b4 Mon Sep 17 00:00:00 2001 From: Seung jun Date: Mon, 11 Jul 2022 11:33:20 +0900 Subject: [PATCH] =?UTF-8?q?:bookmark=5Ftabs:=20::=20(#178)=20UserQuestionC?= =?UTF-8?q?ountUsecase=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/usecase/user/user-question-count.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/usecase/user/user-question-count.ts diff --git a/src/usecase/user/user-question-count.ts b/src/usecase/user/user-question-count.ts new file mode 100644 index 0000000..a6a0aff --- /dev/null +++ b/src/usecase/user/user-question-count.ts @@ -0,0 +1,11 @@ +import { VideoRepository } from 'src/domain/repositories/video.repository'; + +export class UserQuestionCountUsecase { + constructor(private readonly videoRepository: VideoRepository) {} + + async execute(userId: number): Promise { + const userQuestionCnt = await this.videoRepository.userQuestionCount(userId); + + return userQuestionCnt; + } +}