mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 18:00:24 +08:00
607fc3297a
* replace quote * rpc disable override main.go * reactor template * add model flag -style * add model flag -style * reactor model template name of error
30 lines
660 B
Go
30 lines
660 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 (
|
|
"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/tools/goctl/model/sql/builderx"
|
|
)
|
|
`
|
|
)
|