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 | 51 ++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 42 insertions(+), 9 deletions(-) diff --git a/protomsg.proto b/protomsg.proto index 6979282..ad64dca 100644 --- a/protomsg.proto +++ b/protomsg.proto @@ -85,6 +85,13 @@ string link_group_id = 12; } +//鎽勫儚鏈哄竷闃茬殑鏃堕棿瑙勫垯锛屽彲浠ヨ缃涓�,鐢╥d鍏宠仈鍒板叿浣撶殑瑙勫垯閰嶇疆涓� +message CameraTimerule { + string id = 1;//id + string name = 2;//瑙勫垯鍚嶇О + string time_rule = 3;//鍏蜂綋鏃堕棿瑙勫垯璁剧疆 +} + //DayCtl struct 姣忓ぉ鐨勬椂闂存帶鍒惰鍒� message DayCtl { int32 day = 1;//1-7琛ㄧず鏄熸湡涓�鍒版槦鏈熸棩 @@ -101,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; @@ -115,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 @@ -131,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;//鍙傛暟鎺掑簭 } @@ -240,4 +262,15 @@ string id = 2;//鍙樺寲鏁版嵁id DbAction action = 3;//action string info = 4;//鍙樺寲鍐呭 +} + +message CameraPolygon { + string id = 1; + string camera_id = 2;//鎽勫儚鏈篿d + string name = 3;//鍚嶇О + string polygon = 4;//鍧愭爣鐐归泦鍚� + string trigger_line = 5; + string direction_line = 6; + string type = 7; + int32 defence_state = 8; } \ No newline at end of file -- Gitblit v1.8.0