| | |
| | | } |
| | | |
| | | // 查询未读消息数量 |
| | | export function getUnreadCount() { |
| | | export function getUnreadCount(consigneeId) { |
| | | return request({ |
| | | url: "/system/notice/getCount", |
| | | method: "get", |
| | | params: { consigneeId }, |
| | | }); |
| | | } |
| | | |
| | | // 标记消息为已读 |
| | | export function markAsRead(noticeId) { |
| | | export function markAsRead(noticeId, status) { |
| | | return request({ |
| | | url: "/system/notice/markAsRead", |
| | | method: "post", |
| | | data: { noticeId }, |
| | | url: "/system/notice", |
| | | method: "put", |
| | | data: { noticeId, status }, |
| | | }); |
| | | } |
| | | |
| | |
| | | // 确认消息 |
| | | export function confirmMessage(noticeId, status) { |
| | | return request({ |
| | | url: "/system/notice/confirm", |
| | | method: "post", |
| | | url: "/system/notice", |
| | | method: "put", |
| | | data: { noticeId, status }, |
| | | }); |
| | | } |