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.

15 lines
539 B

  1. import { StatisticsDTO } from './statisticsData'
  2. import { StatisticsRepository } from '~/domain/models/statistics/statisticsRepository'
  3. export class StatisticsApplicationService {
  4. constructor(
  5. private readonly repository: StatisticsRepository
  6. ) {}
  7. public async fetchStatistics(
  8. projectId: string, labelText: string, userText: string, progressLabels: string[]
  9. ): Promise<StatisticsDTO> {
  10. const item = await this.repository.fetch(projectId)
  11. return new StatisticsDTO(item, labelText, userText, progressLabels)
  12. }
  13. }