rename file and function name (#74)

This commit is contained in:
miaogaolin
2020-09-16 13:30:47 +08:00
committed by GitHub
parent ecdae2477e
commit 68335ada54
2 changed files with 2 additions and 2 deletions

View File

@@ -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()

View File

@@ -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 {
return "", err
}