update go-zero to v1.3.0

This commit is contained in:
kevin
2022-02-14 10:32:28 +08:00
parent 5d77380e69
commit bd6092ac10
5 changed files with 450 additions and 127 deletions

View File

@ -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"])