From 02bbf25456f3a0165313340be277cfa4a2b3b24f Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期三, 25 十二月 2024 18:09:51 +0800 Subject: [PATCH] 调度记录查看 --- src/api/system/oauth2/token.ts | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/api/system/oauth2/token.ts b/src/api/system/oauth2/token.ts index ac89ae8..02ea572 100644 --- a/src/api/system/oauth2/token.ts +++ b/src/api/system/oauth2/token.ts @@ -1,14 +1,12 @@ import request from '@/config/axios' export interface OAuth2TokenVO { - id: number - accessToken: string - refreshToken: string - userId: number - userType: number - clientId: string - createTime: Date - expiresTime: Date + grantType: string + scope: string + refreshToken: any + username: string + password: string + redirectUri: string } // 查询 token列表 @@ -16,6 +14,11 @@ return request.get({ url: '/system/oauth2-token/page', params }) } +// 单点登录授权 +export const OAuth2Login = (params: OAuth2TokenVO) => { + return request.post({ url: '/system/oauth2/token', data: params }) +} + // 删除 token export const deleteAccessToken = (accessToken: string) => { return request.delete({ url: '/system/oauth2-token/delete?accessToken=' + accessToken }) -- Gitblit v1.9.3