add log & fix gui

添加文档并且更新gui
This commit is contained in:
谢小军
2020-01-22 11:23:53 +08:00
parent 40f837aecf
commit 169edf0f50
8 changed files with 63 additions and 32 deletions

View File

@@ -105,7 +105,7 @@ func (m *_Model) genTableElement(cols []ColumusInfo) (el []genstruct.GenElement)
}
// json tag
if config.GetIsJSONTag() {
if config.GetIsWEBTag() {
if strings.EqualFold(v.Name, "id") {
tmp.AddTag(_tagJSON, "-")
} else {
@@ -149,7 +149,7 @@ func (m *_Model) genForeignKey(col ColumusInfo) (fklist []genstruct.GenElement)
tmp.AddTag(_tagGorm, "foreignkey:"+v.ColumnName)
// json tag
if config.GetIsJSONTag() {
if config.GetIsWEBTag() {
tmp.AddTag(_tagJSON, mybigcamel.UnMarshal(v.TableName)+"_list")
}