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:
Binary file not shown.
@@ -29,7 +29,6 @@ class UserKYCComplete(BaseModel):
|
||||
birth_place: str
|
||||
birth_date: date
|
||||
mothers_name: str
|
||||
# Rugalmas okmánytár, pl: {"id_card": {"number": "123", "expiry_date": "2030-01-01"}}
|
||||
identity_docs: Dict[str, DocumentDetail]
|
||||
ice_contact: ICEContact
|
||||
|
||||
@@ -37,7 +36,14 @@ class UserKYCComplete(BaseModel):
|
||||
class PasswordResetRequest(BaseModel):
|
||||
email: EmailStr
|
||||
|
||||
# EZ HIÁNYZOTT KORÁBBAN:
|
||||
class PasswordResetConfirm(BaseModel):
|
||||
email: EmailStr
|
||||
token: str
|
||||
password: str = Field(..., min_length=8)
|
||||
password_confirm: str = Field(..., min_length=8)
|
||||
|
||||
class Token(BaseModel):
|
||||
access_token: str
|
||||
token_type: str
|
||||
is_active: bool # KYC státusz visszajelzés
|
||||
is_active: bool
|
||||
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