This commit is contained in:
2026-10-20 11:30:34 +08:00
parent c13175bf77
commit 16ac817524
92 changed files with 1916 additions and 190 deletions
@@ -0,0 +1,52 @@
openapi: 3.0.3
info: {title: 尾程订单作业事实内部查询, version: 1.0.0}
paths:
/internal/lastleg/v1/order-workflow-facts:
post:
summary: 批量查询精确客户和来源入仓单的作业事实
description: 仅内部服务令牌。最多500个来源,禁止公网访问。无写入。有效出库包含实出库,pendingOutbound仅未取消且未出库。卸柜含真实差异卸柜完成。
parameters:
- {name: X-Internal-Service-Token, in: header, required: true, schema: {type: string}}
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [sources]
properties:
sources:
type: array
minItems: 1
maxItems: 500
items:
type: object
required: [tenantId, inboundId]
properties:
tenantId: {type: integer, format: int64, minimum: 1}
inboundId: {type: integer, format: int64, minimum: 1}
responses:
'200':
description: 标准ApiResponse;不存在的来源不返回行,调用方须检查来源完整性
content:
application/json:
schema:
type: object
properties:
code: {type: string, example: '200'}
message: {type: string}
data:
type: array
items: {$ref: '#/components/schemas/Fact'}
components:
schemas:
Fact:
type: object
required: [tenantId, inboundId, outboundExists, pendingOutbound, delivering, unloaded]
properties:
tenantId: {type: string}
inboundId: {type: string}
outboundExists: {type: boolean}
pendingOutbound: {type: boolean}
delivering: {type: boolean}
unloaded: {type: boolean}
@@ -4979,7 +4979,7 @@ components:
purchaseWarehouseId: { type: integer, format: int64, minimum: 1, nullable: true }
ProcurementCreate:
type: object
required: [purchaseCategory, productName, purchaseQuantity, budgetUnitPrice, currency, receivingAddress, contactName, contactPhone, idempotencyKey]
required: [productName, purchaseQuantity, budgetUnitPrice, currency, receivingAddress, contactName, contactPhone, idempotencyKey]
properties:
customerName: { type: string, nullable: true, maxLength: 255 }
purchaseCategory: { type: string, maxLength: 128 }