This commit is contained in:
13895237362 committed 2025-09-26 08:58:20 +08:00
commit c1fd962387
1 file changed
+7 -1
+7 -1
View File
@@ -27,8 +27,14 @@ export interface ApiResponse<T> {
data: T
}
// 最近授权响应类型
export interface RecentAuthorizationResponse {
list: RecentAuthorizationItem[]
total: number
}
// 获取最近授权列表
export const getRecentAuthorizations = (): Promise<ApiResponse<RecentAuthorizationItem[]>> => {
export const getRecentAuthorizations = (): Promise<ApiResponse<RecentAuthorizationResponse>> => {
return Axios.get('api/v1/dashboard/recent-authorizations')
}