cliebt service
This commit is contained in:
parent
f249567baa
commit
7262d03365
@ -30,8 +30,7 @@ async function bootstrap() {
|
||||
.setDescription('Unified DCB Payment Aggregation Platform')
|
||||
.setVersion('1.0.0')
|
||||
.addBearerAuth()
|
||||
.addTag('payments')
|
||||
.addTag('subscriptions')
|
||||
|
||||
.build();
|
||||
|
||||
const document = SwaggerModule.createDocument(app, config);
|
||||
|
||||
@ -85,7 +85,7 @@ export class MerchantController {
|
||||
@ApiResponse({ status: 409, description: 'User already attached to merchant' })
|
||||
addUserToMerchant(@Body() dto: AddUserToMerchantDto) {
|
||||
return this.merchantService.addUserToMerchant(dto);
|
||||
}
|
||||
}
|
||||
|
||||
@Get(':id/users')
|
||||
@ApiOperation({ summary: 'Get all users of a merchant' })
|
||||
|
||||
@ -6,13 +6,13 @@ import { CreateMerchantPartnerDto } from '../dto/create.merchant.dto';
|
||||
import { UpdateMerchantPartnerDto } from '../dto/ update.merchant.dto';
|
||||
import { AddUserToMerchantDto, UpdateUserRoleDto } from '../dto/merchant.user.dto';
|
||||
import { PrismaService } from 'src/shared/services/prisma.service';
|
||||
import { HttpUserServiceClient } from './user.service.client';
|
||||
|
||||
@Injectable()
|
||||
export class MerchantService {
|
||||
constructor(
|
||||
private readonly prisma: PrismaService,
|
||||
@Inject()
|
||||
private readonly userServiceClient: UserServiceClient,
|
||||
private readonly userServiceClient: HttpUserServiceClient,
|
||||
private readonly eventEmitter: EventEmitter2,
|
||||
) {}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user