Skip to content

Commit

Permalink
add commit
Browse files Browse the repository at this point in the history
  • Loading branch information
xxjwxc committed Jun 15, 2022
1 parent b8cbd4f commit dcf37c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/view/model/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
3 changes: 3 additions & 0 deletions data/view/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit dcf37c3

Please sign in to comment.