yyb
9 天以前 d176ab8e28af8f9e477a9be2a3de5f399f68a47e
src/api/login.js
@@ -76,4 +76,30 @@
    method: 'get',
    params: { consigneeId }
  })
}
}
// 标记消息为已读
export function markAsRead(noticeId, status) {
  return request({
    url: "/system/notice",
    method: "put",
    data: { noticeId, status },
  });
}
// 一键标记所有消息为已读
export function markAllAsRead() {
  return request({
    url: "/system/notice/readAll",
    method: "post",
  });
}
// 确认消息
export function confirmMessage(noticeId, status) {
  return request({
    url: "/system/notice",
    method: "put",
    data: { noticeId, status },
  });
}