Files
CosScene/clients/api/notification.js
T
shiran 0afd5bbb2c fix(api): 统一API端点路径格式
统一所有API端点路径末尾添加斜杠,确保与后端API规范一致,
包括收藏、通知、景点和用户相关接口。
2026-05-09 18:23:42 +08:00

10 lines
330 B
JavaScript

import { get, post } from "@/utils/request";
export const getNotifications = (params) => get("/notifications/", params);
export const getUnreadCount = () => get("/notifications/unread-count");
export const markAllRead = () => post("/notifications/read-all");
export const markRead = (id) => post(`/notifications/${id}/read`);