From 3e33d980dd8f7ed4abc90cbdf2452356aee1723a Mon Sep 17 00:00:00 2001 From: Hironsan Date: Sun, 28 Feb 2021 11:20:55 +0900 Subject: [PATCH] Add member service to plugin --- frontend/plugins/services.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/plugins/services.ts b/frontend/plugins/services.ts index de51a812..3e2dc48f 100644 --- a/frontend/plugins/services.ts +++ b/frontend/plugins/services.ts @@ -1,9 +1,12 @@ import { Plugin } from '@nuxt/types' import { FromApiLabelItemListRepository } from '@/repositories/label/api' +import { FromApiMemberItemListRepository } from '@/repositories/member/api' import { LabelApplicationService } from '@/services/application/label.service' +import { MemberApplicationService } from '@/services/application/member.service' export interface Services { - label: LabelApplicationService + label: LabelApplicationService, + member: MemberApplicationService } declare module 'vue/types/vue' { @@ -15,8 +18,11 @@ declare module 'vue/types/vue' { const plugin: Plugin = (context, inject) => { const labelRepository = new FromApiLabelItemListRepository() const label = new LabelApplicationService(labelRepository) + const memberRepository = new FromApiMemberItemListRepository() + const member = new MemberApplicationService(memberRepository) const services: Services = { - label + label, + member } inject('services', services) }