2023-06-19 12:36:58 +00:00
|
|
|
import request from "@/utils/request.js";
|
|
|
|
|
|
|
|
// 获得砍价活动列表
|
|
|
|
export function getBargainActivityList(count) {
|
|
|
|
return request.get("app-api/promotion/bargain-activity/list", {
|
|
|
|
count
|
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-20 13:18:32 +00:00
|
|
|
// 获得砍价活动详情
|
|
|
|
export function getBargainActivityDetail(id) {
|
|
|
|
return request.get("app-api/promotion/bargain-activity/get-detail", {
|
|
|
|
id
|
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-19 15:35:19 +00:00
|
|
|
// 获得砍价活动分页
|
|
|
|
export function getBargainActivityPage(count) {
|
|
|
|
return request.get("app-api/promotion/bargain-activity/page", {
|
|
|
|
count
|
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-19 12:36:58 +00:00
|
|
|
// 获得砍价记录的概要信息
|
|
|
|
export function getBargainRecordSummary() {
|
|
|
|
return request.get("app-api/promotion/bargain-record/get-summary", {}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
2023-06-20 16:30:15 +00:00
|
|
|
|
2023-06-21 16:20:47 +00:00
|
|
|
// 获得砍价记录的分页
|
|
|
|
export function getBargainRecordPage(data) {
|
|
|
|
return request.get("app-api/promotion/bargain-record/page", data, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-20 16:30:15 +00:00
|
|
|
// 获得砍价活动详情
|
|
|
|
export function getBargainRecordDetail(id, activityId) {
|
|
|
|
return request.get("app-api/promotion/bargain-record/get-detail", {
|
2023-10-06 02:18:05 +00:00
|
|
|
id: id > 0 ? id : undefined,
|
|
|
|
activityId: activityId > 0 ? activityId : undefined
|
2023-06-20 16:30:15 +00:00
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
2023-06-21 15:45:45 +00:00
|
|
|
|
|
|
|
// 创建砍价记录(参与拼团活动)
|
|
|
|
export function createBargainRecord(activityId) {
|
|
|
|
return request.post("app-api/promotion/bargain-record/create", {
|
|
|
|
activityId
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 创建砍价助力(给拼团记录砍一刀)
|
|
|
|
export function createBargainHelp(recordId) {
|
|
|
|
return request.post("app-api/promotion/bargain-help/create", {
|
|
|
|
recordId: recordId
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得砍价助力列表
|
|
|
|
export function getBargainHelpList(recordId) {
|
|
|
|
return request.get("app-api/promotion/bargain-help/list", {
|
|
|
|
recordId: recordId
|
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|