添加优惠券发放的功能 & 切换后台线上和线下首页区别
This commit is contained in:
@@ -39,9 +39,20 @@ export async function deleteCoupon(id: number) {
|
||||
})
|
||||
}
|
||||
|
||||
export async function issueCoupon(data: {
|
||||
export async function getReleaseCoupon(data: {
|
||||
coupon_id: number
|
||||
user_id: number
|
||||
}) {
|
||||
return callByUser<Coupon>("/api/admin/coupon/update/assign", data)
|
||||
}
|
||||
|
||||
export async function getUserCoupon(data: {
|
||||
page: number
|
||||
size: number
|
||||
user_id: number
|
||||
}) {
|
||||
return callByUser<PageRecord<Coupon>>(
|
||||
"/api/admin/coupon-user/page/of-user",
|
||||
data,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user