fix: ts类型错误修复

This commit is contained in:
wood911010 committed 2025-09-26 00:43:51 +08:00
1 parent 1063fe2bd8
commit 13d64d3f98
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')
}