import { Module } from '@nestjs/common'; import { MatchModule } from '../match/match.module'; import { RiotModule } from '../riot/riot.module'; import { DAKAO_OPTIONS, createDefaultDakaoOptions, } from './dakao.options'; import { DakaoPublisher } from './dakao.publisher'; import { DakaoSubscriber } from './dakao.subscriber'; import { DakaoUserService } from './dakao-user.service'; import { IdempotencyCache } from './idempotency.cache'; import { AccountRegisterHandler } from './handlers/account-register.handler'; import { MatchCancelHandler } from './handlers/match-cancel.handler'; import { MatchJoinHandler } from './handlers/match-join.handler'; import { MatchListHandler } from './handlers/match-list.handler'; import { PreferredPositionRegisterHandler } from './handlers/preferred-position-register.handler'; @Module({ imports: [RiotModule, MatchModule], providers: [ { provide: DAKAO_OPTIONS, useFactory: createDefaultDakaoOptions, }, DakaoPublisher, DakaoSubscriber, DakaoUserService, IdempotencyCache, AccountRegisterHandler, MatchListHandler, MatchJoinHandler, MatchCancelHandler, PreferredPositionRegisterHandler, ], exports: [DakaoPublisher], }) export class DakaoModule {}