a350ec7990
- Implemented AccountsService for managing consumer accounts including create, update, delete, and find operations. - Created DTOs for account creation and updates. - Developed BusinessActivitiesController and BusinessActivitiesService for handling business activities related to consumers. - Added complexes management with ComplexesController and ComplexesService. - Introduced POS management with ComplexPosesController and ComplexPosesService. - Created necessary DTOs for business activities and POS. - Established Licenses management with LicensesController and LicensesService. - Integrated consumer management with PartnerConsumersController and PartnerConsumersService. - Added Prisma module imports and service connections across modules.
30 lines
876 B
TypeScript
30 lines
876 B
TypeScript
import { Controller, Get, Param } from '@nestjs/common'
|
|
import { ApiTags } from '@nestjs/swagger'
|
|
import { LicensesService } from './licenses.service'
|
|
|
|
@ApiTags('AdminConsumerAccounts')
|
|
@Controller('admin/consumers/:consumerId/licenses')
|
|
export class LicensesController {
|
|
constructor(private readonly service: LicensesService) {}
|
|
|
|
@Get()
|
|
async findAll(@Param('consumerId') consumerId: string) {
|
|
return this.service.findAll(consumerId)
|
|
}
|
|
|
|
// @Post()
|
|
// async create(@Param('consumerId') consumerId: string, @Body() data: CreateLicenseDto) {
|
|
// return this.service.create(consumerId, data)
|
|
// }
|
|
|
|
// @Patch(':id')
|
|
// async update(@Param('id') id: string, @Body() data: UpdateLicenseDto) {
|
|
// return this.service.update(id, data)
|
|
// }
|
|
|
|
// @Delete(':id')
|
|
// async delete(@Param('id') id: string) {
|
|
// return this.service.delete(id)
|
|
// }
|
|
}
|