update go-zero to v1.3.0
This commit is contained in:
@ -6,10 +6,10 @@ import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
|
||||
plugin2 "github.com/tal-tech/go-zero/tools/goctl/plugin"
|
||||
"github.com/zeromicro/go-zero/tools/goctl/plugin"
|
||||
)
|
||||
|
||||
func Do(filename string, host string, basePath string, in *plugin2.Plugin) error {
|
||||
func Do(filename string, host string, basePath string, in *plugin.Plugin) error {
|
||||
swagger, err := applyGenerate(in, host, basePath)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
|
@ -9,8 +9,8 @@ import (
|
||||
"strings"
|
||||
"unsafe"
|
||||
|
||||
"github.com/tal-tech/go-zero/tools/goctl/api/spec"
|
||||
plugin2 "github.com/tal-tech/go-zero/tools/goctl/plugin"
|
||||
"github.com/zeromicro/go-zero/tools/goctl/api/spec"
|
||||
"github.com/zeromicro/go-zero/tools/goctl/plugin"
|
||||
)
|
||||
|
||||
var strColon = []byte(":")
|
||||
@ -25,7 +25,7 @@ const (
|
||||
equalToken = "="
|
||||
)
|
||||
|
||||
func applyGenerate(p *plugin2.Plugin, host string, basePath string) (*swaggerObject, error) {
|
||||
func applyGenerate(p *plugin.Plugin, host string, basePath string) (*swaggerObject, error) {
|
||||
title, _ := strconv.Unquote(p.Api.Info.Properties["title"])
|
||||
version, _ := strconv.Unquote(p.Api.Info.Properties["version"])
|
||||
desc, _ := strconv.Unquote(p.Api.Info.Properties["desc"])
|
||||
|
Reference in New Issue
Block a user