mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 09:40:24 +08:00
16c61c6657
* Embed unit test data * Add testdata Co-authored-by: anqiansong <anqiansong@bytedance.com>
12 lines
229 B
Plaintext
12 lines
229 B
Plaintext
type Request struct {
|
|
Name string `path:"name,options=you|me"`
|
|
}
|
|
|
|
type Response struct {
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
service A-api {
|
|
@handler GreetHandler
|
|
get /greet/from/:name(Request) returns (Response)
|
|
} |