From f8aa89178c9177bd1291178d6272d8a5551a7f01 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期一, 03 六月 2019 14:34:54 +0800
Subject: [PATCH] update

---
 protomsg.proto |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/protomsg.proto b/protomsg.proto
index c377159..dbb35ec 100644
--- a/protomsg.proto
+++ b/protomsg.proto
@@ -85,6 +85,14 @@
     string link_group_id = 12;
 }
 
+//鎽勫儚鏈哄竷闃茬殑鏃堕棿瑙勫垯锛屽彲浠ヨ缃涓�,鐢╥d鍏宠仈鍒板叿浣撶殑瑙勫垯閰嶇疆涓�
+message CameraTimerule {
+    string id = 1;//id
+    string name = 2;//瑙勫垯鍚嶇О
+    string camera_id = 3;//鎽勫儚鏈篿d
+    repeated DayCtl time_rule = 4;//鍏蜂綋鏃堕棿瑙勫垯璁剧疆
+}
+
 //DayCtl struct   姣忓ぉ鐨勬椂闂存帶鍒惰鍒�
 message DayCtl {
     int32 day = 1;//1-7琛ㄧず鏄熸湡涓�鍒版槦鏈熸棩
@@ -228,8 +236,16 @@
     T_Sdk = 6;//sdk鍙樺寲
 }
 
-//骞挎挱娑堟伅
-message PublishMessage {
+enum DbAction {
+    Insert = 0;//Insert
+    Update = 1;//Update
+    Delete = 2;//Delete
+}
+
+//publish db change message
+message DbChangeMessage {
     TableChanged table = 1;//鍙樺寲鐨勮〃
-    string info = 4;//鍐呭
+    string id = 2;//鍙樺寲鏁版嵁id
+    DbAction action = 3;//action
+    string info = 4;//鍙樺寲鍐呭
 }
\ No newline at end of file

--
Gitblit v1.8.0