From 80ae7958a17a492098f18f31fa21804f37b6cbaa Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 08 五月 2024 14:52:55 +0800
Subject: [PATCH] 更新dataprocess.pb

---
 protomsg.proto |  271 +++++++++++++++++++++++++++++++++--------------------
 1 files changed, 168 insertions(+), 103 deletions(-)

diff --git a/protomsg.proto b/protomsg.proto
index 526b5a7..fb0972f 100644
--- a/protomsg.proto
+++ b/protomsg.proto
@@ -38,8 +38,15 @@
 
     int32 resolution_width = 21; //鍒嗚鲸鐜囧
     int32 resolution_height = 22; //鍒嗚鲸鐜囬珮
+    int32 fps = 23; //fps璁剧疆
 
-    repeated Sensor sensors = 23; //浼犳劅鍣�
+    repeated Sensor sensors = 24; //浼犳劅鍣�
+
+    bool voiceEnable = 25;
+    string voiceId = 26;
+    string coordTransform = 27; //鍧愭爣杞崲淇℃伅
+
+    int32 status = 28;
 }
 
 message Sensor {
@@ -59,54 +66,15 @@
     string link_task_id = 2;
 }
 
-//鎽勫儚鏈虹殑浠诲姟淇℃伅
-message CameraAndTaskInfo {
-    Camera camera = 1;//鎽勫儚鏈轰俊鎭�
-    repeated Task tasks = 2;//浠诲姟鍒楄〃
-}
-
-//Task缁撴瀯浣�
-message Task {
-    string taskid = 1;
-    string taskname = 2;
-    string create_at = 3;
-    string create_by = 4;
-    string update_at = 5;
-    bool enable = 6;
-    bool is_alarm = 7;
-    bool del_flag = 8;
-}
-
-message TaskSdkInfo {
-    Task task = 1;
-    repeated Sdk sdks = 2;
-}
-
 message SdkRun {
     string ipc_id = 1;
     string sdk_type = 2;
+    int32 isTriggerByPreSdk = 3;
+    int32 confidence = 4;
+    bool bReid = 5;
+    int32 triggerNextSdkType = 6;
 }
 
-message TaskSdkRun {
-    Task task = 1;
-    repeated SdkRun sdks = 2;
-}
-
-//鎽勫儚鏈轰换鍔�
-message CameraTask {
-    string id = 1;
-    string camera_id = 2;//鎽勫儚鏈篿d
-    string task_id = 3;//浠诲姟id
-    string time_rule = 4;//甯冮槻鏃堕棿
-    string react_rule = 5;//鑱斿姩鏂瑰紡
-    string react_device = 6;//鑱斿姩璁惧
-    bool del_flag = 7; //閫昏緫鍒犻櫎鏍囪
-    bool update_flag = 8;//鏄惁鍙傛暟鏇存柊浜�
-    bool enable = 9; //鏄惁鍚敤
-    int32 sort = 10; //浠诲姟鎺掑簭
-    bool is_full = 11;//鍙傛暟鏄惁璁剧疆瀹屾暣
-    string link_task_id = 12;
-}
 
 //鎽勫儚鏈哄竷闃茬殑鏃堕棿瑙勫垯锛屽彲浠ヨ缃涓�,鐢╥d鍏宠仈鍒板叿浣撶殑瑙勫垯閰嶇疆涓�
 message CameraTimerule {
@@ -134,39 +102,81 @@
     repeated Point points = 3;//鐐圭殑闆嗗悎
 }
 
-message CameraTaskArgs {
-    string camera_id = 1;
-    repeated TaskGroupArgs task_args = 2;
+message CameraInfo {
+    string runServerName = 1;
+    string id = 2;
+    string name = 3;
+    int32 run_type= 4;
 }
-
-message TaskGroupArgs {
-    string task_id = 1;
-    repeated GroupRule group_rules = 2;
-    bool enable = 3;
+message CameraAndRules {
+    CameraInfo cameraInfo = 1;
+    repeated GroupRule rules = 2;
 }
 
 message GroupRule {
-    string group_id = 1;
-    string group_text = 2;
-    int32 alarm_level = 3;
-    repeated Rule rules = 4;
-    string set_type = 5;
-    bool defence_state = 6;
+    repeated string cameraIds = 1;
+    string id = 2;
+
+    string group_text = 3;
+    int32 alarm_level = 4;
+    repeated Rule rules = 5;
+    string set_type = 6;
+
+    string template_id = 7;
+    string template_rule = 8;
+    string time_rule_id = 9;
+    string scene_name = 10;
+    string desc = 11;
+    bool enable = 12;
+    string voiceId = 13; //浜嬩欢澹伴煶
+}
+
+message GroupRuleSdks {
+    string id = 1;
+    string scene_name = 2;
+    repeated SdkRun sdks = 3;
+    repeated string sdkIds = 4;
 }
 
 message Rule {
     string id =1;
-    string camera_task_id =2;
-    string camera_id =3;
-    string polygon_id =4;
-    string sdk_id = 5;
-    string sdk_arg_alias = 6;
-    string operator = 7;
-    string operator_type = 8;
-    string sdk_arg_value = 9;
-    int32 sort = 10;
-    string rule_with_pre = 11;
-    string group_id =12;
+    string camera_id =2;
+    string polygon_id =3;
+    string sdk_id = 4;
+    repeated SdkSetBase sdk_set = 5;
+    string rule_with_pre = 6;
+    bool is_save_anyhow = 7; //rule_with_pre鏄Е鍙戞椂锛屾槸鍚︽棤璁鸿瑙﹀彂鐨勬潯浠舵弧涓嶆弧瓒筹紝閮戒繚鐣欐暟鎹�
+    string group_id =8;
+    int32 sort = 9;
+}
+
+message RuleTemplate {
+    string id = 1;
+    string name = 2;
+    string desc = 3;
+    string txt = 4;
+    repeated TemplateArg rules = 5;
+}
+
+message RuleTemplateList {
+    repeated RuleTemplate list = 1;
+}
+
+message TemplateArg {
+    string sdk_id = 1;
+    string sdk_arg_alias = 2;
+    string operator = 3;
+    string sdk_arg_value = 4;
+    string sort = 5;
+    string rule_with_pre = 6;
+}
+
+message SdkSetBase {
+    string sdk_arg_alias = 1;
+    string operator = 2;
+    string operator_type = 3;
+    string sdk_arg_value = 4;
+    int32 sort = 5;
 }
 
 //Sdk struct
@@ -183,26 +193,13 @@
     string create_by = 10;
     bool enable = 11;//鏄惁鍚敤
     int32 del_flag = 12;//鏄惁鍒犻櫎
-}
-
-message TaskSdkRule {
-    string taskId = 1;
-    bool enable = 2;
-    repeated SdkRuleSet sdkRules = 3;
-}
-
-message SdkRuleSet {
-    string sdkId = 1;
-    string ipcId = 2;
-    repeated SdkRule rules = 3;
-    int32 sort = 4;
-}
-
-message SdkRule {
-    string id = 1;
-    string sdk_arg_alias = 2;
-    string operator = 3;
-    string sdk_arg_value = 4;
+    string iconBlob = 13; //鍥剧墖浜岃繘鍒�
+    string version = 14; //鐗堟湰
+    bool enTrack = 15; //鏄惁寮�鍚窡韪�
+    string argDef = 16; //榛樿鍙傛暟
+    string ruleSo = 17; //瑙勫垯鐢╯o
+    string iconBlob2 = 18; //绗簩濂楀浘鐗囦簩杩涘埗
+    string activateCode = 19; //
 }
 
 //SdkArg struct
@@ -221,25 +218,31 @@
 message SdkChanSet {
     string sdk_type = 1;
     int32 chan_num = 2;
+    int32 confidenceInc = 3;
+    int32 minMovePos = 4;
 }
+
+
 
 //TableChanged enum
 enum TableChanged {
     T_Camera = 0;//鎽勫儚鏈哄彉鍖�
-    T_CameraTask = 1;//鎽勫儚鏈轰换鍔″彉鍖�
-    T_CameraTaskArgs = 2;//鎽勫儚鏈轰换鍔″弬鏁板彉鍖�
-    T_Task = 3;//浠诲姟琛ㄥ彉鍖�
-    T_TaskSdk = 4;//浠诲姟绠楁硶鍙樺寲
-    T_TaskSdkRule = 5;//浠诲姟绠楁硶瑙勫垯鍙樺寲
-    T_Sdk = 6;//sdk鍙樺寲
-    T_CameraPolygon = 7;//鎽勫儚鏈哄杈瑰舰鍙樺寲
-    T_TimeRule = 8;//鏃堕棿瑙勫垯鍙樺寲
-    T_Server = 9;//鏈嶅姟鍣ㄤ俊鎭彉鍖�
-    T_PollConfig = 10;//杞閰嶇疆鍙樺寲
-    T_File = 11;//鏈湴鏂囦欢鍙樺寲
-    T_FileSetting = 12;//鏈湴鏂囦欢鍒嗘瀽璁剧疆
-    T_SdkChanSet = 13;//绠楁硶閫氶亾璁剧疆鍙樺寲
-    T_FileStack = 14;//鏁版嵁鏍堝彉鍖�
+    T_CameraRule = 1;//鎽勫儚鏈轰换鍔″弬鏁板彉鍖�
+    T_Sdk = 2;//sdk鍙樺寲
+    T_CameraPolygon = 3;//鎽勫儚鏈哄杈瑰舰鍙樺寲
+    T_TimeRule = 4;//鏃堕棿瑙勫垯鍙樺寲
+    T_Server = 5;//鏈嶅姟鍣ㄤ俊鎭彉鍖�
+    T_PollConfig = 6;//杞閰嶇疆鍙樺寲
+    T_File = 7;//鏈湴鏂囦欢鍙樺寲
+    T_FileSetting = 8;//鏈湴鏂囦欢鍒嗘瀽璁剧疆
+    T_SdkChanSet = 9;//绠楁硶閫氶亾璁剧疆鍙樺寲
+    T_FileStack = 10;//鏁版嵁鏍堝彉鍖�
+    T_ResourceConfig = 11;//瀵瑰鏈嶅姟閰嶇疆鍙樺寲
+    T_CalculationPower = 12;//闇�瑕侀噸鏂拌绠楃畻鍔涘崰鐢ㄦ儏鍐�
+    T_EventPush = 13; //浜嬩欢鎺ㄩ�佹湁鍙樺寲
+    T_Cluster = 14; //闆嗙兢鍒涘缓銆佸姞鍏ユ垨閫�鍑�
+    T_CameraPolygonRelation = 15; //鎽勫儚鏈哄尯鍩熺殑鍏宠仈鍏崇郴
+    T_Voice = 16;//鎶ヨ澹伴煶鍙戠敓鍙樺寲
 }
 
 enum DbAction {
@@ -265,6 +268,15 @@
     string direction_line = 6;
     string type = 7;
     int32 defence_state = 8;
+    string camera_name = 9; //鎽勫儚鏈哄悕绉�
+}
+
+message CameraPolygonRelation {
+    string id = 1;
+    string source_camera_id = 2;
+    string source_polygon_id = 3;
+    string target_camera_id = 4;
+    string target_polygon_id = 5;
 }
 
 message VideotapeInfo {
@@ -275,6 +287,16 @@
     string videoUrl = 5;
     repeated string sdkIds = 6;
     int32 type = 7;
+}
+
+message Voice {
+    string id = 1;
+    string name = 2;
+    string path = 3;
+}
+
+message VoiceList {
+    repeated Voice list = 1;
 }
 
 message CompareArgs {
@@ -291,6 +313,8 @@
     bool source = 11;
     string analyServerId = 12;
     string compareTarget = 13;//姣斿鐨勭洰鏍�
+    bool isCompareAll = 14; //鏄惁姣斿鍏ㄩ儴,鍋氭祴璇曠敤
+    repeated string serverIds = 15; //绠$悊骞冲彴姣斿澶氫釜璁惧浜х敓鐨勬暟鎹�
 }
 
 message CompareEvent {
@@ -302,6 +326,7 @@
     ReInitCache = 0; // 閲嶆柊鍒濆鍖栧簳搴撶紦瀛橈紙鍔犲叆闆嗙兢鍚庢墽琛岋級
     UpdateCache = 1; // 鏇存柊搴曞簱鍜屼汉鍛樼紦瀛�
     Compare = 2; // 鍋氭瘮瀵硅姹�
+    DeleteCache = 3; // 鍒犻櫎缂撳瓨
 }
 
 message SdkCompareEach {
@@ -327,6 +352,16 @@
     repeated PushIpPort ip_ports = 10;
     repeated PushUrl urls = 11;
     repeated EventPushRule rules = 12;
+    map<string,string> filtRename = 13;
+    repeated PushSetMenu push_set = 14;
+}
+
+message PushSetMenu {
+    string id = 1;
+    string name = 2;
+    bool checked = 3;
+    string alias = 4;
+    repeated PushSetMenu children = 5;
 }
 
 message EventPushRule {
@@ -373,3 +408,33 @@
     int32 enable = 6;
     string carNo = 7;
 }
+
+message ClusterAndNodes {
+    string clusterId = 1;
+    string clusterName = 2;
+    repeated Node nodes = 3;
+    string virtualIp = 4;
+    string password = 5;
+}
+
+message Node {
+    string id = 1;
+    string cluster_id=2;
+    string node_name = 3;
+    string node_id = 4;
+    string node_ip = 5;
+    string create_time = 6;
+    bool isDelete = 7;
+    string drift_state = 8;
+    string device_type = 9;
+}
+
+message Dic {
+    string id = 1;
+    string value = 2;
+    string name = 3;
+    string type = 4;
+    string description = 5;
+    int32 sort = 6;
+    string parent_id = 7;
+}

--
Gitblit v1.8.0