方法列表
添加动作
admin
RPC
createNodeAction (CreateNodeActionRequest) returns (CreateNodeActionResponse)
HTTP
POST /NodeActionService/createNodeAction
输入对象:CreateNodeActionRequest:
{ // 节点ID int64 nodeId; // 节点角色 string role; // 条件设置 bytes condsJSON; // 动作设置 bytes actionJSON; // 持续时间 bytes durationJSON; }
输出对象:CreateNodeActionResponse:
删除动作
admin
RPC
deleteNodeAction (DeleteNodeActionRequest) returns (RPCSuccess)
HTTP
POST /NodeActionService/deleteNodeAction
输入对象:DeleteNodeActionRequest:
输出对象:RPCSuccess:
{ }
修改动作
admin
RPC
updateNodeAction (UpdateNodeActionRequest) returns (RPCSuccess)
HTTP
POST /NodeActionService/updateNodeAction
输入对象:UpdateNodeActionRequest:
{ // 动作ID int64 nodeActionId; bytes condsJSON; bytes actionJSON; // 持续时间 bytes durationJSON; // 是否启用 bool isOn; }
输出对象:RPCSuccess:
{ }
列出某个节点的所有动作
admin
RPC
findAllNodeActions (FindAllNodeActionsRequest) returns (FindAllNodeActionsResponse)
HTTP
POST /NodeActionService/findAllNodeActions
输入对象:FindAllNodeActionsRequest:
{ // 节点ID int64 nodeId; // 节点角色 string role; }
输出对象:FindAllNodeActionsResponse:
{ // 动作列表 []NodeAction nodeActions; }
查找单个节点动作
admin
RPC
findNodeAction (FindNodeActionRequest) returns (FindNodeActionResponse)
HTTP
POST /NodeActionService/findNodeAction
输入对象:FindNodeActionRequest:
{ // 动作ID int64 nodeActionId; }
输出对象:FindNodeActionResponse:
设置节点动作排序
admin
RPC
updateNodeActionOrders (UpdateNodeActionOrdersRequest) returns (RPCSuccess)
HTTP
POST /NodeActionService/updateNodeActionOrders
输入对象:UpdateNodeActionOrdersRequest:
{ // 节点动作ID列表 []int64 nodeActionIds; }
输出对象:RPCSuccess:
{ }