Browse Source

Add template service

pull/1206/head
Hironsan 3 years ago
parent
commit
fca5eefb63
1 changed files with 16 additions and 0 deletions
  1. 16
      frontend/services/application/template.service.ts

16
frontend/services/application/template.service.ts

@ -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)
}
}
Loading…
Cancel
Save