support goctl version to 1.1.3

This commit is contained in:
MaxToby
2021-01-16 20:44:15 +08:00
parent d06684494a
commit 3ccab1b039
8 changed files with 74 additions and 67 deletions

View File

@ -4,20 +4,9 @@ import (
"bytes"
"encoding/json"
"github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor"
"github.com/tal-tech/go-zero/tools/goctl/api/spec"
"reflect"
)
type (
Plugin struct {
Api *spec.ApiSpec
Style string
Dir string
ParentPackage string
FileName string
}
)
var (
swaggerMapTypes = map[string]reflect.Kind{
"string": reflect.String,