This commit is contained in:
aaron 2025-01-08 16:52:37 +08:00
parent 78901fee1e
commit b4791a563c

View File

@ -136,7 +136,8 @@ async def get_user_coupons(
async def get_all_coupons( async def get_all_coupons(
skip: int = 0, skip: int = 0,
limit: int = 10, 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( coupons = db.query(CouponDB).order_by(