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
629 B

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