diff --git a/frontend/src/api/dashboard.ts b/frontend/src/api/dashboard.ts index 047a6ab..1ac8de5 100644 --- a/frontend/src/api/dashboard.ts +++ b/frontend/src/api/dashboard.ts @@ -27,8 +27,14 @@ export interface ApiResponse { data: T } +// 最近授权响应类型 +export interface RecentAuthorizationResponse { + list: RecentAuthorizationItem[] + total: number +} + // 获取最近授权列表 -export const getRecentAuthorizations = (): Promise> => { +export const getRecentAuthorizations = (): Promise> => { return Axios.get('api/v1/dashboard/recent-authorizations') }