Skip to content

Commit

Permalink
feat: check point body
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeahxx19 committed Sep 8, 2024
1 parent 67b43af commit 032de3b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/domain/point/point.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ export class PointController {
@UseGuards(AccessGuard)
@Get('/check')
@Docs('checkPoint')
async checkPoint(@User() user: JwtPayload): Promise<boolean> {
return await this.pointService.checkResPoint(user.id, 40);
async checkPoint(
@User() user: JwtPayload,
@Body() info: { point: number },
): Promise<boolean> {
return await this.pointService.checkResPoint(user.id, info.point);
}

@UseGuards(AccessGuard)
Expand Down

0 comments on commit 032de3b

Please sign in to comment.