support goctl version to 1.1.3
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user