From 4b43bfb3f6f499f480712dd29bef52275466afd6 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期五, 30 七月 2021 22:10:59 +0800 Subject: [PATCH] change all --- src/api/system.ts | 206 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 204 insertions(+), 2 deletions(-) diff --git a/src/api/system.ts b/src/api/system.ts index 87afa00..959911c 100644 --- a/src/api/system.ts +++ b/src/api/system.ts @@ -106,7 +106,7 @@ export const setRebootTask = (query: any) => { return request({ - url: "/data/api-v/sysset/rebootTask", + url: "/data/api-v/sysset/setRebootTask", method: "post", data: qs.stringify(query) }); @@ -135,11 +135,131 @@ }); }; +export const upNetCard = (query: any) => { + return request({ + url: "/data/api-v/sysset/upNetCard", + method: "post", + data: qs.stringify(query) + }); +}; +export const downNetCard = (query: any) => { + return request({ + url: "/data/api-v/sysset/downNetCard", + method: "post", + data: qs.stringify(query) + }); +}; + +export const setServerName = (query: any) => { + return request({ + url: "/data/api-v/sysset/setSerName", + method: "post", + data: qs.stringify(query) + }); +}; + +export const getWireList = (query: any) => { + return request({ + url: "/data/api-v/sysset/getNetWorkCards", + method: "get", + data: query + }); +}; + + +export const setKeyboardLayout = (query: any) => { + return request({ + url: "/data/api-v/sysset/setKeyboardLayout", + method: "post", + data: qs.stringify(query) + }); +}; + +export const setNetWorkCard = (query: any) => { + return request({ + url: "/data/api-v/sysset/setNetWorkCard", + method: "post", + data: qs.stringify(query) + }); +}; + +export const getLangs = (query: any) => { + return request({ + url: "/data/api-v/sysset/getLangs", + method: "get", + data: query + }); +}; +export const getLang = (query: any) => { + return request({ + url: "/data/api-v/sysset/getLang", + method: "get", + data: query + }); +}; + + +export const getKeyboardLayouts = (query: any) => { + return request({ + url: "/data/api-v/sysset/getKeyboardLayouts", + method: "get", + data: query + }); +}; +export const getCurKeyboardLayout = (query: any) => { + return request({ + url: "/data/api-v/sysset/getDefKeyboardLayout", + method: "get", + data: query + }); +}; + +export const setLang = (query: any) => { + return request({ + url: "/data/api-v/sysset/setLang", + method: "post", + data: qs.stringify(query) + }); +}; + +export const getNetWorkCardInfo = (query: any) => { + return request({ + url: "/data/api-v/sysset/getNetWorkCardInfo", + method: "post", + data: qs.stringify(query) + }); +}; + export const deleteDate = (query: any) => { return request({ url: "/data/api-v/clearData/deleteEsData", method: "post", data: query + }); +}; + +export const deleteData = (query: any) => { + return request({ + url: "/data/api-v/clearData/deleteData", + method: "post", + data: query + }); +}; + + +export const freedisk = (query: any) => { + return request({ + url: "/data/api-v/sysset/freedisk", + method: "get", + params: query + }); +}; + +export const getAppUpgradeNotice = (query: any) => { + return request({ + url: "/data/api-v/app/upgrade/notice", + method: "get", + params: query }); }; @@ -159,4 +279,86 @@ method: "get", params: query }); -}; \ No newline at end of file +}; + +export const checkNewVersion = () => { + return request({ + url: "/version/check", + method: "get" + }); +}; + +export const upgradeNewVersion = () => { + return request({ + url: "/version/upgrade", + method: "get" + }); +}; + +export const getUpgradeNotice = () => { + return request({ + url: "/version/notice", + method: "get" + }); +}; + + + +export const delayUpgradeNotice = (query: any) => { + return request({ + url: "/version/notice/delay", + method: "post", + data: qs.stringify(query) + }); +}; + + +export const delayAppNotice = (query: any) => { + return request({ + url: "/data/api-v/app/upgrade/notice/delay", + method: "post", + data: qs.stringify(query) + }); +}; + + + +export const uploadUpgradePkg = (data: any) => { + return request({ + url: "/version/upload/zip", + method: "post", + data + }) +} + +export const rollback = (query: any) => { + return request({ + url: "/version/rollback", + method: "post", + data: qs.stringify(query) + }) +} + +export const upgradePkg = (query: any) => { + return request({ + url: "/version/upgrade/zip", + method: "get", + params: query + }) +} + +export const getSettings = () => { + return request({ + url: "/version/settings", + method: "get", + }) +} + +export const updateSettings = (query: any) => { + return request({ + url: "/version/setting/update", + method: "post", + data: qs.stringify(query) + }) +} + -- Gitblit v1.8.0