service_phone.proto 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-applete-gateway/pb/v1";
  6. message ServicePhoneClassAddRequest {
  7. int64 garden_id = 1;
  8. string class_name = 2;
  9. bool enable = 3;
  10. }
  11. message ServicePhoneClassAddReply {
  12. int64 id = 1;
  13. }
  14. message ServicePhoneClassUpdateRequest {
  15. int64 garden_id = 1;
  16. string class_name = 2;
  17. bool enable = 3;
  18. int64 id = 4;
  19. }
  20. message ServicePhoneClassUpdateReply {
  21. }
  22. message ServicePhoneClassDelRequest {
  23. int64 garden_id = 1;
  24. int64 id = 2;
  25. }
  26. message ServicePhoneClassDelReply {
  27. }
  28. message ServicePhoneClassListRequest {
  29. int64 page = 1;
  30. int64 page_size = 2;
  31. int64 garden_id = 3;
  32. int32 enable = 4;
  33. }
  34. message ServicePhoneClassItem {
  35. int64 id = 1;
  36. string class_name = 2;
  37. bool enable = 3;
  38. }
  39. message ServicePhoneClassListReply {
  40. int64 page = 1;
  41. int64 total = 2;
  42. repeated ServicePhoneClassItem list = 3;
  43. }
  44. message ServicePhoneAddRequest {
  45. int64 garden_id = 1;
  46. int64 class_id = 2;
  47. bool enable = 3;
  48. string name = 4;
  49. string phone = 5;
  50. }
  51. message ServicePhoneAddReply {
  52. int64 id = 1;
  53. }
  54. message ServicePhoneUpdateRequest {
  55. int64 garden_id = 1;
  56. int64 id = 2;
  57. bool enable = 3;
  58. string name = 4;
  59. string phone = 5;
  60. }
  61. message ServicePhoneUpdateReply {
  62. }
  63. message ServicePhoneDelRequest {
  64. int64 garden_id = 1;
  65. int64 id = 2;
  66. }
  67. message ServicePhoneDelReply {
  68. }
  69. message ServicePhoneListRequest {
  70. int64 page = 1;
  71. int64 page_size = 2;
  72. int64 garden_id = 3;
  73. int32 enable = 4;
  74. string class_name = 5;
  75. int64 class_id = 6;
  76. }
  77. message ServicePhoneItem {
  78. int64 id = 1;
  79. int64 class_id = 2;
  80. bool enable = 3;
  81. string name = 4;
  82. string phone = 5;
  83. string class_name = 6;
  84. }
  85. message ServicePhoneListReply {
  86. int64 page = 1;
  87. int64 total = 2;
  88. repeated ServicePhoneItem list = 3;
  89. }