方法列表
创建消息任务
admin
RPC
createMessageTask (CreateMessageTaskRequest) returns (CreateMessageTaskResponse)
HTTP
POST /MessageTaskService/createMessageTask
输入对象:CreateMessageTaskRequest:
{ // 接收人ID int64 messageRecipientId; // 媒介实例ID int64 messageMediaInstanceId; // 用户标识 string user; // 标题 string subject; // 内容 string body; // 是否优先发送 bool isPrimary; }
输出对象:CreateMessageTaskResponse:
{ // 消息任务ID int64 messageTaskId; }
删除消息任务
admin
RPC
deleteMessageTask (DeleteMessageTaskRequest) returns (RPCSuccess)
HTTP
POST /MessageTaskService/deleteMessageTask
输入对象:DeleteMessageTaskRequest:
{ // 消息任务ID int64 messageTaskId; }
输出对象:RPCSuccess:
{ }
读取消息任务状态
admin
RPC
findEnabledMessageTask (FindEnabledMessageTaskRequest) returns (FindEnabledMessageTaskResponse)
HTTP
POST /MessageTaskService/findEnabledMessageTask
输入对象:FindEnabledMessageTaskRequest:
{ // 消息任务ID int64 messageTaskId; }
输出对象:FindEnabledMessageTaskResponse:
{ // 消息任务信息 MessageTask messageTask; }
计算某个状态的消息任务数量
admin
RPC
countMessageTasksWithStatus (CountMessageTasksWithStatusRequest) returns (RPCCountResponse)
HTTP
POST /MessageTaskService/countMessageTasksWithStatus
输入对象:CountMessageTasksWithStatusRequest:
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
根据状态列出某页任务
admin
RPC
listMessageTasksWithStatus (ListMessageTasksWithStatusRequest) returns (ListMessageTasksWithStatusResponse)
HTTP
POST /MessageTaskService/listMessageTasksWithStatus
输入对象:ListMessageTasksWithStatusRequest:
输出对象:ListMessageTasksWithStatusResponse:
发送某个消息任务
admin
RPC
sendMessageTask (SendMessageTaskRequest) returns (SendMessageTaskResponse)
HTTP
POST /MessageTaskService/sendMessageTask
输入对象:SendMessageTaskRequest:
{ // 媒介实例ID int64 messageMediaInstanceId; // 用户标识 string user; // 标题 string subject; // 内容 string body; }
输出对象:SendMessageTaskResponse:
{ // 是否成功 bool isOk; // 失败时的提示信息 string error; // 发送成功后响应内容 string response; }
修改消息任务状态
admin
RPC
updateMessageTaskStatus (UpdateMessageTaskStatusRequest) returns (RPCSuccess)
HTTP
POST /MessageTaskService/updateMessageTaskStatus
输入对象:UpdateMessageTaskStatusRequest:
输出对象:RPCSuccess:
{ }