Route material pack batches to their own create endpoint

Material pack simulation uses POST /api/v1/simulation/create-material-pack-batch
with approvalCode/nodeId/runMode in the request body; keep the shared
create-batch payload for hosecloud single-number mode.

Verification: material pack create on xiezihao staging returns 200 and
ingests records (HY001/HY002, taskMode=simulation); 116 tests pass.
This commit is contained in:
gitea committed 2026-08-24 18:27:55 +08:00
1 parent 997f1f60ac
commit baab26bcda
9 files changed
+138 -31

No files matched your search

+20
View File
@@ -19,6 +19,26 @@ paths:
schema:
type: object
additionalProperties: true
/v1/simulation/create-material-pack-batch:
post:
tags: [Simulation]
operationId: createMaterialPackBatch
summary: Create a material pack simulation batch
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
responses:
"200":
description: Created batch id.
content:
application/json:
schema:
type: object
additionalProperties: true
/v1/simulation/batches:
get:
tags: [Simulation]