feat: implement backend API clients for multi-marketplace integration and frontend service layer

This commit is contained in:
2026-05-12 13:16:14 +03:00
parent 6974af486a
commit ee39a3d83b
65 changed files with 2501 additions and 33 deletions

View File

@@ -0,0 +1,15 @@
from typing import Dict, Any, Optional
from ..client import AvitoClient
class ItemsService:
"""Service to handle Avito Items (Listings)."""
def __init__(self, client: AvitoClient):
self.client = client
def get_info(self, item_id: str) -> Dict[str, Any]:
"""
Get info about a specific item.
Endpoint: /core/v1/items/{item_id}
"""
return self.client.get(f"/core/v1/items/{item_id}")