TorbatYar/backend/services/beauty_business/app/queries/appointments.py
Mortezakoohjani d579d0b142 feat(loyalty): add Loyalty Platform Frontend module
Add frontend/modules/loyalty with types, API client, design system, feature pages and thin App Router routes under app/loyalty/. BFF proxy at app/api/loyalty/. Include loyalty frontend docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 10:50:55 +03:30

23 lines
812 B
Python

"""Appointment queries — Phase 14.1."""
from __future__ import annotations
from uuid import UUID
from sqlalchemy.ext.asyncio import AsyncSession
from app.services.appointment_core import AppointmentCoreService
class AppointmentQueries:
def __init__(self, session: AsyncSession) -> None:
self.service = AppointmentCoreService(session)
async def get(self, tenant_id: UUID, appointment_id: UUID):
return await self.service.get(tenant_id, appointment_id)
async def list(self, tenant_id: UUID, *, offset: int = 0, limit: int = 20):
return await self.service.list(tenant_id, offset=offset, limit=limit)
async def list_history(self, tenant_id: UUID, appointment_id: UUID):
return await self.service.list_history(tenant_id, appointment_id)