From 769275515cf9ed5a31a742b455b0a0690b3f5f99 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期二, 14 十二月 2021 11:41:44 +0800 Subject: [PATCH] 删除ai_c 应用中新修改 --- src/api/system.ts | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/src/api/system.ts b/src/api/system.ts index 91216d5..e1cc118 100644 --- a/src/api/system.ts +++ b/src/api/system.ts @@ -1,6 +1,52 @@ import request from "@/scripts/httpRequest"; import qs from "qs"; +export const getMqtt = () => { + return request({ + url: "/data/api-v/mqtt/conf", + method: "get" + }); +}; + +export const saveMqtt = (data) => { + return request({ + url: "/data/api-v/mqtt/saveConf", + method: "post", + data + }); +}; + +export const getWifi = () => { + return request({ + url: "/data/api-v/wifi/conf", + method: "get" + }); +}; + +export const saveWifi = (data) => { + return request({ + url: "/data/api-v/wifi/saveConf", + method: "post", + data + }); +}; + +export const getLora = () => { + return request({ + url: "/data/api-v/lora/conf", + method: "get" + }); +}; + +export const saveLora = (data) => { + return request({ + url: "/data/api-v/lora/saveConf", + method: "post", + data + }); +}; + + export const getDevInfo = () => { return request({ url: "/data/api-v/sysset/getDevInfo", -- Gitblit v1.8.0