Archived
feat: configurable download origin via gmp.download-origin
This commit is contained in:
+4
-3
@@ -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: 文件名
|
||||
|
||||
Reference in New Issue
Block a user