This commit is contained in:
2026-02-18 19:41:03 +08:00
parent a0c2350662
commit 6543e2ccdd
18 changed files with 4885 additions and 1196 deletions
+69
View File
@@ -338,6 +338,75 @@ export default {
},
},
// 通知管理
notifications: {
list: {
get: async function (params) {
return await request.get('system/notifications', { params })
},
},
unread: {
get: async function (params) {
return await request.get('system/notifications/unread', { params })
},
},
unreadCount: {
get: async function () {
return await request.get('system/notifications/unread-count')
},
},
detail: {
get: async function (id) {
return await request.get(`system/notifications/${id}`)
},
},
markAsRead: {
post: async function (id) {
return await request.post(`system/notifications/${id}/read`)
},
},
batchMarkAsRead: {
post: async function (params) {
return await request.post('system/notifications/batch-read', params)
},
},
markAllAsRead: {
post: async function () {
return await request.post('system/notifications/read-all')
},
},
delete: {
delete: async function (id) {
return await request.delete(`system/notifications/${id}`)
},
},
batchDelete: {
post: async function (params) {
return await request.post('system/notifications/batch-delete', params)
},
},
clearRead: {
post: async function () {
return await request.post('system/notifications/clear-read')
},
},
statistics: {
get: async function () {
return await request.get('system/notifications/statistics')
},
},
send: {
post: async function (params) {
return await request.post('system/notifications/send', params)
},
},
retryUnsent: {
post: async function (params) {
return await request.post('system/notifications/retry-unsent', params)
},
},
},
// 公共接口 (无需认证)
public: {
configs: {