mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 18:00:24 +08:00
7e61555d42
* merge upstream * optimize insert logic * reactor functions
28 lines
637 B
Go
28 lines
637 B
Go
package template
|
|
|
|
var (
|
|
Imports = `import (
|
|
"database/sql"
|
|
"fmt"
|
|
"strings"
|
|
{{if .time}}"time"{{end}}
|
|
|
|
"github.com/tal-tech/go-zero/core/stores/cache"
|
|
"github.com/tal-tech/go-zero/core/stores/sqlc"
|
|
"github.com/tal-tech/go-zero/core/stores/sqlx"
|
|
"github.com/tal-tech/go-zero/core/stringx"
|
|
"github.com/tal-tech/go-zero/tools/goctl/model/sql/builderx"
|
|
)
|
|
`
|
|
ImportsNoCache = `import (
|
|
"strings"
|
|
{{if .time}}"time"{{end}}
|
|
|
|
"github.com/tal-tech/go-zero/core/stores/sqlc"
|
|
"github.com/tal-tech/go-zero/core/stores/sqlx"
|
|
"github.com/tal-tech/go-zero/core/stringx"
|
|
"github.com/tal-tech/go-zero/tools/goctl/model/sql/builderx"
|
|
)
|
|
`
|
|
)
|