123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import { axios } from '@/utils/request'
- // 公告 列表 有分页
- export const noticeUserList = (params) => {
- const url = `/noticeUser/queryLike/${params.pageNo}/${params.pageSize}`
- delete params.pageNo
- delete params.pageSize
- return axios({
- url: url,
- data: params,
- method: 'post',
- headers:{
- 'module': encodeURIComponent('列表查询')
- }
- })
- }
- // 公告 详情
- export const noticeUserDetail = (params) => {
- const url = `/notice/findById/${params.id}`
- return axios({
- url: url,
- method: 'get',
- headers:{
- 'module': encodeURIComponent('公告详情')
- }
- })
- }
- // 获取通知消息未读数
- export const getUnreadCount = params => {
- return axios({
- url: 'noticeUser/queryNotReadCount',
- method: 'post',
- headers:{
- 'module': encodeURIComponent('获取消息未读数')
- }
- })
- }
- // 设置已读消息
- export const hasRead = id => {
- return axios({
- url: `noticeUser/setRead/${id}`,
- method: 'get',
- headers:{
- 'module': encodeURIComponent('设置已读')
- }
- })
- }
|