Skip to content

Commit

Permalink
feat: finishCount support UserId
Browse files Browse the repository at this point in the history
  • Loading branch information
baboon-king committed May 24, 2024
1 parent 2853083 commit 8eadfe0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 8eadfe0

Please sign in to comment.