From b4791a563c147994d80ceaa5efd7051a282c08ec Mon Sep 17 00:00:00 2001 From: aaron <> Date: Wed, 8 Jan 2025 16:52:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/endpoints/coupon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/endpoints/coupon.py b/app/api/endpoints/coupon.py index d72e93d..7eeb52c 100644 --- a/app/api/endpoints/coupon.py +++ b/app/api/endpoints/coupon.py @@ -136,7 +136,8 @@ async def get_user_coupons( async def get_all_coupons( skip: int = 0, limit: int = 10, - db: Session = Depends(get_db) + db: Session = Depends(get_db), + admin: UserDB = Depends(get_admin_user) ): """获取所有优惠券列表(管理员)""" coupons = db.query(CouponDB).order_by(