repair.proto 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-household-gateway/pb/v1";
  6. message RepairOrderAddRequest {
  7. int64 garden_id = 1;
  8. // 分类id
  9. int64 class_id = 2;
  10. // 报修人
  11. string apply_people = 3;
  12. // 报修人电话
  13. string apply_people_phone = 4;
  14. // 预约时间
  15. int64 appointment = 5;
  16. // 房屋id
  17. int64 house_id = 6;
  18. // 上级处理人
  19. int64 last_uid = 7;
  20. // 报修内容
  21. string apply_content = 8;
  22. // 报修图片
  23. repeated string apply_pic = 9;
  24. bool by_company = 10;
  25. int64 household_uid = 11;
  26. }
  27. message RepairOrderAddReply {
  28. int64 id = 1;
  29. }
  30. message RepairOrderUpdateRequest {
  31. int64 garden_id = 1;
  32. // 分类id
  33. int64 class_id = 2;
  34. // 报修人
  35. string apply_people = 3;
  36. // 报修人电话
  37. string apply_people_phone = 4;
  38. // 预约时间
  39. int64 appointment = 5;
  40. // 房屋id
  41. int64 house_id = 6;
  42. // 报修内容
  43. string apply_content = 7;
  44. // 报修图片
  45. repeated string apply_pic = 8;
  46. int64 id = 9;
  47. int64 household_uid = 10;
  48. }
  49. message RepairOrderUpdateReply {
  50. RepairOrderUpdateRequest origin = 1;
  51. }
  52. message RepairOrderDelRequest {
  53. int64 garden_id = 1;
  54. int64 id = 2;
  55. int64 household_uid = 11;
  56. }
  57. message RepairOrderDelReply {
  58. RepairOrderUpdateRequest origin = 1;
  59. }
  60. message RepairOrderReturnVisitRequest {
  61. int64 garden_id = 1;
  62. int64 id = 2;
  63. // 1 满意 2 不满意
  64. int32 return_visit_level = 3;
  65. // 回访内容
  66. string return_visit_content = 4;
  67. int64 household_uid = 5;
  68. }
  69. message RepairOrderReturnVisitReply {
  70. }
  71. message RepairOrderPipelineData {
  72. // 处理人
  73. string user = 1;
  74. // 处理意见
  75. string feedback = 2;
  76. // 处理时间
  77. string handle_time = 3;
  78. string status = 4;
  79. string phone = 5;
  80. }
  81. message RepairOrderItem {
  82. int64 id = 1;
  83. // 分类id
  84. int64 class_id = 2;
  85. // 报修人
  86. string apply_people = 3;
  87. // 报修人电话
  88. string apply_people_phone = 4;
  89. // 预约时间
  90. string appointment = 5;
  91. // 房屋id
  92. int64 house_id = 6;
  93. // 当前状态处理人
  94. string current_user = 7;
  95. // 报修内容
  96. string apply_content = 8;
  97. // 报修图片
  98. repeated string apply_pic = 9;
  99. // 回访内容
  100. string return_visit_content = 10;
  101. // 回访满意度
  102. int32 return_visit_level = 11;
  103. // 楼栋id
  104. int64 building_id = 12;
  105. // 单元id
  106. int64 unit_id = 13;
  107. // 房屋全称
  108. string house_name = 14;
  109. // 报修时间
  110. string created_at = 15;
  111. // 维修时间
  112. string repair_time = 16;
  113. // 分类名称
  114. string class_name = 17;
  115. int32 status = 18;
  116. // 上级处理人
  117. string last_user = 19;
  118. // 1 公共区域 2 室内
  119. int32 area = 20;
  120. repeated string repair_pic = 21;
  121. }
  122. message RepairOrderInfoRequest {
  123. int64 garden_id = 1;
  124. int64 id = 2;
  125. }
  126. message RepairOrderInfoReply {
  127. // 基本信息
  128. RepairOrderItem base_info = 1;
  129. // 工单流水线
  130. repeated RepairOrderPipelineData list = 2;
  131. }
  132. message RepairOrderListRequest {
  133. int64 page = 1;
  134. int64 page_size = 2;
  135. int32 status = 3;
  136. string apply_people = 4;
  137. string apply_people_phone = 5;
  138. int64 current_uid = 6;
  139. int64 garden_id = 7;
  140. int64 class_id = 8;
  141. int64 household_uid = 9;
  142. }
  143. message RepairOrderListReply {
  144. int64 page = 1;
  145. int64 total = 2;
  146. repeated RepairOrderItem list = 3;
  147. }
  148. message RepairClassListRequest {
  149. int64 page = 1;
  150. int64 page_size = 2;
  151. int64 garden_id = 3;
  152. int32 area = 4;
  153. }
  154. message RepairClassItem {
  155. int64 id = 1;
  156. string name = 2;
  157. bool enable = 3;
  158. int32 area = 4;
  159. }
  160. message RepairClassListReply {
  161. int64 page = 1;
  162. int64 total = 2;
  163. repeated RepairClassItem list = 3;
  164. }