2024-04-08 17:32:50 +03:00
|
|
|
from typing import Protocol
|
|
|
|
|
|
|
|
from api.domain.company.model import Company
|
|
|
|
from api.domain.user.model import User
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
async def create_company(self, company: Company) -> None:
|
|
|
|
raise NotImplementedError
|
|
|
|
|
2024-04-08 23:55:30 +03:00
|
|
|
async def get_workes_list(self) -> list[User]:
|
2024-04-08 17:32:50 +03:00
|
|
|
raise NotImplementedError
|