message.js 956 B

123456789101112131415161718192021222324
  1. import {
  2. request
  3. } from "../utils/request";
  4. module.exports = {
  5. // 获取消息页面状态
  6. getAuthorityMsg: data => request('/v3/message', 'get', data),
  7. // 获取消息通知列表
  8. getMessageList: (data, method = 'get') => request('/message', method, data),
  9. // 获取消息记录
  10. getMessageRecord: data => request('/v3/messageRecord', 'get', data),
  11. // 获取点赞列表
  12. getBeLikeList: data => request('/v3/message/likeInfo', 'get', data),
  13. // 获取最新评论列表
  14. getNewComment: data => request('/v3/message/postsInfo', 'get', data),
  15. // 消息置顶
  16. msgTopping: data => request('/v3/messageRecord/top', 'post', data),
  17. // 获取消息详情
  18. getMsgDet: data => request('/v3/messageRecord/single', 'get', data),
  19. // 获取最新消息详情(聊天界面轮询
  20. getNewMsgDet: data => request('/v3/messageRecord/newMessage', 'get', data),
  21. // 发送消息
  22. sendMsg: data => request('/v3/messageRecord', 'post', data),
  23. }