update package reference
This commit is contained in:
@@ -4,8 +4,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"zero/tools/modelctl/model"
|
||||
|
||||
"github.com/tal-tech/go-zero/tools/modelctl/model"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package modelgen
|
||||
|
||||
import (
|
||||
"zero/core/stores/sqlx"
|
||||
)
|
||||
import "github.com/tal-tech/go-zero/core/stores/sqlx"
|
||||
|
||||
type (
|
||||
FieldModel struct {
|
||||
|
||||
@@ -5,8 +5,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"zero/core/lang"
|
||||
|
||||
"github.com/tal-tech/go-zero/core/lang"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"strings"
|
||||
"text/template"
|
||||
|
||||
"zero/tools/modelctl/model"
|
||||
"github.com/tal-tech/go-zero/tools/modelctl/model"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -4,10 +4,9 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"zero/core/logx"
|
||||
"zero/tools/modelctl/model/configtemplategen"
|
||||
"zero/tools/modelctl/model/modelgen"
|
||||
|
||||
"github.com/tal-tech/go-zero/core/logx"
|
||||
configgen "github.com/tal-tech/go-zero/tools/modelctl/model/configtemplategen"
|
||||
"github.com/tal-tech/go-zero/tools/modelctl/model/modelgen"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user