Skip to content

Commit

Permalink
Merge pull request #2149 from doccano/enhancement/frontend-tag
Browse files Browse the repository at this point in the history
Remove unused tag dto
  • Loading branch information
Hironsan committed Mar 2, 2023
2 parents ad2ff23 + 9c778a4 commit dced4c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
14 changes: 0 additions & 14 deletions frontend/services/application/tag/tagApplicationService.ts
Original file line number Diff line number Diff line change
@@ -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<TagDTO[]> {
const items = await this.repository.list(id)
return items.map((item) => new TagDTO(item))
}

public async create(projectId: string, text: string): Promise<void> {
await this.repository.create(projectId, text)
}

public async delete(projectId: string, id: number): Promise<void> {
return await this.repository.delete(projectId, id)
}

public async bulkUpdate(projectId: string | number, tags: string[]): Promise<void> {
const currentTags = await this.repository.list(projectId)
const currentTagNames = currentTags.map((tag) => tag.text)
Expand Down
13 changes: 0 additions & 13 deletions frontend/services/application/tag/tagData.ts

This file was deleted.

0 comments on commit dced4c9

Please sign in to comment.