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.

15 lines
447 B

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