|
|
@ -0,0 +1,16 @@ |
|
|
|
import { TemplateRepository } from '@/repositories/template/interface' |
|
|
|
import { ConfigTemplateItem } from '@/models/config/config-template' |
|
|
|
|
|
|
|
export class TemplateApplicationService { |
|
|
|
constructor( |
|
|
|
private readonly repository: TemplateRepository |
|
|
|
) {} |
|
|
|
|
|
|
|
public list(id: string): Promise<string[]> { |
|
|
|
return this.repository.list(id) |
|
|
|
} |
|
|
|
|
|
|
|
public find(projectId: string, optionName: string): Promise<ConfigTemplateItem> { |
|
|
|
return this.repository.find(projectId, optionName) |
|
|
|
} |
|
|
|
} |