download file
This commit is contained in:
parent
5228a4270e
commit
9e5ca5e897
|
|
@ -26,7 +26,7 @@ func SetUpToolGroup(router *gin.Engine) {
|
||||||
|
|
||||||
//文件上传、下载
|
//文件上传、下载
|
||||||
toolGroup.POST("/upload", UploadFile)
|
toolGroup.POST("/upload", UploadFile)
|
||||||
toolGroup.POST("/download", DownloadFile)
|
toolGroup.GET("/download", DownloadFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
func UploadFile(c *gin.Context) {
|
func UploadFile(c *gin.Context) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue