From af76f6b50d59239b3aa1e9d1ad555ea618718b8e Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Fri, 28 Mar 2025 19:21:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6=E5=A2=9E?= =?UTF-8?q?=E5=88=A0=E6=94=B9=E6=9F=A5=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/file.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handler/file.go b/handler/file.go index dd2bb00..60fa2e9 100644 --- a/handler/file.go +++ b/handler/file.go @@ -23,9 +23,9 @@ func SetUpFileGroup(router *gin.Engine) { } type GetUserFileListReq struct { - FileID int `json:"file_id"` // 文件ID - FileName string `json:"file_name"` // 文件名search时必须 - Type string `json:"type"` // all,search + FileID int `json:"file_id" form:"file_id"` // 文件ID + FileName string `json:"file_name" form:"file_name"` // 文件名search时必须 + Type string `json:"type" form:"type"` // all,search } func GetUserFileList(c *gin.Context) {