- Added centralized, self-learning GeoService (ZIP, City, Street) - Implemented Hybrid Address Management (Centralized table + Denormalized fields) - Fixed Gamification logic (PointsLedger field names & filtering) - Added address autocomplete and two-tier (Free/Premium) search API - Synchronized UserStats and PointsLedger schemas
12 lines
433 B
Python
12 lines
433 B
Python
from pydantic import BaseModel, Field
|
|
from typing import Optional, Dict
|
|
|
|
class ServiceHuntRequest(BaseModel):
|
|
name: str = Field(..., example="Kovács Autóvillamosság")
|
|
category_id: int
|
|
address: str
|
|
latitude: float # A szerviz koordinátája
|
|
longitude: float
|
|
user_latitude: float # A felhasználó aktuális helyzete (GPS-ből)
|
|
user_longitude: float
|
|
name_translations: Optional[Dict[str, str]] = None |