| 1234567891011121314151617181920212223242526 |
- syntax = "v1"
- info(
- title: // TODO: add title
- desc: // TODO: add description
- author: "double.huang"
- email: "2637309949@qq.com"
- )
- type request {
- // TODO: add members here and delete this comment
- Id int64 `form:"id"`
- }
- type response {
- // TODO: add members here and delete this comment
- Id int64 `json:"id"`
- }
- service i2bill-api {
- @handler GetUser // TODO: set handler name and delete this comment
- get /users/id/:userId(request) returns(response)
-
- @handler CreateUser // TODO: set handler name and delete this comment
- post /users/create(request)
- }
|