@ -9,7 +9,7 @@ import (
"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)
var list []string
camelTableName := table.Name.ToCamel()
@ -162,7 +162,7 @@ func (g *defaultGenerator) genModel(in parser.Table, withCache bool) (string, er
return "", err
}
findOneByFieldCode, err := genFineOneByField(table, withCache)
findOneByFieldCode, err := genFindOneByField(table, withCache)
if err != nil {