message.js 524 B

123456789101112131415161718192021222324252627282930
  1. import {httpGet,httpPost} from "@/utils/request.js"
  2. /**
  3. * 消息列表
  4. * @param type 0 1 2
  5. */
  6. export const apiMessageList = params =>{
  7. return httpGet('/message/list',params)
  8. }
  9. /**
  10. * 一键已读
  11. */
  12. export const apiReadAll = params => {
  13. return httpPost('/message/batch/read',params)
  14. }
  15. /**
  16. * 单条已读 msg_id
  17. */
  18. export const apiReadOneMessage = params => {
  19. return httpPost('/message/read',params)
  20. }
  21. /**
  22. * 删除 msg_id
  23. */
  24. export const apiDelMessage = params => {
  25. return httpPost('/message/delete',params)
  26. }