方法列表
计算未读消息数
admin
user
RPC
countUnreadMessages (CountUnreadMessagesRequest) returns (RPCCountResponse)
HTTP
POST /MessageService/countUnreadMessages
输入对象:CountUnreadMessagesRequest:
{ }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页未读消息
admin
user
RPC
listUnreadMessages (ListUnreadMessagesRequest) returns (ListUnreadMessagesResponse)
HTTP
POST /MessageService/listUnreadMessages
输入对象:ListUnreadMessagesRequest:
{ // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListUnreadMessagesResponse:
设置消息已读状态
admin
user
RPC
updateMessageRead (UpdateMessageReadRequest) returns (RPCSuccess)
HTTP
POST /MessageService/updateMessageRead
输入对象:UpdateMessageReadRequest:
输出对象:RPCSuccess:
{ }
设置一组消息已读状态
admin
user
RPC
updateMessagesRead (UpdateMessagesReadRequest) returns (RPCSuccess)
HTTP
POST /MessageService/updateMessagesRead
输入对象:UpdateMessagesReadRequest:
输出对象:RPCSuccess:
{ }
设置所有消息为已读
admin
user
RPC
updateAllMessagesRead (UpdateAllMessagesReadRequest) returns (RPCSuccess)
HTTP
POST /MessageService/updateAllMessagesRead
输入对象:UpdateAllMessagesReadRequest:
{ }
输出对象:RPCSuccess:
{ }