noticeUser.js 767 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { axios } from '@/utils/request'
  2. // 公告 列表 有分页
  3. export const noticeUserList = (params) => {
  4. const url = `/noticeUser/queryLike/${params.pageNo}/${params.pageSize}`
  5. delete params.pageNo
  6. delete params.pageSize
  7. return axios({
  8. url: url,
  9. data: params,
  10. method: 'post'
  11. })
  12. }
  13. // 公告 详情
  14. export const noticeUserDetail = (params) => {
  15. const url = `/notice/findById/${params.id}`
  16. return axios({
  17. url: url,
  18. method: 'get'
  19. })
  20. }
  21. // 获取通知消息未读数
  22. export const getUnreadCount = params => {
  23. return axios({
  24. url: 'noticeUser/queryNotReadCount',
  25. method: 'post'
  26. })
  27. }
  28. // 设置已读消息
  29. export const hasRead = id => {
  30. return axios({
  31. url: `noticeUser/setRead/${id}`,
  32. method: 'get'
  33. })
  34. }