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.
|
package upload
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"niupicUpload/controller"
|
|
)
|
|
|
|
/*
|
|
*
|
|
@author: sre
|
|
@date: 2022/8/19 0019
|
|
@desc: todo
|
|
*
|
|
*/
|
|
func Upload(r *gin.Engine) *gin.Engine {
|
|
//UploadOne
|
|
imagec := controller.NewImageController()
|
|
r.POST("/api/upload", imagec.UploadNiupic)
|
|
return r
|
|
}
|