syntax = "v1" info( title: "type title here" desc: "type desc here" author: "type author here" email: "type email here" version: "type version here" ) type CallbackRequest { MsgSignature string `form:"msg_signature"` Timestamp string `form:"timestamp"` Nonce string `form:"nonce"` Echostr string `form:"echostr"` } type CallbackMsgRequest { MsgSignature string `form:"msg_signature"` Timestamp string `form:"timestamp"` Nonce string `form:"nonce"` } type CallbackResponse { Code int `json:"code"` Msg string `json:"msg"` Data string `json:"data"` } @server( // jwt: Auth group: callback timeout: 3s ) service callback { @handler callbackHandler get /callback (CallbackRequest) @handler callbackMsgHandler post /callback (CallbackMsgRequest) }