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/api/v1"
  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", v1.UploadFile) // 上传文件
  11. FileUploadAndDownloadGroup.POST("/getFileList", v1.GetFileList) // 获取上传文件列表
  12. FileUploadAndDownloadGroup.POST("/deleteFile", v1.DeleteFile) // 删除指定文件
  13. FileUploadAndDownloadGroup.POST("/breakpointContinue", v1.BreakpointContinue) // 断点续传
  14. FileUploadAndDownloadGroup.GET("/findFile", v1.FindFile) // 查询当前文件成功的切片
  15. FileUploadAndDownloadGroup.POST("/breakpointContinueFinish", v1.BreakpointContinueFinish) // 查询当前文件成功的切片
  16. FileUploadAndDownloadGroup.POST("/removeChunk", v1.RemoveChunk) // 查询当前文件成功的切片
  17. }
  18. }