This commit is contained in:
2026-09-15 14:18:18 +08:00
parent 6a2075fe4b
commit a474ca4d93
35 changed files with 751 additions and 228 deletions
@@ -42,6 +42,8 @@ baiyue:
pallet:
auto-created-unit-price: ${AUTO_CREATED_PALLET_UNIT_PRICE:1.00}
clients:
print:
url: ${PRINT_SERVICE_URL:}
domestic-warehouse:
url: ${DOMESTIC_WAREHOUSE_URL:}
cache-ttl: ${DOMESTIC_WAREHOUSE_CACHE_TTL:30m}
@@ -0,0 +1,35 @@
openapi: 3.0.3
info:
title: Overseas pallet label
version: 1.0.0
paths:
/api/platform/v1/warehouse-admin/{warehouseId}/pallets/{id}/label:
get:
operationId: printOverseasPalletLabel
summary: 下载指定托盘的一页标签 PDF
description: 平台公共资源,要求 platform:overseas-warehouse:pallet:list。校验仓库和托盘归属后复用 Print 的 INBOUND_MARK_V1(100×100mm),原样使用托盘编码作为二维码,不创建或修改托盘。当前模板要求编码为 1–34 位可打印 ASCII 字符。
security:
- bearerAuth: []
parameters:
- { name: warehouseId, in: path, required: true, schema: { type: integer, format: int64 } }
- { name: id, in: path, required: true, schema: { type: integer, format: int64 } }
- { name: X-Request-Id, in: header, required: false, schema: { type: string } }
responses:
'200':
description: 成功返回单页 PDF;业务失败返回 JSON 信封(A0403、A0404、A0422 或 S0503)。
content:
application/pdf:
schema: { type: string, format: binary }
application/json:
schema:
type: object
required: [code, message]
properties:
code: { type: string }
message: { type: string }
requestId: { type: string }
'401': { description: 未认证 }
'403': { description: 权限不足 }
components:
securitySchemes:
bearerAuth: { type: http, scheme: bearer, bearerFormat: JWT }