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

31 lines
730 B
JavaScript

"use strict";
const modules_mall_sheep_request_index = require("../../request/index.js");
const KeFuApi = {
sendKefuMessage: (data) => {
return modules_mall_sheep_request_index.request({
url: "/promotion/kefu-message/send",
method: "POST",
data,
custom: {
auth: true,
showLoading: true,
loadingMsg: "发送中",
showSuccess: true,
successMsg: "发送成功"
}
});
},
getKefuMessagePage: (params) => {
return modules_mall_sheep_request_index.request({
url: "/promotion/kefu-message/page",
method: "GET",
params,
custom: {
auth: true,
showLoading: false
}
});
}
};
exports.KeFuApi = KeFuApi;