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