add admin control center ui and bot commands
This commit is contained in:
@@ -126,6 +126,15 @@ class ApiClient:
|
||||
async def pending_service_centers(self, telegram_id: int) -> list[dict[str, Any]]:
|
||||
return await self.request("GET", "/api/admin/service-centers/pending", telegram_id=telegram_id)
|
||||
|
||||
async def admin_dashboard(self, telegram_id: int) -> dict[str, Any]:
|
||||
return await self.request("GET", "/api/admin/dashboard", telegram_id=telegram_id)
|
||||
|
||||
async def admin_users(self, telegram_id: int) -> dict[str, Any]:
|
||||
return await self.request("GET", "/api/admin/users", telegram_id=telegram_id, params={"limit": 10})
|
||||
|
||||
async def admin_alerts(self, telegram_id: int) -> dict[str, Any]:
|
||||
return await self.request("GET", "/api/admin/notifications", telegram_id=telegram_id, params={"limit": 10})
|
||||
|
||||
async def moderate_service_center(
|
||||
self,
|
||||
telegram_id: int,
|
||||
|
||||
Reference in New Issue
Block a user