From 675c5351b004b77844b02f7d023c60598276e01c Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期日, 16 六月 2019 14:23:19 +0800 Subject: [PATCH] fix sdk.enabled type to bool --- protomsg.proto | 48 ++++++++++++++++++++++++------------------------ 1 files changed, 24 insertions(+), 24 deletions(-) diff --git a/protomsg.proto b/protomsg.proto index 02463bd..ad64dca 100644 --- a/protomsg.proto +++ b/protomsg.proto @@ -108,10 +108,25 @@ message Polygon { string id = 1;//褰㈢姸id string name = 2;//褰㈢姸鐨勫悕绉� - repeated Point points = 4;//鐐圭殑闆嗗悎 + repeated Point points = 3;//鐐圭殑闆嗗悎 } message CameraTaskArgs { + string camera_id = 1; + repeated TaskGroupArgs task_args = 2; +} + +message TaskGroupArgs { + string task_id = 1; + repeated GroupRule group_rules = 2; +} + +message GroupRule { + string group_id = 1; + repeated Rule rules = 2; +} + +message Rule { string id =1; string camera_task_id =2; string camera_id =3; @@ -122,9 +137,8 @@ string operator_type = 8; string sdk_arg_value = 9; int32 sort = 10; - string rule_with_next = 11; + string rule_with_pre = 11; string group_id =12; - } //Sdk struct @@ -138,16 +152,17 @@ string create_time = 7; string update_time = 8; string create_by = 9; - string enabled = 10;//鏄惁鍚敤 - string del_flag = 11;//鏄惁鍒犻櫎 + bool enabled = 10;//鏄惁鍚敤 + int32 del_flag = 11;//鏄惁鍒犻櫎 } //SdkArg struct message SdkArg { - string alias = 2;//鍙傛暟鍒悕 - string name = 3;//鍙傛暟鍚嶇О - string type = 4;//鍙傛暟绫诲瀷 - bool must = 5;//鍙傛暟鏄惁蹇呭~ + string alias = 1;//鍙傛暟鍒悕 + string name = 2;//鍙傛暟鍚嶇О + string type = 3;//鍙傛暟绫诲瀷 + bool must = 4;//鍙傛暟鏄惁蹇呭~ + string unit = 5;//鍗曚綅 string range = 6;//鍙傛暟鐨勮寖鍥� int32 sort = 7;//鍙傛暟鎺掑簭 } @@ -258,19 +273,4 @@ string direction_line = 6; string type = 7; int32 defence_state = 8; -} - -message CameraTaskArg { - 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; } \ No newline at end of file -- Gitblit v1.8.0