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>
23 lines
812 B
Python
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)
|