提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface OAuth2ClientVO { |
|
4 |
id: number |
|
5 |
clientId: string |
|
6 |
secret: string |
|
7 |
name: string |
|
8 |
logo: string |
|
9 |
description: string |
|
10 |
status: number |
|
11 |
accessTokenValiditySeconds: number |
|
12 |
refreshTokenValiditySeconds: number |
|
13 |
redirectUris: string[] |
|
14 |
autoApprove: boolean |
|
15 |
authorizedGrantTypes: string[] |
|
16 |
scopes: string[] |
|
17 |
authorities: string[] |
|
18 |
resourceIds: string[] |
|
19 |
additionalInformation: string |
|
20 |
isAdditionalInformationJson: boolean |
|
21 |
createTime: Date |
|
22 |
} |
|
23 |
|
|
24 |
// 查询 OAuth2 客户端的列表 |
|
25 |
export const getOAuth2ClientPage = (params: PageParam) => { |
|
26 |
return request.get({ url: '/system/oauth2-client/page', params }) |
|
27 |
} |
|
28 |
|
|
29 |
// 查询 OAuth2 客户端的详情 |
|
30 |
export const getOAuth2Client = (id: number) => { |
|
31 |
return request.get({ url: '/system/oauth2-client/get?id=' + id }) |
|
32 |
} |
|
33 |
|
|
34 |
// 新增 OAuth2 客户端 |
|
35 |
export const createOAuth2Client = (data: OAuth2ClientVO) => { |
|
36 |
return request.post({ url: '/system/oauth2-client/create', data }) |
|
37 |
} |
|
38 |
|
|
39 |
// 修改 OAuth2 客户端 |
|
40 |
export const updateOAuth2Client = (data: OAuth2ClientVO) => { |
|
41 |
return request.put({ url: '/system/oauth2-client/update', data }) |
|
42 |
} |
|
43 |
|
|
44 |
// 删除 OAuth2 |
|
45 |
export const deleteOAuth2Client = (id: number) => { |
|
46 |
return request.delete({ url: '/system/oauth2-client/delete?id=' + id }) |
|
47 |
} |