add models
This commit is contained in:
parent
bc5c258170
commit
f7fb891648
2 changed files with 52 additions and 8 deletions
|
|
@ -6,6 +6,7 @@ import enum
|
|||
from typing import Any
|
||||
import aiohttp
|
||||
from data_access import Listing
|
||||
from models.listing import FurnishType
|
||||
|
||||
|
||||
class ListingType(enum.StrEnum):
|
||||
|
|
@ -13,12 +14,6 @@ class ListingType(enum.StrEnum):
|
|||
RENT = "RENT"
|
||||
|
||||
|
||||
class FurnishType(enum.StrEnum):
|
||||
FURNISHED = "furnished"
|
||||
UNFURNISHED = "unfurnished"
|
||||
PART_FURNISHED = "partFurnished"
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class QueryParameters:
|
||||
listing_type: ListingType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue