From fca5eefb635434c1b0f616ac777bcd4051436f46 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 12 Feb 2021 16:14:04 +0900 Subject: [PATCH] Add template service --- .../services/application/template.service.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 frontend/services/application/template.service.ts diff --git a/frontend/services/application/template.service.ts b/frontend/services/application/template.service.ts new file mode 100644 index 00000000..6375f000 --- /dev/null +++ b/frontend/services/application/template.service.ts @@ -0,0 +1,16 @@ +import { TemplateRepository } from '@/repositories/template/interface' +import { ConfigTemplateItem } from '@/models/config/config-template' + +export class TemplateApplicationService { + constructor( + private readonly repository: TemplateRepository + ) {} + + public list(id: string): Promise { + return this.repository.list(id) + } + + public find(projectId: string, optionName: string): Promise { + return this.repository.find(projectId, optionName) + } +}