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.
 
 
 
 
 
 

20 lines
745 B

import { StatisticsRepository } from '~/domain/models/statistics/statisticsRepository'
import { Progress, Distribution } from '~/domain/models/statistics/statistics'
export class StatisticsApplicationService {
constructor(
private readonly repository: StatisticsRepository
) {}
public async fetchMemberProgress(projectId: string): Promise<Progress> {
return await this.repository.fetchMemberProgress(projectId)
}
public async fetchCategoryDistribution(projectId: string): Promise<Distribution> {
return await this.repository.fetchCategoryDistribution(projectId)
}
public async fetchSpanDistribution(projectId: string): Promise<Distribution> {
return await this.repository.fetchSpanDistribution(projectId)
}
}