| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- /*
- * Batch Download API List
- * /batchDownload/manage/list - GET
- * /batchDownload/manage/config - POST 创建新配置
- * /batchDownload/manage/description/{id} - POST 更新任务说明
- * /batchDownload/manage/owner/{id} - POST 设置owner
- * /batchDownload/manage/config/{id} - DELETE 删除配置
- * /batchDownload/data/{id} - GET 获取指定ID的数据包下载地址
- * /batchDownload/manage/path - GET 获取指定ID的文件目录结构
- * /batchDownload/manage/fileTree - GET 获取指定文件的目录结构
- * /batchDownload/manage/fileDownload - GET 下载指定文件
- */
- package routes
- import (
- "fwh-toolbox-server/controllers"
- "github.com/gofiber/fiber/v2"
- )
- func BatchDownloadSetup(api fiber.Router) {
- // 获取批量数据下载管理表
- api.Get("/batchDownload/manage/list", controllers.GetBatchDownloadList)
- // 创建一个批量数据下载管任务
- api.Post("/batchDownload/manage/config", controllers.CreateBatchDownload)
- // 更新一个批量数据下载说明
- api.Post("/batchDownload/manage/description/:id", controllers.UpdateBatchDownloadDescription)
- // 设置一个批量数据的owner
- api.Post("/batchDownload/manage/owner/:id", controllers.UpdateBatchDownloadOwner)
- // 删除一个批量数据下载数据
- api.Delete("/batchDownload/manage/config/:id", controllers.DeleteBatchDownload)
- // 获取指定ID的批量数据下载数据包地址
- api.Get("/batchDownload/data/:id", controllers.GetBatchDownloadData)
- // 获取指定ID的文件目录结构
- api.Get("/batchDownload/manage/path", controllers.GetBatchDownloadPath)
- // 获取指定文件的目录结构
- api.Get("/batchDownload/manage/fileTree", controllers.GetBatchDownloadFileTree)
- // 下载指定文件
- api.Get("/batchDownload/manage/fileDownload", controllers.GetBatchDownloadFileDownload)
- }
|