import { Body, Controller, Get, Param, Post } from '@nestjs/common' import { ApiTags } from '@nestjs/swagger' import { PartnerAccountChargeTransactionService } from './chargeAccountQuotaTransactions.service' import { ChargeAccountQuotaDto } from './dto/chargeAccountQuotaTransactions.dto' @ApiTags('Admin Partner Account Charge') @Controller('admin/partners/:partnerId/charge-account-transactions') export class PartnerAccountChargeTransactionController { constructor(private readonly service: PartnerAccountChargeTransactionService) {} @Get() async findAll(@Param('partnerId') partnerId: string) { return this.service.findAll(partnerId) } @Get(':id') async findOne(@Param('partnerId') partnerId: string, @Param('id') id: string) { return this.service.findOne(partnerId, id) } @Post() async create( @Param('partnerId') partnerId: string, @Body() data: ChargeAccountQuotaDto, ) { return this.service.create(partnerId, data) } // @Patch(':id') // async update( // @Param('partnerId') partnerId: string, // @Param('id') id: string, // @Body() data: UpdateLicenseDto, // ) { // return this.licensesService.update(partnerId, id, data) // } }