repair.proto 5.2 KB

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