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

@@ -142,7 +142,7 @@ func (m *mysqlModel) getTableElement(orm *mysqldb.MySqlDB, tab string) (el []mod
var tmp model.ColumnsInfo
tmp.Name = v.Field
tmp.Type = v.Type
FixElementNote(&tmp, v.Desc)
FixElementTag(&tmp, v.Desc) // 分析表注释
// keys
if keylist, ok := KeyColumnMp[v.Field]; ok { // maybe have index or key