From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目

---
 src/api/iot/alert/record/index.ts |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/src/api/iot/alert/record/index.ts b/src/api/iot/alert/record/index.ts
new file mode 100644
index 0000000..b124a9c
--- /dev/null
+++ b/src/api/iot/alert/record/index.ts
@@ -0,0 +1,35 @@
+import request from '@/config/axios'
+
+/** IoT 鍛婅璁板綍淇℃伅 */
+export interface AlertRecord {
+  id: number // 璁板綍缂栧彿
+  configId: number // 鍛婅閰嶇疆缂栧彿
+  configName: string // 鍛婅鍚嶇О
+  configLevel: number // 鍛婅绾у埆
+  productId: number // 浜у搧缂栧彿
+  deviceId: number // 璁惧缂栧彿
+  deviceMessage: any // 瑙﹀彂鐨勮澶囨秷鎭�
+  processStatus?: boolean // 鏄惁澶勭悊
+  processRemark: string // 澶勭悊缁撴灉锛堝娉級
+}
+
+// IoT 鍛婅璁板綍 API
+export const AlertRecordApi = {
+  // 鏌ヨ鍛婅璁板綍鍒嗛〉
+  getAlertRecordPage: async (params: any) => {
+    return await request.get({ url: `/iot/alert-record/page`, params })
+  },
+
+  // 鏌ヨ鍛婅璁板綍璇︽儏
+  getAlertRecord: async (id: number) => {
+    return await request.get({ url: `/iot/alert-record/get?id=` + id })
+  },
+
+  // 澶勭悊鍛婅璁板綍
+  processAlertRecord: async (id: number, processRemark: string) => {
+    return await request.put({
+      url: `/iot/alert-record/process`,
+      data: { id, processRemark }
+    })
+  }
+}

--
Gitblit v1.8.0