mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
433 B
11 lines
433 B
import { FormatDTO } from './formatData'
|
|
import { DownloadFormatRepository } from '~/domain/models/download/downloadFormatRepository'
|
|
|
|
export class DownloadFormatApplicationService {
|
|
constructor(private readonly repository: DownloadFormatRepository) {}
|
|
|
|
public async list(projectId: string): Promise<FormatDTO[]> {
|
|
const items = await this.repository.list(projectId)
|
|
return items.map((item) => new FormatDTO(item))
|
|
}
|
|
}
|