notify_message.proto 1.1 KB

12345678910111213141516171819202122232425262728
  1. syntax = "proto2";
  2. package message;
  3. import "message_base.proto";
  4. import "singlechip_msg.proto";
  5. message Notify_request_msg
  6. {
  7. required Base_info base_info=1; //消息类型
  8. required string command_key=2;
  9. required Id_struct id_struct=3; //终端id
  10. required Car_info car_info=4; //车辆标识(车牌号)
  11. }
  12. message Notify_response_msg
  13. {
  14. required Base_info base_info=1; //消息类型
  15. required string command_key=2;
  16. required Id_struct id_struct=3; //终端id
  17. required Error_manager code=4; //请求结果码
  18. }
  19. message Notify_status_msg
  20. {
  21. required Base_info base_info=1; //消息类型
  22. required Id_struct id_struct=2;
  23. required Error_manager error_manager = 3;
  24. optional Singlechip_data singlechipData=4; //单片机的数据
  25. optional bool singlechip_validity = 5;//单片机数据有效性
  26. }