mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-08 23:50:00 +08:00
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kevwan <1918356+kevwan@users.noreply.github.com>
18 lines
275 B
Plaintext
Executable File
18 lines
275 B
Plaintext
Executable File
type Request {
|
|
Name string `path:"name,options=you|me"`
|
|
}
|
|
|
|
type Response {
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
@server(
|
|
jwt: Auth
|
|
jwtTransition: Trans
|
|
middleware: TokenValidate
|
|
)
|
|
service A-api {
|
|
@handler GreetHandler
|
|
get /greet/from/:name(Request) returns (Response)
|
|
}
|