first commit
This commit is contained in:
13
app/sources/base.py
Normal file
13
app/sources/base.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
from app.models import Offer
|
||||
|
||||
|
||||
class OfferSource(ABC):
|
||||
source_name: str
|
||||
|
||||
@abstractmethod
|
||||
def fetch_offers(self) -> list[Offer]:
|
||||
raise NotImplementedError
|
||||
Reference in New Issue
Block a user