diff --git a/backend/services/user-service/src/interface/http/controllers/wallet.controller.ts b/backend/services/user-service/src/interface/http/controllers/wallet.controller.ts index d635ce4..67dc0fb 100644 --- a/backend/services/user-service/src/interface/http/controllers/wallet.controller.ts +++ b/backend/services/user-service/src/interface/http/controllers/wallet.controller.ts @@ -12,12 +12,21 @@ export class WalletController { @Get() @UseGuards(AuthGuard('jwt')) @ApiBearerAuth() - @ApiOperation({ summary: 'Get wallet balance' }) + @ApiOperation({ summary: 'Get wallet' }) async getWallet(@Req() req: any) { const wallet = await this.walletService.getWallet(req.user.id); return { code: 0, data: wallet }; } + @Get('balance') + @UseGuards(AuthGuard('jwt')) + @ApiBearerAuth() + @ApiOperation({ summary: 'Get wallet balance (alias)' }) + async getWalletBalance(@Req() req: any) { + const wallet = await this.walletService.getWallet(req.user.id); + return { code: 0, data: wallet }; + } + @Post('deposit') @UseGuards(AuthGuard('jwt')) @ApiBearerAuth()