basic ad entity without direction

This commit is contained in:
sbriat
2023-08-18 12:47:51 +02:00
parent ce48890a66
commit db13f4d87e
47 changed files with 1122 additions and 88 deletions

View File

@@ -0,0 +1,23 @@
import { Module, Provider } from '@nestjs/common';
import { CqrsModule } from '@nestjs/cqrs';
import { DIRECTION_ENCODER, PARAMS_PROVIDER } from './geography.di-tokens';
import { DefaultParamsProvider } from './infrastructure/default-params-provider';
import { PostgresDirectionEncoder } from './infrastructure/postgres-direction-encoder';
const adapters: Provider[] = [
{
provide: PARAMS_PROVIDER,
useClass: DefaultParamsProvider,
},
{
provide: DIRECTION_ENCODER,
useClass: PostgresDirectionEncoder,
},
];
@Module({
imports: [CqrsModule],
providers: [...adapters],
exports: [DIRECTION_ENCODER],
})
export class GeographyModule {}