mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-13 12:59:24 +08:00
refactor: 优化消息通知
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
@@ -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`)
|
||||
}
|
||||
|
@@ -316,8 +316,8 @@ export interface MessageResp {
|
||||
content: string
|
||||
type: number
|
||||
isRead: boolean
|
||||
readTime: string
|
||||
createUserString: string
|
||||
readTime?: string
|
||||
createUserString?: string
|
||||
createTime: string
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user