upload.go 377 B

12345678910111213141516171819
  1. package router
  2. import (
  3. "cold-delivery/app/admin/controller"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func init() {
  7. routerNoCheckRole = append(routerNoCheckRole, registerUploadRouter)
  8. }
  9. func registerUploadRouter(v1 *gin.RouterGroup) {
  10. r1 := v1.Group("")
  11. {
  12. cont := controller.UploadController{}
  13. r1.POST("/upload", cont.FilesUpload)
  14. r1.POST("/apk-upload", cont.ApkUpload)
  15. }
  16. }