dee96b6e91
- Created response DTOs for ConfigService, AppService, AuthService, CatalogsService, AccountsService, BusinessActivityComplexesService, ComplexPosesService, SalesInvoicesService, BusinessActivitiesService, ConsumerBusinessActivityGoodsService, and others. - Implemented Create, FindAll, FindOne, and Update response types for services in consumer, partners, and POS modules. - Added request DTOs for creating and updating goods in the consumer business activities module. - Introduced filtering DTO for partner licenses. - Enhanced response mapping for partner license activations.
25 lines
1.1 KiB
TypeScript
25 lines
1.1 KiB
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'
|
|
import type { PartnerBusinessActivityAccountsChargeServiceCreateResponseDto } from './dto/accounts-charge-response.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,
|
|
): Promise<PartnerBusinessActivityAccountsChargeServiceCreateResponseDto> {
|
|
return this.service.create(partnerId, consumerId, businessActivityId, data)
|
|
}
|
|
}
|