feat:【antd】【ele】统一 api 的 system、infra 实现

This commit is contained in:
YunaiV
2025-09-22 12:58:22 +08:00
parent 6ca2b0f1ca
commit a1e756c0e5
12 changed files with 37 additions and 52 deletions

View File

@@ -3,7 +3,7 @@ import { requestClient } from '#/api/request';
/** OAuth2.0 授权信息响应 */
export namespace SystemOAuth2ClientApi {
/** 授权信息 */
export interface AuthorizeInfoResp {
export interface AuthorizeInfoRespVO {
client: {
logo: string;
name: string;
@@ -17,7 +17,7 @@ export namespace SystemOAuth2ClientApi {
/** 获得授权信息 */
export function getAuthorize(clientId: string) {
return requestClient.get<SystemOAuth2ClientApi.AuthorizeInfoResp>(
return requestClient.get<SystemOAuth2ClientApi.AuthorizeInfoRespVO>(
`/system/oauth2/authorize?clientId=${clientId}`,
);
}