feat: configurable download origin via gmp.download-origin

This commit is contained in:
agentuser
2026-05-11 17:34:36 +08:00
parent 2f6c68a2e2
commit b53f43fb67
3 changed files with 15 additions and 5 deletions
+4 -3
View File
@@ -42,7 +42,7 @@ paths:
code: 0
msg: "success"
data:
url: "/api/docx/download?id=d8d4122719c8465ea75ab62b37f6ce10"
url: "http://localhost:6666/api/docx/download?id=d8d4122719c8465ea75ab62b37f6ce10"
fileName: "annualReport.docx"
"400":
description: 参数校验失败(exportId 为空 / businessData 为空)
@@ -175,8 +175,9 @@ components:
properties:
url:
type: string
description: 文件下载路径(pathname only,无 origin)
example: "/api/docx/download?id=d8d4122719c8465ea75ab62b37f6ce10"
format: uri
description: 文件下载 URL(由 gmp.download-origin 配置 + 路径组成,未配置则只返回路径)
example: "http://localhost:6666/api/docx/download?id=d8d4122719c8465ea75ab62b37f6ce10"
fileName:
type: string
description: 文件名