Initial project commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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`);
|
||||
Reference in New Issue
Block a user