websocket 重新封装

(cherry picked from commit 1744c6ec6f)
This commit is contained in:
YunaiV
2023-11-24 00:33:05 +08:00
committed by shizhong
parent 79319d3dc8
commit aee411607f
5 changed files with 127 additions and 43 deletions

View File

@ -40,3 +40,8 @@ export const updateNoticeApi = (data: NoticeVO) => {
export const deleteNoticeApi = (id: number) => {
return request.delete({ url: '/system/notice/delete?id=' + id })
}
// 推送公告
export const pushNotice = (id: number) => {
return request.post({ url: '/system/notice/push?id=' + id })
}