update package reference

This commit is contained in:
kevin
2020-08-08 16:40:10 +08:00
parent d19d25c72f
commit 0a7e0cce77
377 changed files with 881 additions and 1423 deletions

View File

@@ -4,8 +4,7 @@ import (
"fmt"
"os"
"zero/tools/modelctl/model"
"github.com/tal-tech/go-zero/tools/modelctl/model"
"github.com/urfave/cli"
)

View File

@@ -1,8 +1,6 @@
package modelgen
import (
"zero/core/stores/sqlx"
)
import "github.com/tal-tech/go-zero/core/stores/sqlx"
type (
FieldModel struct {

View File

@@ -5,8 +5,7 @@ import (
"fmt"
"strings"
"zero/core/lang"
"github.com/tal-tech/go-zero/core/lang"
"github.com/urfave/cli"
)

View File

@@ -10,7 +10,7 @@ import (
"strings"
"text/template"
"zero/tools/modelctl/model"
"github.com/tal-tech/go-zero/tools/modelctl/model"
)
var (

View File

@@ -7,8 +7,8 @@ import (
"strings"
"text/template"
"zero/tools/modelctl/model"
"zero/tools/modelctl/util"
"github.com/tal-tech/go-zero/tools/modelctl/model"
"github.com/tal-tech/go-zero/tools/modelctl/util"
)
type (
@@ -59,10 +59,10 @@ import (
"strings"
"time"
"zero/core/stores/redis"
"zero/core/stores/sqlx"
"zero/service/shared/builderx"
"zero/service/shared/cache"
"github.com/tal-tech/go-zero/core/stores/redis"
"github.com/tal-tech/go-zero/core/stores/sqlx"
"github.com/tal-tech/go-zero/service/shared/builderx"
"github.com/tal-tech/go-zero/service/shared/cache"
)
var (

View File

@@ -6,9 +6,9 @@ const (
import (
"errors"
{{if .WithCache}}"zero/core/stores/redis"
"zero/core/stores/sqlc"
"zero/core/stores/sqlx"{{end}}
{{if .WithCache}}"github.com/tal-tech/go-zero/core/stores/redis"
"github.com/tal-tech/go-zero/core/stores/sqlc"
"github.com/tal-tech/go-zero/core/stores/sqlx"{{end}}
)
{{if .WithCache}}
type CachedModel struct {