house_rent.proto 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-applete-gateway/pb/v1";
  6. message HouseRentAddManagerRequest {
  7. int64 garden_id = 1;
  8. int64 manager_uid = 2;
  9. int64 rent_id = 3;
  10. }
  11. message HouseRentAddManagerReply {
  12. int64 id = 1;
  13. }
  14. message HouseRentDelManagerRequest {
  15. int64 garden_id = 1;
  16. int64 id = 2;
  17. }
  18. message HouseRentDelManagerReply {
  19. }
  20. message HouseRentManagerListRequest {
  21. int64 garden_id = 1;
  22. int64 rent_id = 4;
  23. }
  24. message HouseRentManagerItem {
  25. int64 id = 1;
  26. int64 manager_uid = 2;
  27. // 姓名
  28. string name = 3;
  29. string phone = 4;
  30. // 账号
  31. string user_name = 5;
  32. }
  33. message HouseRentManagerListReply {
  34. repeated HouseRentManagerItem list = 1;
  35. }
  36. message HouseRentAppointmentAddRequest {
  37. int64 garden_id = 1;
  38. int64 uid = 2;
  39. int64 rent_id = 3;
  40. string name = 4;
  41. string phone = 5;
  42. int32 gender = 6;
  43. int64 appointment_time = 7;
  44. }
  45. message HouseRentAppointmentAddReply {
  46. int64 id = 1;
  47. }
  48. message HouseRentAppointmentDelRequest {
  49. int64 garden_id = 1;
  50. int64 id = 2;
  51. }
  52. message HouseRentAppointmentDelReply {
  53. }
  54. message HouseRentAppointmentListRequest {
  55. int64 garden_id = 1;
  56. int64 rent_id = 2;
  57. int64 uid = 3;
  58. int64 page = 4;
  59. int64 page_size = 5;
  60. string house_name = 6;
  61. }
  62. message HouseRentAppointmentItem {
  63. int64 id = 1;
  64. int64 uid = 2;
  65. int64 rent_id = 3;
  66. string name = 4;
  67. string phone = 5;
  68. int32 gender = 6;
  69. int64 appointment_time = 7;
  70. string house_name = 8;
  71. }
  72. message HouseRentAppointmentListReply {
  73. int64 page = 1;
  74. int64 total = 2;
  75. repeated HouseRentAppointmentItem list = 3;
  76. }