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

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