add commit

master
xxj 2 years ago
parent b8cbd4fb30
commit dcf37c3802

@ -180,7 +180,7 @@ func buildFList(list *[]FList, key ColumnsKey, keyName, tp, colName string) {
*list = append(*list, FList{
Key: key,
KeyName: keyName,
Kem: []FEm{FEm{
Kem: []FEm{{
Type: tp,
ColName: colName,
ColStructName: getCamelName(colName),

@ -192,6 +192,9 @@ func (m *_Model) genTableElement(cols []ColumnsInfo) (el []genstruct.GenElement)
if len(v.Gormt) > 0 {
tmp.AddTag(_tagGorm, v.Gormt)
}
if len(v.Notes) > 0 {
tmp.AddTag(_tagGorm, fmt.Sprintf("comment:'%v'", v.Notes))
}
} else {
tmp.AddTag(_tagGorm, "column:"+v.Name)
}

Loading…
Cancel
Save