Revert "Fix Bug #550: AI修复"

This reverts commit 16c42ca108.
This commit is contained in:
2026-05-27 08:59:07 +08:00
parent bd14563691
commit 9db5ced4e3
5432 changed files with 778638 additions and 171 deletions

View File

@@ -0,0 +1,110 @@
import request from '@/utils/request'
// 查询公告列表
export function listNotice(query) {
return request({
url: '/system/notice/list',
method: 'get',
params: query
})
}
// 获取公开的公告列表(给普通用户使用)
export function getPublicNoticeList(query) {
return request({
url: '/system/notice/public/list',
method: 'get',
params: query
})
}
// 获取当前用户的通知列表
export function getUserNotices() {
return request({
url: '/system/notice/public/notice',
method: 'get'
})
}
// 查询公告详细
export function getNotice(noticeId) {
return request({
url: '/system/notice/' + noticeId,
method: 'get'
})
}
// 新增公告
export function addNotice(data) {
return request({
url: '/system/notice',
method: 'post',
data: data
})
}
// 修改公告
export function updateNotice(data) {
return request({
url: '/system/notice',
method: 'put',
data: data
})
}
// 删除公告
export function delNotice(noticeId) {
return request({
url: '/system/notice/' + noticeId,
method: 'delete'
})
}
// 发布公告
export function publishNotice(noticeId) {
return request({
url: '/system/notice/publish/' + noticeId,
method: 'put'
})
}
// 取消发布公告
export function unpublishNotice(noticeId) {
return request({
url: '/system/notice/unpublish/' + noticeId,
method: 'put'
})
}
// 获取未读公告/通知数量
export function getUnreadCount() {
return request({
url: '/system/notice/public/unread/count',
method: 'get'
})
}
// 标记公告/通知为已读
export function markAsRead(noticeId) {
return request({
url: '/system/notice/public/read/' + noticeId,
method: 'post'
})
}
// 批量标记公告/通知为已读
export function markAllAsRead(noticeIds) {
return request({
url: '/system/notice/public/read/all',
method: 'post',
data: noticeIds
})
}
// 获取用户已读公告/通知ID列表
export function getReadNoticeIds() {
return request({
url: '/system/notice/public/read/ids',
method: 'get'
})
}