mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-16 23:20:25 +08:00
实现基础的智能调度
This commit is contained in:
15
pkg/rpc/protos/models/model_node_action.proto
Normal file
15
pkg/rpc/protos/models/model_node_action.proto
Normal file
@@ -0,0 +1,15 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
// 节点动作
|
||||
message NodeAction {
|
||||
int64 id = 1;
|
||||
int64 nodeId = 2;
|
||||
string role = 3;
|
||||
bool isOn = 4; // 是否启用
|
||||
bytes condsJSON = 5; // 条件定义
|
||||
bytes actionJSON = 6; // 动作定义
|
||||
bytes durationJSON = 7; // 持续时间
|
||||
}
|
||||
Reference in New Issue
Block a user