feat(miniprogram): 通知 Tab 对接 erp-message 消息 API — 替换空壳

This commit is contained in:
iven
2026-05-01 18:18:51 +08:00
parent f4b536accb
commit 0fb8b98c72
2 changed files with 15 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
import { api } from './request';
export const notificationService = {
list: (params?: { page?: number; page_size?: number }) =>
api.get('/messages', params as Record<string, string | number | undefined>),
markRead: (id: string) =>
api.put(`/messages/${id}/read`),
markAllRead: () =>
api.put('/messages/read-all'),
getUnreadCount: () =>
api.get('/messages/unread-count'),
};