feat:0820需求
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request.js';
|
||||
|
||||
/**
|
||||
* 查询领券中心列表
|
||||
* @param {Object} data { page, pageSize }
|
||||
*/
|
||||
export function getReceiveCenterList(data) {
|
||||
return request({
|
||||
url: "/coupon/getReceiveCenterList",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 领取优惠券
|
||||
* @param {Object} data { templateId }
|
||||
*/
|
||||
export function receiveCoupon(data) {
|
||||
return request({
|
||||
url: "/coupon/receive",
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询我的优惠券列表 (分页)
|
||||
* @param {Object} data { status, page, pageSize }
|
||||
* status: 1-待使用,2-已使用,3-已过期,4-已失效;不传为全部
|
||||
*/
|
||||
export function getMyCouponPage(data) {
|
||||
return request({
|
||||
url: "/coupon/getMyCouponPage",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商品详情优惠券列表
|
||||
* @param {Object} data { goodsId }
|
||||
*/
|
||||
export function getGoodsCouponList(data) {
|
||||
return request({
|
||||
url: "/coupon/getGoodsCouponList",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询优惠券适用商品列表 (分页)
|
||||
* @param {Object} data { templateId, sort, page, pageSize }
|
||||
*/
|
||||
export function getApplicableGoods(data) {
|
||||
return request({
|
||||
url: "/coupon/getApplicableGoods",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user