go-zero/tools/goctl/quickstart/idl/greet.api

11 lines
123 B
Plaintext

syntax = "v1"
type resp {
msg string `json:"msg"`
}
service greet {
@handler ping
get /ping returns (resp)
}