from typing import List, Optional, Dict, Any

from app.{{ name }}.application.services.{{ name }}_service import {{ pascal_case }}Service
from app.{{ name }}.domain.entities.{{ name }} import {{ pascal_case }}

class Get{{ name_plural_capitalized }}:
    def __init__(self, service: {{ pascal_case }}Service):
        self.service = service

    def execute(self,
                trashed: int,
                paginate: int,
                page: int,
                rows: int,
                filters: Optional[Dict[str, Any]] = None
        ) -> List[{{ pascal_case }}]:
        return self.service.list(trashed, paginate, page, rows, filters)