rename file and function name (#74)

master
miaogaolin 4 years ago committed by GitHub
parent ecdae2477e
commit 68335ada54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,7 +9,7 @@ import (
"github.com/tal-tech/go-zero/tools/goctl/util/stringx" "github.com/tal-tech/go-zero/tools/goctl/util/stringx"
) )
func genFineOneByField(table Table, withCache bool) (string, error) { func genFindOneByField(table Table, withCache bool) (string, error) {
t := util.With("findOneByField").Parse(template.FindOneByField) t := util.With("findOneByField").Parse(template.FindOneByField)
var list []string var list []string
camelTableName := table.Name.ToCamel() camelTableName := table.Name.ToCamel()

@ -162,7 +162,7 @@ func (g *defaultGenerator) genModel(in parser.Table, withCache bool) (string, er
return "", err return "", err
} }
findOneByFieldCode, err := genFineOneByField(table, withCache) findOneByFieldCode, err := genFindOneByField(table, withCache)
if err != nil { if err != nil {
return "", err return "", err
} }

Loading…
Cancel
Save