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

import { StatisticsDTO } from './statisticsData'
import { StatisticsRepository } from '~/domain/models/statistics/statisticsRepository'
export class StatisticsApplicationService {
constructor(
private readonly repository: StatisticsRepository
) {}
public async fetchStatistics(
projectId: string, labelText: string, userText: string, progressLabels: string[]
): Promise<StatisticsDTO> {
const item = await this.repository.fetch(projectId)
return new StatisticsDTO(item, labelText, userText, progressLabels)
}
}