diff --git a/apps/api/src/user-learn-record/user-learn-record.controller.ts b/apps/api/src/user-learn-record/user-learn-record.controller.ts index a809757e3..89865d739 100644 --- a/apps/api/src/user-learn-record/user-learn-record.controller.ts +++ b/apps/api/src/user-learn-record/user-learn-record.controller.ts @@ -14,4 +14,9 @@ export class UserLearnRecordController { finishCount(@User() user: UserEntity, @Query() dto?: GetUserLearnRecordDto) { return this.userLearnRecordService.find(user.userId, dto); } + + @Get("finishCountByUserId") + finishCountByUserId(@Query("userId") userId: string, @Query() dto?: GetUserLearnRecordDto) { + return this.userLearnRecordService.find(userId, dto); + } }