chore: Embed unit test data (#1812)
* Embed unit test data * Add testdata Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
20
tools/goctl/api/gogen/testdata/has_comment_api_test.api
vendored
Normal file
20
tools/goctl/api/gogen/testdata/has_comment_api_test.api
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user