You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
1.1 KiB

  1. package router
  2. import (
  3. "gin-vue-admin/controller/api"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func InitFileUploadAndDownloadRouter(Router *gin.RouterGroup) {
  7. FileUploadAndDownloadGroup := Router.Group("fileUploadAndDownload")
  8. //.Use(middleware.JWTAuth()).Use(middleware.CasbinHandler())
  9. {
  10. FileUploadAndDownloadGroup.POST("/upload", api.UploadFile) // 上传文件
  11. FileUploadAndDownloadGroup.POST("/getFileList", api.GetFileList) // 获取上传文件列表
  12. FileUploadAndDownloadGroup.POST("/deleteFile", api.DeleteFile) // 删除指定文件
  13. FileUploadAndDownloadGroup.POST("/breakpointContinue", api.BreakpointContinue) // 断点续传
  14. FileUploadAndDownloadGroup.GET("/findFile", api.FindFile) // 查询当前文件成功的切片
  15. FileUploadAndDownloadGroup.POST("/breakpointContinueFinish", api.BreakpointContinueFinish) // 查询当前文件成功的切片
  16. FileUploadAndDownloadGroup.POST("/removeChunk", api.RemoveChunk) // 查询当前文件成功的切片
  17. }
  18. }