12345678910111213141516171819 |
- package template
- // Types defines a template for types in model
- var Types = `
- type (
- {{.upperStartCamelObject}}Model interface{
- {{.method}}
- }
- default{{.upperStartCamelObject}}Model struct {
- {{if .withCache}}sqlc.CachedConn{{else}}conn sqlx.SqlConn{{end}}
- table string
- }
- {{.upperStartCamelObject}} struct {
- {{.fields}}
- }
- )
- `
|