refactor: 优化消息通知

This commit is contained in:
2024-05-23 00:05:01 +08:00
parent 1ebfd115eb
commit 56b1fdd755
11 changed files with 5799 additions and 4601 deletions

View File

@@ -14,6 +14,6 @@ export function deleteMessage(ids: string | Array<string>) {
}
/** @desc 标记已读 */
export function readMessage(ids: string | Array<string>) {
export function readMessage(ids?: string | Array<string>) {
return http.patch(`${BASE_URL}/read`, ids)
}

View File

@@ -27,9 +27,3 @@ 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`)
}

View File

@@ -316,8 +316,8 @@ export interface MessageResp {
content: string
type: number
isRead: boolean
readTime: string
createUserString: string
readTime?: string
createUserString?: string
createTime: string
}