31 lines
594 B
JavaScript
31 lines
594 B
JavaScript
|
import request from '@/sheep/request';
|
||
|
|
||
|
const KeFuApi = {
|
||
|
sendMessage: (data) => {
|
||
|
return request({
|
||
|
url: '/promotion/kefu-message/send',
|
||
|
method: 'POST',
|
||
|
data,
|
||
|
custom: {
|
||
|
auth: true,
|
||
|
showLoading: true,
|
||
|
loadingMsg: '发送中',
|
||
|
showSuccess: true,
|
||
|
successMsg: '发送成功',
|
||
|
},
|
||
|
});
|
||
|
},
|
||
|
getConversation: () => {
|
||
|
return request({
|
||
|
url: '/promotion/kefu-conversation/get',
|
||
|
method: 'GET',
|
||
|
custom: {
|
||
|
auth: true,
|
||
|
showLoading: false,
|
||
|
},
|
||
|
});
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export default KeFuApi;
|