12345678910111213141516171819202122232425262728293031 |
- package template
- var (
- // Imports defines a import template for model in cache case
- Imports = `import (
- "database/sql"
- "fmt"
- "strings"
- {{if .time}}"time"{{end}}
- "git.i2edu.net/i2/go-zero/core/stores/cache"
- "git.i2edu.net/i2/go-zero/core/stores/sqlc"
- "git.i2edu.net/i2/go-zero/core/stores/sqlx"
- "git.i2edu.net/i2/go-zero/core/stringx"
- "git.i2edu.net/i2/go-zero/tools/goctl/model/sql/builderx"
- )
- `
- // ImportsNoCache defines a import template for model in normal case
- ImportsNoCache = `import (
- "database/sql"
- "fmt"
- "strings"
- {{if .time}}"time"{{end}}
- "git.i2edu.net/i2/go-zero/core/stores/sqlc"
- "git.i2edu.net/i2/go-zero/core/stores/sqlx"
- "git.i2edu.net/i2/go-zero/core/stringx"
- "git.i2edu.net/i2/go-zero/tools/goctl/model/sql/builderx"
- )
- `
- )
|