From 8d7d29c212001f44c00230b8491a441c241eeade Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期五, 18 十月 2024 14:05:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 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