From c42d41cff85869b3c1f6cd5ae63251f4c190815e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?piexlMax=28=E5=A5=87=E6=B7=BC?= Date: Fri, 17 Oct 2025 11:12:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(deps):=20=E4=BF=AE=E5=A4=8D=E5=9C=A8?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B=E4=B8=BAfile=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=90=9C=E7=B4=A2=E6=9D=A1=E4=BB=B6=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/utils/autocode/template_funcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/autocode/template_funcs.go b/server/utils/autocode/template_funcs.go index da829454f..5cc370cc8 100644 --- a/server/utils/autocode/template_funcs.go +++ b/server/utils/autocode/template_funcs.go @@ -700,7 +700,7 @@ func GenerateSearchField(field systemReq.AutoCodeField) string { // 生成普通搜索字段 if field.FieldType == "enum" || field.FieldType == "picture" || field.FieldType == "pictures" || field.FieldType == "video" || - field.FieldType == "json" || field.FieldType == "richtext" || field.FieldType == "array" { + field.FieldType == "json" || field.FieldType == "richtext" || field.FieldType == "array" || field.FieldType == "file" { result = fmt.Sprintf("%s string `json:\"%s\" form:\"%s\"` ", field.FieldName, field.FieldJson, field.FieldJson) } else {