service_phone.proto 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-household-gateway/pb/v1";
  6. message ServicePhoneClassListRequest {
  7. int64 page = 1;
  8. int64 page_size = 2;
  9. int64 garden_id = 3;
  10. int32 enable = 4;
  11. }
  12. message ServicePhoneClassItem {
  13. int64 id = 1;
  14. string class_name = 2;
  15. bool enable = 3;
  16. }
  17. message ServicePhoneClassListReply {
  18. int64 page = 1;
  19. int64 total = 2;
  20. repeated ServicePhoneClassItem list = 3;
  21. }
  22. message ServicePhoneListRequest {
  23. int64 page = 1;
  24. int64 page_size = 2;
  25. int64 garden_id = 3;
  26. int32 enable = 4;
  27. string class_name = 5;
  28. int64 class_id = 6;
  29. }
  30. message ServicePhoneItem {
  31. int64 id = 1;
  32. int64 class_id = 2;
  33. bool enable = 3;
  34. string name = 4;
  35. string phone = 5;
  36. string class_name = 6;
  37. }
  38. message ServicePhoneListReply {
  39. int64 page = 1;
  40. int64 total = 2;
  41. repeated ServicePhoneItem list = 3;
  42. }