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) }