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.

16 lines
511 B

  1. import { TemplateRepository } from '~/domain/models/autoLabeling/templateRepository'
  2. import { ConfigTemplateItem } from '~/domain/models/autoLabeling/template'
  3. export class TemplateApplicationService {
  4. constructor(
  5. private readonly repository: TemplateRepository
  6. ) {}
  7. public list(id: string): Promise<string[]> {
  8. return this.repository.list(id)
  9. }
  10. public find(projectId: string, optionName: string): Promise<ConfigTemplateItem> {
  11. return this.repository.find(projectId, optionName)
  12. }
  13. }