fix(goctl): multi imports the api cause redeclared error in types.go (#3988)

Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
This commit is contained in:
Jayson Wang
2024-04-04 19:39:24 +08:00
committed by GitHub
parent b20ec8aedb
commit f138cc792e
6 changed files with 98 additions and 12 deletions

View File

@@ -0,0 +1,17 @@
import "importApi.api"
type AnotherRequest {
Name string `path:"name,options=you|me"`
}
type AnotherResponse {
Message string `json:"message"` // message
}
@server(
group: greet
)
service A-api {
@handler AnotherImportHandler
get /greet/from/another/:name(AnotherRequest) returns (AnotherResponse)
}