acdr-ui/dist/dev/mp-weixin/modules/mall/sheep/api/promotion/combination.js
2024-10-01 09:15:35 +08:00

69 lines
1.9 KiB
JavaScript

"use strict";
const modules_mall_sheep_request_index = require("../../request/index.js");
const CombinationApi = {
// 获得拼团活动列表
getCombinationActivityList: (count) => {
return modules_mall_sheep_request_index.request({
url: "/promotion/combination-activity/list",
method: "GET",
params: { count }
});
},
// 获得拼团活动分页
getCombinationActivityPage: (params) => {
return modules_mall_sheep_request_index.request({
url: "/promotion/combination-activity/page",
method: "GET",
params
});
},
// 获得拼团活动明细
getCombinationActivity: (id) => {
return modules_mall_sheep_request_index.request({
url: "/promotion/combination-activity/get-detail",
method: "GET",
params: {
id
}
});
},
// 获得最近 n 条拼团记录(团长发起的)
getHeadCombinationRecordList: (activityId, status, count) => {
return modules_mall_sheep_request_index.request({
url: "/promotion/combination-record/get-head-list",
method: "GET",
params: {
activityId,
status,
count
}
});
},
// 获得我的拼团记录分页
getCombinationRecordPage: (params) => {
return modules_mall_sheep_request_index.request({
url: "/promotion/combination-record/page",
method: "GET",
params
});
},
// 获得拼团记录明细
getCombinationRecordDetail: (id) => {
return modules_mall_sheep_request_index.request({
url: "/promotion/combination-record/get-detail",
method: "GET",
params: {
id
}
});
},
// 获得拼团记录的概要信息
getCombinationRecordSummary: () => {
return modules_mall_sheep_request_index.request({
url: "/promotion/combination-record/get-summary",
method: "GET"
});
}
};
exports.CombinationApi = CombinationApi;