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>
18 lines
386 B
Plaintext
18 lines
386 B
Plaintext
// syntax doc
|
|
syntax = "v1" // syntax comment
|
|
|
|
// type doc
|
|
type Request {
|
|
Name string `path:"name,options=you|me"`
|
|
}
|
|
|
|
type Response {
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
// service doc
|
|
service greet-api {
|
|
// handler doc
|
|
@handler GreetHandler // handler comment
|
|
get /from/:name(Request) returns (Response);
|
|
} |