add commit
This commit is contained in:
@@ -180,7 +180,7 @@ func buildFList(list *[]FList, key ColumnsKey, keyName, tp, colName string) {
|
|||||||
*list = append(*list, FList{
|
*list = append(*list, FList{
|
||||||
Key: key,
|
Key: key,
|
||||||
KeyName: keyName,
|
KeyName: keyName,
|
||||||
Kem: []FEm{FEm{
|
Kem: []FEm{{
|
||||||
Type: tp,
|
Type: tp,
|
||||||
ColName: colName,
|
ColName: colName,
|
||||||
ColStructName: getCamelName(colName),
|
ColStructName: getCamelName(colName),
|
||||||
|
|||||||
@@ -192,6 +192,9 @@ func (m *_Model) genTableElement(cols []ColumnsInfo) (el []genstruct.GenElement)
|
|||||||
if len(v.Gormt) > 0 {
|
if len(v.Gormt) > 0 {
|
||||||
tmp.AddTag(_tagGorm, v.Gormt)
|
tmp.AddTag(_tagGorm, v.Gormt)
|
||||||
}
|
}
|
||||||
|
if len(v.Notes) > 0 {
|
||||||
|
tmp.AddTag(_tagGorm, fmt.Sprintf("comment:'%v'", v.Notes))
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
tmp.AddTag(_tagGorm, "column:"+v.Name)
|
tmp.AddTag(_tagGorm, "column:"+v.Name)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user