conversation.js 1022 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import request from '../utils/request'
  2. //查询会话记录列表
  3. export function getList(data) {
  4. return request({
  5. url: `/core/conversation/list`,
  6. method: 'post',
  7. data
  8. })
  9. }
  10. //发送
  11. export function sendMsg(data) {
  12. return request({
  13. url: `/core/conversation/sendMsg`,
  14. method: 'post',
  15. data
  16. })
  17. }
  18. //订单页面 点击沟通 获取会话记录详细信息
  19. export function getOrderConversationInfo(data) {
  20. return request({
  21. url: `/core/conversation/getOrderConversationInfo`,
  22. method: 'post',
  23. data
  24. })
  25. }
  26. //消息列表页面 点击会话 获取会话记录详细信息
  27. export function getListConversationInfo(params) {
  28. return request({
  29. url: `/core/conversation/getListConversationInfo`,
  30. method: 'get',
  31. params
  32. })
  33. }
  34. //打开会话框时,设置已读
  35. export function setRead(data) {
  36. return request({
  37. url: `/core/conversation/setRead`,
  38. method: 'post',
  39. data
  40. })
  41. }