feat: implement hybrid address system and premium search logic
- 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
This commit is contained in:
12
backend/app/schemas/service_hunt.py
Normal file
12
backend/app/schemas/service_hunt.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user