From 44a3abe105e9b9b4d1a7173772fc9d18c9b59529 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期六, 18 九月 2021 16:24:02 +0800 Subject: [PATCH] 应用中心ui改动 --- 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