tag insert

列注释添加tag
This commit is contained in:
xxj
2020-12-07 19:06:12 +08:00
parent e9ecd38609
commit a97443b09f
10 changed files with 18 additions and 34 deletions

View File

@@ -108,8 +108,8 @@ func (m *_Model) genTableElement(cols []ColumnsInfo) (el []genstruct.GenElement)
}
}
// default tag
if len(v.Default) > 0 {
tmp.AddTag(_tagGorm, "default:"+v.Default)
if len(v.Gormt) > 0 {
tmp.AddTag(_tagGorm, v.Gormt)
}
// json tag