mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-02 16:57:09 +08:00
feat: 新增 WebSocket 消息通知 (#20)
This commit is contained in:
@@ -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`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user