M1 Task 3: 从 31 widget 抽取 51 个 gql 文档到 7 个 operations 文件 - universal(7) + sidebar(3) + topbar(3) + teacher(6) + student(8) + parent(4) + admin(20) = 51 DOC - operations/index.ts barrel 统一出口 - codegen.yml 启用 documents + skipDocumentsValidation(services 子图字段待补齐) - 生成 types.ts (28KB) + operations.ts (10KB)
10 lines
346 B
TypeScript
10 lines
346 B
TypeScript
// Operations unified export
|
|
// All GraphQL documents centralized for lib/api/<domain>.ts consumption.
|
|
export * from "./universal.graphql";
|
|
export * from "./sidebar.graphql";
|
|
export * from "./topbar.graphql";
|
|
export * from "./teacher.graphql";
|
|
export * from "./student.graphql";
|
|
export * from "./parent.graphql";
|
|
export * from "./admin.graphql";
|