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

@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"zero/tools/goctl/api/spec"
"github.com/tal-tech/go-zero/tools/goctl/api/spec"
)
type (

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
"zero/tools/goctl/api/spec"
"github.com/tal-tech/go-zero/tools/goctl/api/spec"
)
const (

View File

@@ -7,7 +7,7 @@ import (
"io"
"io/ioutil"
"zero/tools/goctl/api/spec"
"github.com/tal-tech/go-zero/tools/goctl/api/spec"
)
type Parser struct {

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"zero/tools/goctl/api/spec"
"github.com/tal-tech/go-zero/tools/goctl/api/spec"
)
type rootState struct {

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
"zero/tools/goctl/api/spec"
"github.com/tal-tech/go-zero/tools/goctl/api/spec"
)
type serviceState struct {

View File

@@ -1,6 +1,6 @@
package parser
import "zero/tools/goctl/api/spec"
import "github.com/tal-tech/go-zero/tools/goctl/api/spec"
type state interface {
process(api *spec.ApiSpec) (state, error)

View File

@@ -9,7 +9,7 @@ import (
"sort"
"strings"
"zero/tools/goctl/api/spec"
"github.com/tal-tech/go-zero/tools/goctl/api/spec"
)
var (

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"strings"
"zero/tools/goctl/api/spec"
"zero/tools/goctl/util"
"github.com/tal-tech/go-zero/tools/goctl/api/spec"
"github.com/tal-tech/go-zero/tools/goctl/util"
)
type typeState struct {

View File

@@ -6,7 +6,7 @@ import (
"regexp"
"strings"
"zero/tools/goctl/api/spec"
"github.com/tal-tech/go-zero/tools/goctl/api/spec"
)
const (

View File

@@ -4,9 +4,10 @@ import (
"errors"
"fmt"
"strings"
"zero/core/stringx"
"zero/tools/goctl/api/spec"
"zero/tools/goctl/api/util"
"github.com/tal-tech/go-zero/core/stringx"
"github.com/tal-tech/go-zero/tools/goctl/api/spec"
"github.com/tal-tech/go-zero/tools/goctl/api/util"
)
func (p *Parser) validate(api *spec.ApiSpec) (err error) {