diff --git a/app/api/v1/api.py b/app/api/v1/api.py index 26f1a25..2f86a7b 100644 --- a/app/api/v1/api.py +++ b/app/api/v1/api.py @@ -4,6 +4,7 @@ from app.api.v1.users import router as users_router from app.api.v1.auth import router as auth_router from app.api.v1.person_images import router as person_images_router from app.api.v1.clothing import router as clothing_router +from app.api.v1.tryon import router as tryon_router api_router = APIRouter() api_router.include_router(endpoints_router, prefix="") @@ -11,3 +12,4 @@ api_router.include_router(users_router, prefix="/users") api_router.include_router(auth_router, prefix="/auth") api_router.include_router(person_images_router, prefix="/person-images") api_router.include_router(clothing_router, prefix="/clothing") +api_router.include_router(tryon_router, prefix="/tryon") \ No newline at end of file diff --git a/app/api/v1/tryon.py b/app/api/v1/tryon.py index 76dec01..f79ff70 100644 --- a/app/api/v1/tryon.py +++ b/app/api/v1/tryon.py @@ -24,6 +24,10 @@ async def tryon( db: AsyncSession = Depends(deps.get_db), current_user: User = Depends(get_current_user) ): + """ + 试穿请求 + """ + # 获取当前用户的默认形象 person_image = await person_image_service.get_default_image(db, current_user.id) if not person_image: