15 lines
365 B
Python

from abc import ABC
from models import Company
class CompanyServiceInterface(ABC):
def get_all(self) -> list[Company.Company]:
raise NotImplementedError()
def get_by_id(self, id: Company.CompayID) -> Company.Company | None:
raise NotImplementedError()
def insert(self, company: Company.Company):
raise NotImplementedError()