Explorar o código

add timestamp

liqingxia %!s(int64=3) %!d(string=hai) anos
pai
achega
d22055d6e9
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/include/proto/turnstile.proto

+ 3 - 2
src/include/proto/turnstile.proto

@@ -6,7 +6,8 @@ import "rawpic.proto";
 
 message turnstile
 {
-  optional rawpic pic = 1;
-  optional bool state = 2;   //ture表示闸机坏了
+  optional int64 time = 1;
+  optional rawpic pic = 2;
+  optional bool state = 3;   //ture表示闸机坏了
 }