feat: 添加下载文件到浏览器功能

This commit is contained in:
2026-04-22 12:49:27 +08:00
parent 98f0082d44
commit 3055b15855
4 changed files with 74 additions and 0 deletions

View File

@@ -11,6 +11,12 @@ type DownloadToFileReq struct {
LocalPath string `json:"localPath" dc:"本地路径"`
}
// DownloadToBrowserReq 下载文件到浏览器请求
type DownloadToBrowserReq struct {
g.Meta `path:"/downloadToBrowser" method:"post" tags:"存储管理" summary:"下载文件到浏览器" dc:"下载文件到浏览器"`
FileURL string `json:"fileURL" dc:"文件URL" in:"query"`
}
// UploadFileReq 上传文件请求
type UploadFileReq struct {
g.Meta `path:"/uploadFile" method:"post" tags:"存储管理" summary:"上传文件" dc:"上传文件"`