2023-06-10 01:57:20 +00:00
|
|
|
import request from "@/utils/request.js";
|
|
|
|
|
|
|
|
export function takeCoupon(templateId) {
|
|
|
|
return request.post("app-api/promotion/coupon/take", {
|
|
|
|
templateId
|
|
|
|
});
|
|
|
|
}
|
2023-06-25 09:43:59 +00:00
|
|
|
|
|
|
|
export function getCouponTemplateList(spuId, useType) {
|
|
|
|
return request.get("app-api/promotion/coupon-template/list", {
|
|
|
|
spuId,
|
|
|
|
useType
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getCouponTemplatePage(data) {
|
|
|
|
return request.get("app-api/promotion/coupon-template/page", data);
|
|
|
|
}
|