🎨 优化app端文件上传接口

This commit is contained in:
2025-07-31 02:41:39 +08:00
parent 9c51f0cbe4
commit 82c6003b4a
6 changed files with 48 additions and 22 deletions

View File

@@ -32,6 +32,7 @@ func (b *FileUploadAndDownloadApi) UploadFile(c *gin.Context) {
response.FailWithMessage("接收文件失败", c)
return
}
file, err = fileUploadAndDownloadService.UploadFile(header, noSave, classId) // 文件上传后拿到文件路径
if err != nil {
global.GVA_LOG.Error("上传文件失败!", zap.Error(err))