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.
 
 
 
 
 
 

13 lines
439 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))
}
}