refactor(api): migrate config-api to ApiResponse pattern

This commit is contained in:
DrSmoothl
2026-03-01 17:43:47 +08:00
parent 88e157040f
commit d4bfc9591c
9 changed files with 288 additions and 156 deletions

View File

@@ -52,4 +52,4 @@ export function throwIfError<T>(result: ApiResponse<T>): T {
return result.data
}
throw new Error(result.error)
}
}