feat: batch update - gift card breakdown spec, backend APIs, miniprogram pages, ETL finance recharge, docs & migrations

This commit is contained in:
Neo
2026-03-20 01:43:48 +08:00
parent 075caf067f
commit 79f9a0e1da
437 changed files with 118603 additions and 976 deletions

View File

@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
"""
小程序助教路由 —— 助教详情COACH-1
端点清单:
- GET /api/xcx/coaches/{coach_id} — 助教详情COACH-1
所有端点均需 JWTapproved 状态)。
"""
from __future__ import annotations
from fastapi import APIRouter, Depends
from app.auth.dependencies import CurrentUser
from app.middleware.permission import require_approved
from app.schemas.xcx_coaches import CoachDetailResponse
from app.services import coach_service
router = APIRouter(prefix="/api/xcx/coaches", tags=["小程序助教"])
@router.get("/{coach_id}", response_model=CoachDetailResponse)
async def get_coach_detail(
coach_id: int,
user: CurrentUser = Depends(require_approved()),
):
"""助教详情COACH-1"""
return await coach_service.get_coach_detail(
coach_id, user.site_id
)