mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +08:00
27 lines
457 B
Plaintext
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)
|
|
}
|