Merge branch 'refactorName' into 'main'

refactore module name

See merge request v3/service/user!32
This commit is contained in:
Sylvain Briat 2023-03-31 08:48:07 +00:00
commit e343048ac2
33 changed files with 8 additions and 8 deletions

View File

@ -4,13 +4,13 @@ import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { ConfigurationModule } from './modules/configuration/configuration.module';
import { HealthModule } from './modules/health/health.module';
import { UsersModule } from './modules/users/users.module';
import { UserModule } from './modules/user/user.module';
@Module({
imports: [
ConfigModule.forRoot({ isGlobal: true }),
AutomapperModule.forRoot({ strategyInitializer: classes() }),
UsersModule,
UserModule,
ConfigurationModule,
HealthModule,
],

View File

@ -11,7 +11,7 @@ async function bootstrap() {
options: {
package: ['user', 'health'],
protoPath: [
join(__dirname, 'modules/users/adapters/primaries/user.proto'),
join(__dirname, 'modules/user/adapters/primaries/user.proto'),
join(__dirname, 'modules/health/adapters/primaries/health.proto'),
],
url: process.env.SERVICE_URL + ':' + process.env.SERVICE_PORT,

View File

@ -31,7 +31,7 @@ import { RpcValidationPipe } from '../../../../utils/pipes/rpc.validation-pipe';
}),
)
@Controller()
export class UsersController {
export class UserController {
constructor(
private readonly _commandBus: CommandBus,
private readonly _queryBus: QueryBus,

View File

@ -5,7 +5,7 @@ import { ConfigModule, ConfigService } from '@nestjs/config';
import { CqrsModule } from '@nestjs/cqrs';
import { redisStore } from 'cache-manager-ioredis-yet';
import { DatabaseModule } from '../database/database.module';
import { UsersController } from './adapters/primaries/users.controller';
import { UserController } from './adapters/primaries/user.controller';
import { Messager } from './adapters/secondaries/messager';
import { UsersRepository } from './adapters/secondaries/users.repository';
import { CreateUserUseCase } from './domain/usecases/create-user.usecase';
@ -46,7 +46,7 @@ import { UserProfile } from './mappers/user.profile';
inject: [ConfigService],
}),
],
controllers: [UsersController],
controllers: [UserController],
providers: [
UserProfile,
UsersRepository,
@ -59,4 +59,4 @@ import { UserProfile } from './mappers/user.profile';
],
exports: [],
})
export class UsersModule {}
export class UserModule {}

View File

@ -1,5 +1,5 @@
import { ArgumentMetadata } from '@nestjs/common';
import { UpdateUserRequest } from '../../../modules/users/domain/dtos/update-user.request';
import { UpdateUserRequest } from '../../../modules/user/domain/dtos/update-user.request';
import { RpcValidationPipe } from '../../pipes/rpc.validation-pipe';
describe('RpcValidationPipe', () => {