From b2ef755893a694ea07b7ca2f46e4571bbc8e9cb9 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期日, 07 四月 2024 17:09:45 +0800
Subject: [PATCH] 通知接口

---
 src/api/platform/notify.js |   61 ++++++++++++++++++++++++++++++
 1 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/src/api/platform/notify.js b/src/api/platform/notify.js
new file mode 100644
index 0000000..6b0a016
--- /dev/null
+++ b/src/api/platform/notify.js
@@ -0,0 +1,61 @@
+import axios from "./request";
+
+// 鑾峰彇閫氱煡鍒嗛〉
+export const getNotifys = (params) => {
+    return axios({
+        url: "/notify/page",
+        method: "GET",
+        params: params
+    })
+}
+
+// 鑾峰彇閫氱煡鍒楄〃
+export const getNotifyList = () => {
+    return axios({
+        url: "/notify/list",
+        method: "GET"
+    })
+}
+
+// 閫氳繃id鑾峰彇閫氱煡
+export const getNotifyById = (params) => {
+    return axios({
+        url: "/notify/" + params,
+        method: "GET"
+    })
+}
+
+// 閫氳繃id鍒犻櫎閫氱煡
+export const deleteNotifyById = (params) => {
+    return axios({
+        url: "/notify/" + params,
+        method: "DELETE"
+    })
+}
+
+// 鎵归噺鍒犻櫎閫氱煡
+export const deleteNotifyByIds = (params) => {
+    return axios({
+        url: "/notify/batch",
+        method: "DELETE",
+        data: params
+    })
+}
+
+// 淇敼閫氱煡
+export const editNotify = (params) => {
+    return axios({
+        url: "/notify/",
+        method: "PUT",
+        data: params
+    })
+}
+
+// 娣诲姞閫氱煡
+export const addNotify = (params) => {
+    return axios({
+        url: "/notify/",
+        method: "POST",
+        data: params
+    })
+}

--
Gitblit v1.8.0