service_man/api/domain/company/repository.py

15 lines
422 B
Python
Raw Permalink Normal View History

2024-04-08 17:32:50 +03:00
from typing import Protocol
from api.domain.company.model import Company
class CompanyRepository(Protocol):
2024-04-08 23:55:30 +03:00
async def get_companies_by_owner_email(self, filter: dict) -> list[Company]:
2024-04-08 17:32:50 +03:00
raise NotImplementedError
2024-04-10 00:33:31 +03:00
# async def create_company(self, company: Company) -> None:
# raise NotImplementedError
#
# async def get_workes_list(self) -> list[User]:
# raise NotImplementedError