You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

33 lines
1.0 KiB

2 years ago
import qs from 'qs'
import { defHttp } from '@/utils/http/axios'
2 years ago
// 获得站内信分页
export function getNotifyMessagePage(params) {
2 years ago
return defHttp.get({ url: '/system/notify-message/page', params })
}
// 获得我的站内信分页
export function getMyNotifyMessagePage(params) {
2 years ago
return defHttp.get({ url: '/system/notify-message/my-page', params })
}
// 批量标记已读
export function updateNotifyMessageRead(ids: number[]) {
return defHttp.put({ url: `/system/notify-message/update-read?${qs.stringify({ ids }, { indices: false })}` })
2 years ago
}
// 标记所有站内信为已读
export function updateAllNotifyMessageRead() {
2 years ago
return defHttp.put({ url: '/system/notify-message/update-all-read' })
}
// 获取当前用户的最新站内信列表
export function getUnreadNotifyMessageList() {
2 years ago
return defHttp.get({ url: '/system/notify-message/get-unread-list' })
}
// 获得当前用户的未读站内信数量
export function getUnreadNotifyMessageCount() {
return defHttp.get<number>({ url: '/system/notify-message/get-unread-count' })
2 years ago
}