提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface OAuth2TokenVO { |
39248b
|
4 |
grantType: string |
H |
5 |
scope: string |
|
6 |
refreshToken: any |
|
7 |
username: string |
|
8 |
password: string |
|
9 |
redirectUri: string |
820397
|
10 |
} |
H |
11 |
|
|
12 |
// 查询 token列表 |
|
13 |
export const getAccessTokenPage = (params: PageParam) => { |
|
14 |
return request.get({ url: '/system/oauth2-token/page', params }) |
|
15 |
} |
|
16 |
|
39248b
|
17 |
// 单点登录授权 |
H |
18 |
export const OAuth2Login = (params: OAuth2TokenVO) => { |
|
19 |
return request.post({ url: '/system/oauth2/token', data: params }) |
|
20 |
} |
|
21 |
|
820397
|
22 |
// 删除 token |
H |
23 |
export const deleteAccessToken = (accessToken: string) => { |
|
24 |
return request.delete({ url: '/system/oauth2-token/delete?accessToken=' + accessToken }) |
|
25 |
} |