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.

18 lines
495 B

  1. package router
  2. import (
  3. "gin-vue-admin/api/v1"
  4. "gin-vue-admin/middleware"
  5. "github.com/gin-gonic/gin"
  6. )
  7. func InitSimpleUploaderRouter(Router *gin.RouterGroup) {
  8. ApiRouter := Router.Group("simpleUploader").
  9. Use(middleware.JWTAuth()).
  10. Use(middleware.CasbinHandler())
  11. {
  12. ApiRouter.POST("upload", v1.SimpleUploaderUpload) // 上传功能
  13. ApiRouter.GET("checkFileMd5", v1.CheckFileMd5) // 文件完整度验证
  14. ApiRouter.GET("mergeFileMd5", v1.MergeFileMd5) // 合并文件
  15. }
  16. }