mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-26 11:28:46 +08:00
69a4d213a3
* fix #1205 * move builder into stores * remove xrom * Remove unused code * Remove unused code * refactor builderx to builder Co-authored-by: anqiansong <anqiansong@bytedance.com>
32 lines
772 B
Go
32 lines
772 B
Go
package template
|
|
|
|
var (
|
|
// Imports defines a import template for model in cache case
|
|
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/core/stores/builderx"
|
|
)
|
|
`
|
|
// ImportsNoCache defines a import template for model in normal case
|
|
ImportsNoCache = `import (
|
|
"database/sql"
|
|
"fmt"
|
|
"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/core/stores/builderx"
|
|
)
|
|
`
|
|
)
|