From d21590509b22c7ec7f20b8def6931fc46b35166b Mon Sep 17 00:00:00 2001 From: JaydenZhou <380774082@qq.com> Date: Thu, 5 Dec 2024 23:01:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EapiKey=E7=9A=84=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=92=8C=E8=8E=B7=E5=8F=96=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/oauth2/oauth2Token.js | 17 ++++ src/views/system/oauth2/apikey/index.vue | 109 +++++++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 src/views/system/oauth2/apikey/index.vue diff --git a/src/api/system/oauth2/oauth2Token.js b/src/api/system/oauth2/oauth2Token.js index 37402e8f..d29eafb9 100644 --- a/src/api/system/oauth2/oauth2Token.js +++ b/src/api/system/oauth2/oauth2Token.js @@ -16,3 +16,20 @@ export function deleteAccessToken(accessToken) { method: 'delete' }) } + +// 创建apiKey令牌 +export function createApiKeyToken() { + return request({ + url: '/system/oauth2-token/create-api-key', + method: 'post' + }) +} + +// 获取apiKey令牌分页 +export function getApiKeyTokenPage(query) { + return request({ + url: '/system/oauth2-token/api-key/page', + method: 'get', + params: query + }) +} diff --git a/src/views/system/oauth2/apikey/index.vue b/src/views/system/oauth2/apikey/index.vue new file mode 100644 index 00000000..278e8301 --- /dev/null +++ b/src/views/system/oauth2/apikey/index.vue @@ -0,0 +1,109 @@ + + + +