update pos consumer module

This commit is contained in:
2026-03-29 18:06:41 +03:30
parent 63fa2bc67e
commit c870a43e35
53 changed files with 2145 additions and 671 deletions
@@ -1,3 +1,4 @@
import { TokenAccount } from '@/common/decorators/tokenInfo.decorator'
import { Body, Controller, Get, Param, Patch, Post } from '@nestjs/common'
import { ApiTags } from '@nestjs/swagger'
import { AccountsService } from './accounts.service'
@@ -9,7 +10,7 @@ export class AccountsController {
constructor(private readonly accountsService: AccountsService) {}
@Get()
async findAll(@Param('consumerId') consumerId: string) {
async findAll(@TokenAccount('userId') consumerId: string) {
return this.accountsService.findAll(consumerId)
}
@@ -20,7 +21,7 @@ export class AccountsController {
@Post()
async create(
@Param('consumerId') consumerId: string,
@TokenAccount('userId') consumerId: string,
@Body() data: CreateConsumerAccountDto,
) {
return this.accountsService.create(consumerId, data)