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
413 B

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