From 5b6951defb238197a46407a4db617f55fc99391a Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 15 十一月 2024 11:39:41 +0800
Subject: [PATCH] 白名单故障类型

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

diff --git a/src/api/platform/threshold.js b/src/api/platform/threshold.js
index ef0f6b5..45c4286 100644
--- a/src/api/platform/threshold.js
+++ b/src/api/platform/threshold.js
@@ -98,3 +98,55 @@
     timeout: 150000
   })
 }
+
+// 鑾峰彇宸ュ崟鐧藉悕鍗曞垪琛�
+export function getWhiteList(query) {
+  return request({
+    url: '/threshold/white/page',
+    method: 'post',
+    data: query
+  })
+}
+
+// 鑾峰彇宸ュ崟鐧藉悕鍗曡鎯�
+export function getWhite(id) {
+  return request({
+    url: '/threshold/white/'+id,
+    method: 'get',
+  })
+}
+// 鏂板宸ュ崟鐧藉悕鍗�
+export function addWhiteList(data) {
+  return request({
+    url: '/threshold/white/add',
+    method: 'post',
+    data: data
+  })
+}
+// 淇敼宸ュ崟鐧藉悕鍗�
+export function updateWhite(data) {
+  return request({
+    url: '/threshold/white/update',
+    method: 'post',
+    data: data
+  })
+}
+
+// 鎵归噺鍒犻櫎宸ュ崟鐧藉悕鍗�
+export function bathDelete(data) {
+  return request({
+    url: '/threshold/white/batchDelete',
+    method: 'delete',
+    data: data
+  })
+}
+
+// 瀵煎嚭
+export function whiteExport(param) {
+  return request({
+    url: '/threshold/white/export',
+    method: 'get',
+    params: param,
+    responseType: 'blob'
+  })
+}

--
Gitblit v1.8.0