|
@@ -8,7 +8,10 @@ export const noticeUserList = (params) => {
|
|
return axios({
|
|
return axios({
|
|
url: url,
|
|
url: url,
|
|
data: params,
|
|
data: params,
|
|
- method: 'post'
|
|
|
|
|
|
+ method: 'post',
|
|
|
|
+ headers: {
|
|
|
|
+ 'module': encodeURIComponent('列表查询')
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
// 公告 详情
|
|
// 公告 详情
|
|
@@ -16,7 +19,10 @@ export const noticeUserDetail = (params) => {
|
|
const url = `/notice/findById/${params.id}`
|
|
const url = `/notice/findById/${params.id}`
|
|
return axios({
|
|
return axios({
|
|
url: url,
|
|
url: url,
|
|
- method: 'get'
|
|
|
|
|
|
+ method: 'get',
|
|
|
|
+ headers: {
|
|
|
|
+ 'module': encodeURIComponent('公告详情')
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -24,29 +30,41 @@ export const noticeUserDetail = (params) => {
|
|
export const getUnreadCount = params => {
|
|
export const getUnreadCount = params => {
|
|
return axios({
|
|
return axios({
|
|
url: 'noticeUser/queryNotReadCount',
|
|
url: 'noticeUser/queryNotReadCount',
|
|
- method: 'post'
|
|
|
|
|
|
+ method: 'post',
|
|
|
|
+ headers: {
|
|
|
|
+ 'module': encodeURIComponent('未读消息数量统计')
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
// 设置已读消息
|
|
// 设置已读消息
|
|
export const hasRead = id => {
|
|
export const hasRead = id => {
|
|
return axios({
|
|
return axios({
|
|
url: `noticeUser/setRead/${id}`,
|
|
url: `noticeUser/setRead/${id}`,
|
|
- method: 'get'
|
|
|
|
|
|
+ method: 'get',
|
|
|
|
+ headers: {
|
|
|
|
+ 'module': encodeURIComponent('消息已读')
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
// 设置全部已读
|
|
// 设置全部已读
|
|
export const setReadAllNotice = params => {
|
|
export const setReadAllNotice = params => {
|
|
return axios({
|
|
return axios({
|
|
url: `noticeUser/setReadAllNotice`,
|
|
url: `noticeUser/setReadAllNotice`,
|
|
- method: 'get'
|
|
|
|
|
|
+ method: 'get',
|
|
|
|
+ headers: {
|
|
|
|
+ 'module': encodeURIComponent('全部已读')
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- // 消息公共权限设置列表
|
|
|
|
|
|
+// 消息公共权限设置列表
|
|
export const noticeUserBizQuery = (params) => {
|
|
export const noticeUserBizQuery = (params) => {
|
|
const url = `/noticeUserBiz/query`
|
|
const url = `/noticeUserBiz/query`
|
|
return axios({
|
|
return axios({
|
|
url: url,
|
|
url: url,
|
|
- method: 'get'
|
|
|
|
|
|
+ method: 'get',
|
|
|
|
+ headers: {
|
|
|
|
+ 'module': encodeURIComponent('列表查询')
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
// 消息公共权限保存
|
|
// 消息公共权限保存
|
|
@@ -55,6 +73,9 @@ export const noticeUserBizSave = (params) => {
|
|
return axios({
|
|
return axios({
|
|
url: url,
|
|
url: url,
|
|
data: params,
|
|
data: params,
|
|
- method: 'post'
|
|
|
|
|
|
+ method: 'post',
|
|
|
|
+ headers: {
|
|
|
|
+ 'module': encodeURIComponent('保存')
|
|
|
|
+ }
|
|
})
|
|
})
|
|
-}
|
|
|
|
|
|
+}
|