package main import ( "github.com/gin-gonic/gin" ) func main() { router := gin.Default() router.POST("/upload", UploadImage) router.POST("/uploads", UploadImages) router.Run(":8000") } //单张图片上传 func UploadImage(c *gin.Co…
package main import ( "github.com/gin-gonic/gin" ) func main() { router := gin.Default() router.POST("/upload", UploadImage) router.POST("/uploads", UploadImages) router.Run(":8000") } //单张图片上传 func UploadImage(c *gin.Co…