chore: update goctl interface{} to any (#2819)
* chore: update goctl interface{} to any
* chore: update goctl interface{} to any
This commit is contained in:
@@ -28,7 +28,7 @@ func genFindOneByField(table Table, withCache, postgreSql bool) (*findOneCode, e
|
||||
for _, key := range table.UniqueCacheKey {
|
||||
in, paramJoinString, originalFieldString := convertJoin(key, postgreSql)
|
||||
|
||||
output, err := t.Execute(map[string]interface{}{
|
||||
output, err := t.Execute(map[string]any{
|
||||
"upperStartCamelObject": camelTableName,
|
||||
"upperField": key.FieldNameJoin.Camel().With("").Source(),
|
||||
"in": in,
|
||||
@@ -68,7 +68,7 @@ func genFindOneByField(table Table, withCache, postgreSql bool) (*findOneCode, e
|
||||
if len(inJoin) > 0 {
|
||||
in = inJoin.With(", ").Source()
|
||||
}
|
||||
output, err := t.Execute(map[string]interface{}{
|
||||
output, err := t.Execute(map[string]any{
|
||||
"upperStartCamelObject": camelTableName,
|
||||
"upperField": key.FieldNameJoin.Camel().With("").Source(),
|
||||
"in": in,
|
||||
@@ -88,7 +88,7 @@ func genFindOneByField(table Table, withCache, postgreSql bool) (*findOneCode, e
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out, err := util.With("findOneByFieldExtraMethod").Parse(text).Execute(map[string]interface{}{
|
||||
out, err := util.With("findOneByFieldExtraMethod").Parse(text).Execute(map[string]any{
|
||||
"upperStartCamelObject": camelTableName,
|
||||
"primaryKeyLeft": table.PrimaryCacheKey.VarLeft,
|
||||
"lowerStartCamelObject": stringx.From(camelTableName).Untitle(),
|
||||
|
||||
Reference in New Issue
Block a user