2024-01-05 01:21:52 +00:00
|
|
|
import request from "@/sheep/request";
|
2023-12-13 03:35:02 +00:00
|
|
|
|
|
|
|
// 拼团 API
|
|
|
|
const CombinationApi = {
|
|
|
|
// 获得拼团活动列表
|
|
|
|
getCombinationActivityList: (count) => {
|
2024-01-05 01:21:52 +00:00
|
|
|
return request({
|
2024-01-10 14:57:06 +00:00
|
|
|
url: "/app-api/promotion/combination-activity/list",
|
2023-12-13 03:35:02 +00:00
|
|
|
method: 'GET',
|
|
|
|
params: {count}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
// 获得拼团活动分页
|
|
|
|
getCombinationActivityPage: (params) => {
|
2024-01-05 01:21:52 +00:00
|
|
|
return request({
|
2024-01-10 14:57:06 +00:00
|
|
|
url: "/app-api/promotion/combination-activity/page",
|
2023-12-13 03:35:02 +00:00
|
|
|
method: 'GET',
|
|
|
|
params
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
// 获得拼团活动明细
|
|
|
|
getCombinationActivity: (id) => {
|
2024-01-05 01:21:52 +00:00
|
|
|
return request({
|
2024-01-10 14:57:06 +00:00
|
|
|
url: "/app-api/promotion/combination-activity/get-detail",
|
2023-12-13 03:35:02 +00:00
|
|
|
method: 'GET',
|
|
|
|
params: {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
// 获得最近 n 条拼团记录(团长发起的)
|
|
|
|
getHeadCombinationRecordList: (activityId, status, count) => {
|
2024-01-05 01:21:52 +00:00
|
|
|
return request({
|
2024-01-10 14:57:06 +00:00
|
|
|
url: "/app-api/promotion/combination-record/get-head-list",
|
2023-12-13 03:35:02 +00:00
|
|
|
method: 'GET',
|
|
|
|
params: {
|
|
|
|
activityId,
|
|
|
|
status,
|
|
|
|
count
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
// 获得拼团记录明细
|
|
|
|
getCombinationRecordDetail: (id) => {
|
2024-01-05 01:21:52 +00:00
|
|
|
return request({
|
2024-01-10 14:57:06 +00:00
|
|
|
url: "/app-api/promotion/combination-record/get-detail",
|
2023-12-13 03:35:02 +00:00
|
|
|
method: 'GET',
|
|
|
|
params: {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
// 获得拼团记录的概要信息
|
|
|
|
getCombinationRecordSummary: () => {
|
2024-01-05 01:21:52 +00:00
|
|
|
return request({
|
2024-01-10 14:57:06 +00:00
|
|
|
url: "/app-api/promotion/combination-record/get-summary",
|
2023-12-13 03:35:02 +00:00
|
|
|
method: 'GET',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default CombinationApi
|