mqtt.proto 814 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-mqtt/pb/v1";
  6. message FaceWhiteData {
  7. string custom_id = 1;
  8. string name = 2;
  9. string pic = 3;
  10. }
  11. message FaceWhiteAddRequest {
  12. string sn = 1;
  13. repeated FaceWhiteData list = 2;
  14. }
  15. message FaceWhiteAddReply {
  16. }
  17. message FaceWhiteDelRequest {
  18. string sn = 1;
  19. repeated string custom_ids = 2;
  20. }
  21. message FaceWhiteDelReply {
  22. }
  23. message FaceRebootRequest {
  24. string sn = 1;
  25. string cmd_id = 2;
  26. }
  27. message FaceRebootReply {
  28. }
  29. message FaceOpenRequest {
  30. string sn = 1;
  31. string cmd_id = 2;
  32. }
  33. message FaceOpenReply {
  34. }
  35. message NewMqttDeviceRequest {
  36. string sn = 1;
  37. }
  38. message NewMqttDeviceReply {
  39. }