cmvr-wms/ruoyi-ui-vue3/src/api/system/notification.js
lixiaolong 03b5e82dde feat(storage): 集成MinIO对象存储和邮件通知功能
- 配置Spring Mail发送通知邮件,支持环境变量配置SMTP参数
- 添加notification-center和feedback-notification模块开关及配置
- 集成MinIO作为业务附件对象存储,支持采购文档、供应商执照等文件存储
- 修改AssistantAttachmentService使用对象存储保存AI助手附件
- 更新FeedbackImageStorage使用对象存储管理反馈图片
- 改进FileUploadUtils和FileUtils使用对象存储处理文件上传下载
- 扩展PurchaseDocumentService和SupplierLicenseService支持对象存储
- 添加WmsBatchImportServiceImpl对批量导入文件的对象存储支持
- 实现ExcelUtil导出时可选存储到对象存储而非本地文件系统
- 增加SysFeedbackService反馈提交后的邮件通知功能
- 添加用户反馈组件的通知设置界面和通知详情展示
- 创建sys_feedback_notify_route和sys_feedback_notification数据表
- 创建sys_notification_event和sys_notification_delivery数据表
- 添加BusinessAttachmentMinioLiveTest集成测试用例
2026-10-16 22:42:36 +08:00

12 lines
891 B
JavaScript

import request from '@/utils/request'
// Backend general inbox only. Announcements and collaboration notifications retain their existing APIs.
// Render title/content as plain text. Never use v-html for notification content.
export const listNotifications = ({ beforeId, limit = 20, unreadOnly = false } = {}) =>
request({ url: '/system/notifications', params: { beforeId, limit, unreadOnly } })
// Returns { count, exact }; exact=false means a lower bound, not an exact unread badge.
export const notificationUnread = () => request({ url: '/system/notifications/unread' })
export const getNotification = id => request({ url: `/system/notifications/${id}` })
export const readNotification = id => request({ url: `/system/notifications/${id}/read`, method: 'put' })
export const readNotificationBatch = ids => request({ url: '/system/notifications/read-batch', method: 'put', data: ids })