service_man/api/domain/company/repository.py

15 lines
422 B
Python

from typing import Protocol
from api.domain.company.model import Company
class CompanyRepository(Protocol):
async def get_companies_by_owner_email(self, filter: dict) -> list[Company]:
raise NotImplementedError
# async def create_company(self, company: Company) -> None:
# raise NotImplementedError
#
# async def get_workes_list(self) -> list[User]:
# raise NotImplementedError