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

  1. import { FormatDTO } from './formatData'
  2. import { DownloadFormatRepository } from '~/domain/models/download/downloadFormatRepository'
  3. export class DownloadFormatApplicationService {
  4. constructor(
  5. private readonly repository: DownloadFormatRepository
  6. ) {}
  7. public async list(projectId: string): Promise<FormatDTO[]> {
  8. const items = await this.repository.list(projectId)
  9. return items.map(item => new FormatDTO(item))
  10. }
  11. }