Skip to content

Commit

Permalink
fix: typo 代码生成数据时异常,使用了gen.WithoutContext 项 go-gorm#523
Browse files Browse the repository at this point in the history
  • Loading branch information
tr1v3r committed Jul 7, 2022
1 parent 6b318c4 commit 19c330c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/template/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const (
{{.QueryStructName}}Do
` + fields + `
}
` + tableMethod + asMethond + updateFieldMethod + getFieldMethod + fillFieldMapMethod + cloneMethod + relationship
` + tableMethod + asMethond + updateFieldMethod + getFieldMethod + fillFieldMapMethod + cloneMethod + relationship + defineMethodStruct

// TableQueryStructWithContext table query struct with context
TableQueryStructWithContext = createMethod + `
Expand Down

0 comments on commit 19c330c

Please sign in to comment.