Skip to content

Commit

Permalink
Docs: fix typo in README.ZH_CN.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lluckyboi authored Jul 15, 2022
1 parent 4b39e53 commit fab77ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.ZH_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func main() {
// apply basic crud api on structs or table models which is specified by table name with function
// GenerateModel/GenerateModelAs. And generator will generate table models' code when calling Excute.
// 想对已有的model生成crud等基础方法可以直接指定model struct ,例如model.User{}
// 如果是想直接生成表的model和crud方法,则可以指定标名称,例如g.GenerateModel("company")
// 如果是想直接生成表的model和crud方法,则可以指定表的名称,例如g.GenerateModel("company")
// 想自定义某个表生成特性,比如struct的名称/字段类型/tag等,可以指定opt,例如g.GenerateModel("company",gen.FieldIgnore("address")), g.GenerateModelAs("people", "Person", gen.FieldIgnore("address"))
g.ApplyBasic(model.User{}, g.GenerateModel("company"), g.GenerateModelAs("people", "Person", gen.FieldIgnore("address")))

Expand Down

0 comments on commit fab77ba

Please sign in to comment.