24 lines
979 B
TypeScript
24 lines
979 B
TypeScript
|
|
import { PartnerInfo } from '@/common/decorators/partnerInfo.decorator'
|
||
|
|
import { Body, Controller, Param, Post } from '@nestjs/common'
|
||
|
|
import { ApiTags } from '@nestjs/swagger'
|
||
|
|
import { PartnerBusinessActivityAccountsChargeService } from './accounts-charge.service'
|
||
|
|
import { CreateBusinessActivityAccountsChargeDto } from './dto/accounts-charge.dto'
|
||
|
|
|
||
|
|
@ApiTags('PartnerConsumerBAAccountsCharge')
|
||
|
|
@Controller(
|
||
|
|
'partner/consumers/:consumerId/business-activities/:businessActivityId/accounts-charge',
|
||
|
|
)
|
||
|
|
export class PartnerBusinessActivityAccountsChargeController {
|
||
|
|
constructor(private readonly service: PartnerBusinessActivityAccountsChargeService) {}
|
||
|
|
|
||
|
|
@Post()
|
||
|
|
async create(
|
||
|
|
@PartnerInfo('id') partnerId: string,
|
||
|
|
@Param('consumerId') consumerId: string,
|
||
|
|
@Param('businessActivityId') businessActivityId: string,
|
||
|
|
@Body() data: CreateBusinessActivityAccountsChargeDto,
|
||
|
|
) {
|
||
|
|
return this.service.create(partnerId, consumerId, businessActivityId, data)
|
||
|
|
}
|
||
|
|
}
|