|
|
@@ -952,7 +952,19 @@ async def vas_product_update(
|
|
|
product = await ProductService.update(db, id, payload)
|
|
|
return success(data=product)
|
|
|
|
|
|
-@public_router.get("/vas/product/list", summary="获取商品列表", tags=["Visafly签证系统"], response_model=ApiResponse[PageResponse[VasProductOut]])
|
|
|
+@public_router.get("/vas/product/list-enable", summary="获取商品列表", tags=["Visafly签证系统"], response_model=ApiResponse[PageResponse[VasProductOut]])
|
|
|
+async def vas_product_list(
|
|
|
+ country: str = Query("", description="目的国家"),
|
|
|
+ visa_type: str = Query("", description="签证类型"),
|
|
|
+ page: int = Query(0, description="第几页"),
|
|
|
+ size: int = Query(10, description="分页大小"),
|
|
|
+ keyword: str = Query("", description="查询条件"),
|
|
|
+ db: AsyncSession = Depends(get_db)
|
|
|
+):
|
|
|
+ products = await ProductService.list_enable_product(db, country, visa_type, page, size, keyword)
|
|
|
+ return success(data=products)
|
|
|
+
|
|
|
+@admin_required_router.get("/vas/product/list", summary="获取商品列表", tags=["Visafly签证系统"], response_model=ApiResponse[PageResponse[VasProductOut]])
|
|
|
async def vas_product_list(
|
|
|
country: str = Query("", description="目的国家"),
|
|
|
visa_type: str = Query("", description="签证类型"),
|