From 0892efe5131551631fe287cfda29e59e4f2f6707 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期六, 09 十月 2021 10:34:17 +0800 Subject: [PATCH] 系统监控 --- src/api/system.ts | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/src/api/system.ts b/src/api/system.ts index 959911c..91216d5 100644 --- a/src/api/system.ts +++ b/src/api/system.ts @@ -362,3 +362,42 @@ }) } +export const getActiveQrCode = (query: any) => { + return request({ + url: "/version/offline/qrcode", + method: "get", + params: query + }) +} + +export const getSN = (query: any) => { + return request({ + url: "/version/sn", + method: "get", + params: query + }) +} + +export const cancelAuthorization = (query: any) => { + return request({ + url: "/version/cancelAuthorization", + method: "post", + data: qs.stringify(query), + responseType: "blob" + }) +} + +export const activateVersion = (query: any) => { + return request({ + url: "/version/authorization", + method: "post", + data: qs.stringify(query) + }) +} +export const uploadKey = (data: any) => { + return request({ + url: "/version/authorization/upload", + method: "post", + data + }) +} -- Gitblit v1.8.0