From ff7e002049c9472a88848c27195a5826e20e5c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?piexlMax=28=E5=A5=87=E6=B7=BC?= Date: Wed, 2 Jul 2025 10:32:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Drichtext=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8Bgorm=E6=A0=87=E7=AD=BE=E5=A4=9A?= =?UTF-8?q?=E4=B8=80=E4=B8=AA"=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 28e347d7..97b48c35 100644 --- a/server/utils/autocode/template_funcs.go +++ b/server/utils/autocode/template_funcs.go @@ -70,7 +70,7 @@ func GenerateField(field systemReq.AutoCodeField) string { result = fmt.Sprintf(`%s datatypes.JSON `+"`"+`%s swaggertype:"array,object"`+"`"+``, field.FieldName, tagContent) case "richtext": - tagContent := fmt.Sprintf(`json:"%s" form:"%s" gorm:"%s"`, + tagContent := fmt.Sprintf(`json:"%s" form:"%s" gorm:"%s`, field.FieldJson, field.FieldJson, gormTag) result = fmt.Sprintf(`%s *string `+"`"+`%stype:text;"`+"`"+``,