SpecialX
|
989603e318
|
feat(portal-shell): add lib/api skeleton with errors and types
M1 Task 1: 创建 4 层数据抽象层的骨架文件
- errors.ts: ApiError + GraphQLErrorCode 枚举
- types.ts: Pagination / PaginatedResult / UseQueryResult / UseMutationResult
- internal.ts: normalizeError 把 ApolloError 转为 ApiError
- index.ts: barrel 出口
|
2026-07-17 12:06:01 +08:00 |
|