mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2026-01-16 00:57:09 +08:00
feat: 新增消息中心
This commit is contained in:
19
src/apis/system/message.ts
Normal file
19
src/apis/system/message.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import type * as System from './type'
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/system/message'
|
||||
|
||||
/** @desc 查询消息列表 */
|
||||
export function listMessage(query: System.MessagePageQuery) {
|
||||
return http.get<PageRes<System.MessageResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 删除消息 */
|
||||
export function deleteMessage(ids: string | Array<string>) {
|
||||
return http.del(`${BASE_URL}/${ids}`)
|
||||
}
|
||||
|
||||
/** @desc 标记已读 */
|
||||
export function readMessage(ids: string | Array<string>) {
|
||||
return http.patch(`${BASE_URL}/read`, ids)
|
||||
}
|
||||
Reference in New Issue
Block a user