feat: 新增 WebSocket 消息通知 (#20)

This commit is contained in:
Claudio Lecher
2024-05-22 13:36:19 +08:00
committed by GitHub
parent 7e329fcffa
commit adc6f643b3
11 changed files with 13470 additions and 4153 deletions

View File

@@ -27,3 +27,9 @@ export function updateNotice(data: any, id: string) {
export function deleteNotice(ids: string | Array<number>) {
return http.del(`${BASE_URL}/${ids}`)
}
export function getNoticeList(type: string | Array<number>) {
return http.get(`/system/message?page=1&size=10&sort=createTime,desc&isRead=false&type=${type}`)
}
export function endAllMessage() {
return http.patch(`/system/message/read`)
}