文件上传功能

This commit is contained in:
junleea 2024-08-30 22:31:08 +08:00
parent 27972c1619
commit 75fdf7c1d8
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ func UploadFile(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"error": "save file info failed", "code": proto.SaveFileInfoFailed, "message": "failed"})
return
}
c.JSON(http.StatusOK, gin.H{"code": proto.SuccessCode, "message": "success"})
c.JSON(http.StatusOK, gin.H{"code": proto.SuccessCode, "message": "success", "data": fileID})
}