From 9c778a495c8fb43277812aa4c7f806597e2da75d Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 2 Mar 2023 11:09:32 +0900 Subject: [PATCH] Remove unused tag dto --- .../application/tag/tagApplicationService.ts | 14 -------------- frontend/services/application/tag/tagData.ts | 13 ------------- 2 files changed, 27 deletions(-) delete mode 100644 frontend/services/application/tag/tagData.ts diff --git a/frontend/services/application/tag/tagApplicationService.ts b/frontend/services/application/tag/tagApplicationService.ts index 69a01bd5..4d745a84 100644 --- a/frontend/services/application/tag/tagApplicationService.ts +++ b/frontend/services/application/tag/tagApplicationService.ts @@ -1,22 +1,8 @@ -import { TagDTO } from './tagData' import { TagRepository } from '~/domain/models/tag/tagRepository' export class TagApplicationService { constructor(private readonly repository: TagRepository) {} - public async list(id: string): Promise { - const items = await this.repository.list(id) - return items.map((item) => new TagDTO(item)) - } - - public async create(projectId: string, text: string): Promise { - await this.repository.create(projectId, text) - } - - public async delete(projectId: string, id: number): Promise { - return await this.repository.delete(projectId, id) - } - public async bulkUpdate(projectId: string | number, tags: string[]): Promise { const currentTags = await this.repository.list(projectId) const currentTagNames = currentTags.map((tag) => tag.text) diff --git a/frontend/services/application/tag/tagData.ts b/frontend/services/application/tag/tagData.ts deleted file mode 100644 index 0293252f..00000000 --- a/frontend/services/application/tag/tagData.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { TagItem } from '~/domain/models/tag/tag' - -export class TagDTO { - id: number - text: string - project: string | number - - constructor(item: TagItem) { - this.id = item.id - this.text = item.text - this.project = item.project - } -}