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.

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