Files
go-zero/tools/goctl/api/gogen/testdata/has_comment_api_test.api
anqiansong 16c61c6657 chore: Embed unit test data (#1812)
* Embed unit test data

* Add testdata

Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-21 21:49:09 +08:00

20 lines
335 B
Plaintext

type Inline struct {
}
type Request struct {
Inline
Name string `path:"name,options=you|me"` // name in path
}
type Response struct {
Message string `json:"msg"` // message
}
service A-api {
@doc ("helloworld")
@server(
handler: GreetHandler
)
get /greet/from/:name(Request) returns (Response)
}