修复
This commit is contained in:
parent
78901fee1e
commit
b4791a563c
@ -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(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user