fusenapi/goctl_template_backend/newapi/newtemplate.tpl
2023-06-25 18:30:39 +08:00

13 lines
217 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)
}