add models

This commit is contained in:
Viktor Barzin 2025-06-04 21:09:29 +00:00
parent bc5c258170
commit f7fb891648
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
2 changed files with 52 additions and 8 deletions

View file

@ -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