From f08b509cba1d7ca8c4155fba2f66da1e4487a5ea Mon Sep 17 00:00:00 2001 From: "Mr.lee" Date: Tue, 7 Nov 2017 12:17:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=8E=9F=E5=A7=8B=E5=88=97=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E8=BF=BD=E5=8A=A0=E5=88=B0=E7=94=9F=E6=88=90=E7=9A=84?= =?UTF-8?q?xorm=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=90=8E=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xorm/go.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xorm/go.go b/xorm/go.go index 372ed28..1e534f0 100644 --- a/xorm/go.go +++ b/xorm/go.go @@ -261,6 +261,8 @@ func tag(table *core.Table, col *core.Column) string { nstr += ")" } res = append(res, nstr) + //将原列名称append到生成的xorm字符串后面 + res = append(res, "'"+col.Name+"'") var tags []string if genJson {