提交 | 用户 | 时间
|
314507
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface OAuth2TokenVO { |
|
4 |
id: number |
|
5 |
accessToken: string |
|
6 |
refreshToken: string |
|
7 |
userId: number |
|
8 |
userType: number |
|
9 |
clientId: string |
|
10 |
createTime: Date |
|
11 |
expiresTime: Date |
|
12 |
} |
|
13 |
|
|
14 |
// 查询 token列表 |
|
15 |
export const getAccessTokenPage = (params: PageParam) => { |
|
16 |
return request.get({ url: '/system/oauth2-token/page', params }) |
|
17 |
} |
|
18 |
|
|
19 |
// 删除 token |
|
20 |
export const deleteAccessToken = (accessToken: string) => { |
|
21 |
return request.delete({ url: '/system/oauth2-token/delete?accessToken=' + accessToken }) |
|
22 |
} |