mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-27 20:38:41 +08:00
16 lines
274 B
Plaintext
16 lines
274 B
Plaintext
|
type Request struct {
|
||
|
Name string `path:"name,options=you|me"`
|
||
|
}
|
||
|
|
||
|
type Response struct {
|
||
|
Message string `json:"message"`
|
||
|
}
|
||
|
|
||
|
@server(
|
||
|
jwt: Auth
|
||
|
signature: true
|
||
|
)
|
||
|
service A-api {
|
||
|
@handler GreetHandler
|
||
|
get /greet/from/:name(Request) returns (Response)
|
||
|
}
|