方法列表
修改接收者
admin
RPC
updateMessageReceivers (UpdateMessageReceiversRequest) returns (RPCSuccess)
HTTP
POST /MessageReceiverService/updateMessageReceivers
输入对象:UpdateMessageReceiversRequest:
{ string role; // 集群ID int64 nodeClusterId; // 节点ID int64 nodeId; // 服务ID(网站ID) int64 serverId; bytes paramsJSON; // type => options,type为recipient或者group map<string, RecipientOptions> recipientOptions; RecipientOption { int64 messageRecipientId; int64 messageRecipientGroupId; } RecipientOptions { []RecipientOption recipientOptions; } }
输出对象:RPCSuccess:
{ }
查找接收者
admin
RPC
findAllEnabledMessageReceivers (FindAllEnabledMessageReceiversRequest) returns (FindAllEnabledMessageReceiversResponse)
HTTP
POST /MessageReceiverService/findAllEnabledMessageReceivers
输入对象:FindAllEnabledMessageReceiversRequest:
{ // 集群角色:node 或 dns string role; // 集群ID int64 nodeClusterId; // 节点ID int64 nodeId; // 网站ID int64 serverId; }
输出对象:FindAllEnabledMessageReceiversResponse:
根据接收人查找关联的接收者
admin
RPC
findAllEnabledMessageReceiversWithMessageRecipientId (FindAllEnabledMessageReceiversWithMessageRecipientIdRequest) returns (FindAllEnabledMessageReceiversWithMessageRecipientIdResponse)
HTTP
POST /MessageReceiverService/findAllEnabledMessageReceiversWithMessageRecipientId
输入对象:FindAllEnabledMessageReceiversWithMessageRecipientIdRequest:
{ // 关联的接收人ID int64 messageRecipientId; }
输出对象:FindAllEnabledMessageReceiversWithMessageRecipientIdResponse:
删除接收者
admin
RPC
deleteMessageReceiver (DeleteMessageReceiverRequest) returns (RPCSuccess)
HTTP
POST /MessageReceiverService/deleteMessageReceiver
输入对象:DeleteMessageReceiverRequest:
{ // 接收者ID int64 messageReceiverId; }
输出对象:RPCSuccess:
{ }
计算接收者数量
admin
RPC
countAllEnabledMessageReceivers (CountAllEnabledMessageReceiversRequest) returns (RPCCountResponse)
HTTP
POST /MessageReceiverService/countAllEnabledMessageReceivers
输入对象:CountAllEnabledMessageReceiversRequest:
{ // 集群角色:node 或 dns string role; // 集群ID int64 nodeClusterId; // 节点ID int64 nodeId; // 网站ID int64 serverId; }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }