fix Authorization

This commit is contained in:
2025-11-11 17:47:08 +08:00
parent 64c0a10193
commit c40be9daf8
10 changed files with 326 additions and 29 deletions

View File

@@ -47,10 +47,15 @@ type (
DocumentId int64 `json:"documentId" validate:"required"` // 授权书ID
}
// DownloadAuthorizationDocumentByNameReq 通过文件名下载授权书请求
DownloadAuthorizationDocumentByNameReq {
FileName string `path:"fileName" validate:"required"` // 授权书文件名
}
// DownloadAuthorizationDocumentResp 下载授权书响应
DownloadAuthorizationDocumentResp {
FileName string `json:"fileName"` // 文件名
FileUrl string `json:"fileUrl"` // 文件访问URL
FilePath string `json:"filePath"` // 文件存储路径
}
)
@@ -71,4 +76,8 @@ service main {
// 下载授权书文件
@handler DownloadAuthorizationDocument
get /authorization/download/:documentId (DownloadAuthorizationDocumentReq) returns (DownloadAuthorizationDocumentResp)
// 通过文件名下载授权书文件
@handler DownloadAuthorizationDocumentByName
get /authorization/download/file/:fileName (DownloadAuthorizationDocumentByNameReq) returns (DownloadAuthorizationDocumentResp)
}