mall-uniapp/sheep/api/promotion/combination.js

69 lines
1.3 KiB
JavaScript
Raw Normal View History

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