10 lines
329 B
JavaScript
10 lines
329 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`);
|