mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 18:00:24 +08:00
13 lines
257 B
Smarty
13 lines
257 B
Smarty
type Request {
|
|
Name string ` + "`" + `path:"name,options=you|me"` + "`" + `
|
|
}
|
|
|
|
type Response {
|
|
Message string ` + "`" + `json:"message"` + "`" + `
|
|
}
|
|
|
|
service {{.name}}-api {
|
|
@handler {{.handler}}Handler
|
|
get /from/:name(Request) returns (Response)
|
|
}
|