chore: update go-zero version (#5093)

Signed-off-by: kevin <wanjunfeng@gmail.com>
This commit is contained in:
Kevin Wan
2025-08-17 17:00:15 +08:00
committed by GitHub
parent a5d42e20d5
commit a81d898408
16 changed files with 99 additions and 107 deletions

View File

@@ -36,15 +36,15 @@ func genVars(table Table, withCache, postgreSql bool) (string, error) {
"postgreSql": postgreSql,
"data": table,
"ignoreColumns": func() string {
var set = collection.NewSet()
var set = collection.NewSet[string]()
for _, c := range table.ignoreColumns {
if postgreSql {
set.AddStr(fmt.Sprintf(`"%s"`, c))
set.Add(fmt.Sprintf(`"%s"`, c))
} else {
set.AddStr(fmt.Sprintf("\"`%s`\"", c))
set.Add(fmt.Sprintf("\"`%s`\"", c))
}
}
list := set.KeysStr()
list := set.Keys()
sort.Strings(list)
return strings.Join(list, ", ")
}(),