Skip to content

Commit

Permalink
๐Ÿ“‘ :: (#178) UserQuestionCountUsecase ์ƒ์„ฑ
Browse files Browse the repository at this point in the history
  • Loading branch information
flower1465 committed Jul 11, 2022
1 parent a49117b commit 0f99a0b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/usecase/user/user-question-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 UserQuestionCountUsecase {
constructor(private readonly videoRepository: VideoRepository) {}

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

return userQuestionCnt;
}
}

0 comments on commit 0f99a0b

Please sign in to comment.