123456789101112131415161718192021222324252627282930313233343536373839404142 |
- syntax = "v1"
- info(
- title: "type title here"
- desc: "type desc here"
- author: "type author here"
- email: "type email here"
- version: "type version here"
- )
- type request {
- // TODO: add members here and delete this comment
- }
- type response {
- // TODO: add members here and delete this comment
- }
- type countReq {
- ReadType int64 `json:"readType"` // 已读类型
- MsgType int64 `json:"msgType"` // 消息类型
- SendId string `json:"sendId"` // 发送方id
- ReceiveId string `json:"receiveId"` // 接收方id
- }
- type countRes {
- }
- type getReq {
- }
- type getRes {
- ReadType int64 `json:"readType"` // 已读类型
- MsgType int64 `json:"msgType"` // 消息类型
- SendId string `json:"sendId"` // 发送方id
- ReceiveId string `json:"receiveId"` // 接收方id
- }
- service messageCenter {
- //
- @handler count
- get /api/message/count (countReq) returns (countRes)
- //
- @handler lastMessage
- get /api/message/last (getReq) returns (getRes)
- }
|