mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 16:30:01 +08:00
feat: goctl model Add a new method hasField (#5484)
This commit is contained in:
@@ -16,6 +16,7 @@ func genFindOne(table Table, withCache, postgreSql bool) (string, string, error)
|
||||
|
||||
output, err := util.With("findOne").
|
||||
Parse(text).
|
||||
AddFunc("hasField", hasField(table)).
|
||||
Execute(map[string]any{
|
||||
"withCache": withCache,
|
||||
"upperStartCamelObject": camel,
|
||||
|
||||
Reference in New Issue
Block a user