2024-09-19 07:20:14 +08:00
|
|
|
"use strict";
|
2024-10-01 09:15:35 +08:00
|
|
|
const modules_mall_sheep_request_index = require("../../request/index.js");
|
2024-09-19 07:20:14 +08:00
|
|
|
const KeFuApi = {
|
|
|
|
sendKefuMessage: (data) => {
|
2024-10-01 09:15:35 +08:00
|
|
|
return modules_mall_sheep_request_index.request({
|
2024-09-19 07:20:14 +08:00
|
|
|
url: "/promotion/kefu-message/send",
|
|
|
|
method: "POST",
|
|
|
|
data,
|
|
|
|
custom: {
|
|
|
|
auth: true,
|
|
|
|
showLoading: true,
|
|
|
|
loadingMsg: "发送中",
|
|
|
|
showSuccess: true,
|
|
|
|
successMsg: "发送成功"
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
getKefuMessagePage: (params) => {
|
2024-10-01 09:15:35 +08:00
|
|
|
return modules_mall_sheep_request_index.request({
|
2024-09-19 07:20:14 +08:00
|
|
|
url: "/promotion/kefu-message/page",
|
|
|
|
method: "GET",
|
|
|
|
params,
|
|
|
|
custom: {
|
|
|
|
auth: true,
|
|
|
|
showLoading: false
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
exports.KeFuApi = KeFuApi;
|