|
@@ -21,7 +21,7 @@ type AiFileController struct {
|
|
|
|
|
|
// @Title 文件上传
|
|
|
// @Description 文件上传接口
|
|
|
-// @Param file query file true "文件"
|
|
|
+// @Param File query file true "文件"
|
|
|
// @Success 200 {object} models.ResourceResp
|
|
|
// @router /file/upload [post]
|
|
|
func (this *AiFileController) FileUpload() {
|
|
@@ -30,7 +30,7 @@ func (this *AiFileController) FileUpload() {
|
|
|
this.Data["json"] = br
|
|
|
this.ServeJSON()
|
|
|
}()
|
|
|
- f, h, err := this.GetFile("file")
|
|
|
+ f, h, err := this.GetFile("File")
|
|
|
if err != nil {
|
|
|
br.Msg = "获取资源信息失败"
|
|
|
br.ErrMsg = "获取资源信息失败,Err:" + err.Error()
|