diff --git a/furniture-3d-system/src/app/api/products/[id]/assembly/generate-from-order/route.ts b/furniture-3d-system/src/app/api/products/[id]/assembly/generate-from-order/route.ts index 985d848b..8f91a438 100644 --- a/furniture-3d-system/src/app/api/products/[id]/assembly/generate-from-order/route.ts +++ b/furniture-3d-system/src/app/api/products/[id]/assembly/generate-from-order/route.ts @@ -27,7 +27,7 @@ const MixedInstallOrderSchema = z.object({ order: z.number().int().positive('安装顺序必须为正整数'), }) -export const GenerateFromOrderBodySchema = z.object({ +const GenerateFromOrderBodySchema = z.object({ items: z .array(MixedInstallOrderSchema) .min(1, '至少需要一个安装项顺序')