Files
go-zero/tools/goctl/api/gogen/testdata/has_comment_api_test.api
2024-03-30 11:09:54 +00:00

27 lines
457 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)
@doc(
summary: "comment comment comment"
)
@handler NoResponseHandler
get /greet/get (Request)
}