fix generate api demo (#19)

Co-authored-by: kingxt <dream4kingxt@163.com>
master
kingxt 4 years ago committed by GitHub
parent 0b6a13fe84
commit 0efa28ddbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,29 +19,24 @@ const apiTemplate = `info(
email: {{.gitEmail}}
)
type request struct{
type request struct {
// TODO: add members here and delete this comment
}
type response struct{
type response struct {
// TODO: add members here and delete this comment
}
@server(
port: // TODO: add port here and delete this comment
)
service {{.serviceName}} {
@server(
handler: // TODO: set handler name and delete this comment
)
// TODO: edit the below line
// get /users/id/:userId(request) returns(response)
get /users/id/:userId(request) returns(response)
@server(
handler: // TODO: set handler name and delete this comment
)
// TODO: edit the below line
// post /users/create(request)
post /users/create(request)
}
`

Loading…
Cancel
Save