mqtt.proto 817 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-device/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. }