repair.proto 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-system-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. repeated string repair_pic = 21;
  149. }
  150. message RepairOrderInfoRequest {
  151. int64 garden_id = 1;
  152. int64 id = 2;
  153. }
  154. message RepairOrderInfoReply {
  155. // 基本信息
  156. RepairOrderItem base_info = 1;
  157. // 工单流水线
  158. repeated RepairOrderPipelineData list = 2;
  159. }
  160. message RepairOrderListRequest {
  161. int64 page = 1;
  162. int64 page_size = 2;
  163. int32 status = 3;
  164. string apply_people = 4;
  165. string apply_people_phone = 5;
  166. int64 current_uid = 6;
  167. int64 garden_id = 7;
  168. int64 class_id = 8;
  169. }
  170. message RepairOrderListReply {
  171. int64 page = 1;
  172. int64 total = 2;
  173. repeated RepairOrderItem list = 3;
  174. }
  175. message RepairClassAddRequest {
  176. int64 garden_id = 1;
  177. string name = 2;
  178. bool enable = 3;
  179. int32 area = 4;
  180. }
  181. message RepairClassAddReply {
  182. int64 id = 1;
  183. }
  184. message RepairClassUpdateRequest {
  185. int64 garden_id = 1;
  186. string name = 2;
  187. bool enable = 3;
  188. int64 id = 4;
  189. int32 area = 5;
  190. }
  191. message RepairClassUpdateReply {
  192. RepairClassUpdateRequest origin = 1;
  193. }
  194. message RepairClassDelRequest {
  195. int64 garden_id = 1;
  196. int64 id = 2;
  197. }
  198. message RepairClassDelReply {
  199. RepairClassUpdateRequest origin = 1;
  200. }
  201. message RepairClassListRequest {
  202. int64 page = 1;
  203. int64 page_size = 2;
  204. int64 garden_id = 3;
  205. int32 area = 4;
  206. }
  207. message RepairClassItem {
  208. int64 id = 1;
  209. string name = 2;
  210. bool enable = 3;
  211. int32 area = 4;
  212. }
  213. message RepairClassListReply {
  214. int64 page = 1;
  215. int64 total = 2;
  216. repeated RepairClassItem list = 3;
  217. }