diff --git a/README.ZH_CN.md b/README.ZH_CN.md index 6abb50ca..165d60a0 100644 --- a/README.ZH_CN.md +++ b/README.ZH_CN.md @@ -1837,7 +1837,7 @@ g.ApplyInterface(func(method model.Method) {}, model.User{}, g.GenerateModel("co // {{if name !=""}} // name=@name // {{end}} -methond(name string) (gen.T,error) +method(name string) (gen.T,error) ``` SQL模板使用案例: @@ -1874,7 +1874,7 @@ select * from @@table where // {{where}} // id=@id // {{end}} -methond(id int) error +method(id int) error ``` SQL模板使用案例: @@ -1903,7 +1903,7 @@ select * from @@table // name=@name // {{end}} // where id=@id -methond(name string,id int) error +method(name string,id int) error ``` SQL模板使用案例: @@ -1932,7 +1932,7 @@ where id=@id // {{for _,name:=range names}} // and name=@name // {{end}} -methond(names []string) (gen.T,error) +method(names []string) (gen.T,error) ``` SQL 模板使用案例: diff --git a/README.md b/README.md index f175f0d2..fcada9db 100644 --- a/README.md +++ b/README.md @@ -1831,7 +1831,7 @@ Use case in raw SQL: // {{if name !=""}} // name=@name // {{end}} -methond(name string) (gen.T,error) +method(name string) (gen.T,error) ``` Use case in raw SQL template: @@ -1868,7 +1868,7 @@ Use case in raw SQL // {{where}} // id=@id // {{end}} -methond(id int) error +method(id int) error ``` Use case in raw SQL template @@ -1897,7 +1897,7 @@ Use case in raw SQL // name=@name // {{end}} // where id=@id -methond(name string,id int) error +method(name string,id int) error ``` Use case in raw SQL template @@ -1925,7 +1925,7 @@ Use case in raw SQL: // {{for _,name:=range names}} // and name=@name // {{end}} -methond(names []string) (gen.T,error) +method(names []string) (gen.T,error) ``` Use case in raw SQL template: