31 lines
730 B
JavaScript
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;
|