refactor: 消息通知点开后才查询消息列表

This commit is contained in:
2024-05-23 22:19:43 +08:00
parent 5c6d3119eb
commit c104ba5445
4 changed files with 53 additions and 44 deletions

View File

@@ -17,3 +17,8 @@ export function deleteMessage(ids: string | Array<string>) {
export function readMessage(ids?: string | Array<string>) {
return http.patch(`${BASE_URL}/read`, ids)
}
/** @desc 查询未读消息数量 */
export function getUnreadMessageCount() {
return http.get(`${BASE_URL}/unread`)
}