2024-06-12 09:05:14 +00:00
|
|
|
import request from '@/sheep/request';
|
|
|
|
|
|
|
|
const KeFuApi = {
|
2024-06-24 08:07:04 +00:00
|
|
|
sendKefuMessage: (data) => {
|
2024-06-12 09:05:14 +00:00
|
|
|
return request({
|
|
|
|
url: '/promotion/kefu-message/send',
|
|
|
|
method: 'POST',
|
|
|
|
data,
|
|
|
|
custom: {
|
|
|
|
auth: true,
|
|
|
|
showLoading: true,
|
|
|
|
loadingMsg: '发送中',
|
|
|
|
showSuccess: true,
|
|
|
|
successMsg: '发送成功',
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
2024-06-24 08:07:04 +00:00
|
|
|
getKefuMessagePage: (params) => {
|
2024-06-12 09:05:14 +00:00
|
|
|
return request({
|
2024-06-17 09:33:30 +00:00
|
|
|
url: '/promotion/kefu-message/page',
|
2024-06-12 09:05:14 +00:00
|
|
|
method: 'GET',
|
2024-06-17 09:33:30 +00:00
|
|
|
params,
|
2024-06-12 09:05:14 +00:00
|
|
|
custom: {
|
|
|
|
auth: true,
|
|
|
|
showLoading: false,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default KeFuApi;
|