(goctl): fix unresolved type if linked api imported (#3881)

This commit is contained in:
kesonan
2024-01-29 21:05:08 +08:00
committed by GitHub
parent f54c2e384f
commit 3331954a78
7 changed files with 47 additions and 12 deletions

View File

@@ -0,0 +1,6 @@
syntax = "v1"
type Baz {
Foo string `json:"foo"`
Baz bool `json:"bar"`
}

View File

@@ -0,0 +1,10 @@
syntax = "v1"
import "request.api"
type Bar {
Foo int `json:"foo"`
Bar bool `json:"bar"`
Baz
Qux map[string]string `json:"qux"`
}

View File

@@ -0,0 +1,12 @@
syntax = "v1"
import "base/request.api"
import "base/response.api"
type Foo {}
service demo {
@handler handlerName
get /users/id/:userId (Baz) returns (Bar)
}