32 lines
584 B
JavaScript
32 lines
584 B
JavaScript
import { request } from '../../utils/request'
|
|
|
|
export function getUnreadNoticeTop(limit = 1) {
|
|
return request({
|
|
url: `/app/notice/unread/top?limit=${encodeURIComponent(limit)}`,
|
|
method: 'GET'
|
|
})
|
|
}
|
|
|
|
export function sendNoticeToRoleKey(data) {
|
|
return request({
|
|
url: '/app/notice/sendToRoleKey',
|
|
method: 'POST',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getUnreadNoticeCount() {
|
|
return request({
|
|
url: '/app/notice/unread/count',
|
|
method: 'GET'
|
|
})
|
|
}
|
|
|
|
export function markNoticeRead(noticeId) {
|
|
return request({
|
|
url: '/app/notice/read',
|
|
method: 'POST',
|
|
data: { noticeId }
|
|
})
|
|
}
|