import { RoleDTO } from './roleData' import { RoleRepository } from '~/domain/models/role/roleRepository' export class RoleApplicationService { constructor( private readonly repository: RoleRepository ) {} public async list(): Promise { const items = await this.repository.list() return items.map(item => new RoleDTO(item)) } }