From fa3ac93010bea3805438ee3ab0a182bfbf7423da Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期一, 27 五月 2024 16:19:31 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/dashboard/control/api.ts |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/src/views/dashboard/control/api.ts b/src/views/dashboard/control/api.ts
new file mode 100644
index 0000000..703be84
--- /dev/null
+++ b/src/views/dashboard/control/api.ts
@@ -0,0 +1,25 @@
+import { defHttp } from '/@/utils/http/axios';
+
+enum Api {
+  sendCommand = '/dry/real/sendCommand',
+  sendWriteCommand = '/dry/opc/sendWriteCommand',
+  listAll = '/dry/dryOpcDevice/listAll'
+}
+/**
+ * 鍙戦�佸懡浠�
+ * @param params
+ */
+export const sendCommand = (params) => defHttp.post({ url: Api.sendCommand, params },{ isTransformResponse: false });
+
+/**
+ * 鍙戦�丱PC鍐欐寚浠�
+ */
+
+export const sendWriteCommand = (params) => defHttp.post({url: Api.sendWriteCommand, params},{isTransformResponse: false})
+
+/**
+ * 鏌ヨ鎵�鏈塐PC璁惧
+ */
+
+export const listAll = (params) => defHttp.get({url:Api.listAll, params})
+

--
Gitblit v1.9.3