|
@ -0,0 +1,16 @@ |
|
|
|
|
|
import { DownloadRepository } from '~/domain/models/download/downloadRepository' |
|
|
|
|
|
|
|
|
|
|
|
export class DownloadApplicationService { |
|
|
|
|
|
constructor( |
|
|
|
|
|
private readonly repository: DownloadRepository |
|
|
|
|
|
) {} |
|
|
|
|
|
|
|
|
|
|
|
public async request(projectId: string, format: string): Promise<string> { |
|
|
|
|
|
const item = await this.repository.prepare(projectId, format) |
|
|
|
|
|
return item |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public download(projectId: string, taskId: string): void { |
|
|
|
|
|
this.repository.download(projectId, taskId) |
|
|
|
|
|
} |
|
|
|
|
|
} |