3D 生成前端提交体跟随平坦落点契约

- buildModel3dSubmissionPlan 不再拼 tagged target,把 projectId 与 canvasCompletion 直接摊进请求体;画布链路仍只落项目资源。
- submitModel3dGenerationRequest 的提交体注释同步落点字段改名。
- 请求体、幂等键与排队用例改为断言扁平落点字段。
- 定向验证:npx vitest run src/components/image-editor/model3d-generation src/components/image-editor/model3d-preview(63 passed)、npm run typecheck 通过。
This commit is contained in:
2026-09-23 14:02:57 +08:00
parent fd48829c24
commit f659ddfcf0
4 changed files with 13 additions and 16 deletions
@@ -1746,7 +1746,7 @@ export async function submitModel3dGenerationRequest({
idempotencyKey,
}: {
endpoint: Model3dPricingEndpoint;
// 提交体直接用端点契约:形状不符(缺 target、generation 结构错)在编译期就会暴露。
// 提交体直接用端点契约:形状不符(落点缺失、generation 结构错)在编译期就会暴露。
body: Model3dTextToModelRequest | Model3dImageToModelRequest;
idempotencyKey: string;
}) {