fix Authorization
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user