repair.proto 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-applete-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 RepairOrderSendRequest {
  61. int64 garden_id = 1;
  62. int64 id = 2;
  63. int64 current_uid = 3;
  64. string feedback = 4;
  65. int64 last_uid = 5;
  66. bool by_company = 6;
  67. }
  68. message RepairOrderSendReply {
  69. }
  70. message RepairOrderFinishRequest {
  71. int64 garden_id = 1;
  72. int64 id = 2;
  73. string feedback = 4;
  74. repeated string repair_pic = 5;
  75. int64 last_uid = 6;
  76. bool by_company = 7;
  77. }
  78. message RepairOrderFinishReply {
  79. }
  80. message RepairOrderBackRequest {
  81. int64 garden_id = 1;
  82. int64 id = 2;
  83. string feedback = 3;
  84. int64 last_uid = 5;
  85. bool by_company = 6;
  86. }
  87. message RepairOrderBackReply {
  88. }
  89. message RepairOrderReturnVisitRequest {
  90. int64 garden_id = 1;
  91. int64 id = 2;
  92. // 1 满意 2 不满意
  93. int32 return_visit_level = 3;
  94. // 回访内容
  95. string return_visit_content = 4;
  96. }
  97. message RepairOrderReturnVisitReply {
  98. }
  99. message RepairOrderPipelineData {
  100. // 处理人
  101. string user = 1;
  102. // 处理意见
  103. string feedback = 2;
  104. // 处理时间
  105. string handle_time = 3;
  106. string status = 4;
  107. string phone = 5;
  108. }
  109. message RepairOrderItem {
  110. int64 id = 1;
  111. // 分类id
  112. int64 class_id = 2;
  113. // 报修人
  114. string apply_people = 3;
  115. // 报修人电话
  116. string apply_people_phone = 4;
  117. // 预约时间
  118. string appointment = 5;
  119. // 房屋id
  120. int64 house_id = 6;
  121. // 当前状态处理人
  122. string current_user = 7;
  123. // 报修内容
  124. string apply_content = 8;
  125. // 报修图片
  126. repeated string apply_pic = 9;
  127. // 回访内容
  128. string return_visit_content = 10;
  129. // 回访满意度
  130. int32 return_visit_level = 11;
  131. // 楼栋id
  132. int64 building_id = 12;
  133. // 单元id
  134. int64 unit_id = 13;
  135. // 房屋全称
  136. string house_name = 14;
  137. // 报修时间
  138. string created_at = 15;
  139. // 维修时间
  140. string repair_time = 16;
  141. // 分类名称
  142. string class_name = 17;
  143. int32 status = 18;
  144. // 上级处理人
  145. string last_user = 19;
  146. int32 area = 20;
  147. }
  148. message RepairOrderInfoRequest {
  149. int64 garden_id = 1;
  150. int64 id = 2;
  151. }
  152. message RepairOrderInfoReply {
  153. // 基本信息
  154. RepairOrderItem base_info = 1;
  155. // 工单流水线
  156. repeated RepairOrderPipelineData list = 2;
  157. }
  158. message RepairOrderListRequest {
  159. int64 page = 1;
  160. int64 page_size = 2;
  161. int32 status = 3;
  162. string apply_people = 4;
  163. string apply_people_phone = 5;
  164. int64 current_uid = 6;
  165. int64 garden_id = 7;
  166. int64 class_id = 8;
  167. }
  168. message RepairOrderListReply {
  169. int64 page = 1;
  170. int64 total = 2;
  171. repeated RepairOrderItem list = 3;
  172. }
  173. message RepairClassAddRequest {
  174. int64 garden_id = 1;
  175. string name = 2;
  176. bool enable = 3;
  177. int32 area = 4;
  178. }
  179. message RepairClassAddReply {
  180. int64 id = 1;
  181. }
  182. message RepairClassUpdateRequest {
  183. int64 garden_id = 1;
  184. string name = 2;
  185. bool enable = 3;
  186. int64 id = 4;
  187. int32 area = 5;
  188. }
  189. message RepairClassUpdateReply {
  190. RepairClassUpdateRequest origin = 1;
  191. }
  192. message RepairClassDelRequest {
  193. int64 garden_id = 1;
  194. int64 id = 2;
  195. }
  196. message RepairClassDelReply {
  197. RepairClassUpdateRequest origin = 1;
  198. }
  199. message RepairClassListRequest {
  200. int64 page = 1;
  201. int64 page_size = 2;
  202. int64 garden_id = 3;
  203. int32 area = 4;
  204. }
  205. message RepairClassItem {
  206. int64 id = 1;
  207. string name = 2;
  208. bool enable = 3;
  209. int32 area = 4;
  210. }
  211. message RepairClassListReply {
  212. int64 page = 1;
  213. int64 total = 2;
  214. repeated RepairClassItem list = 3;
  215. }