suggestion.proto 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-garden/pb/v1";
  6. message SuggestionOrderAddRequest {
  7. int64 garden_id = 1;
  8. // 投诉类型 1 投诉 2 建议
  9. int32 suggestion_type = 2;
  10. // 投诉人
  11. string apply_people = 3;
  12. // 投诉人电话
  13. string apply_people_phone = 4;
  14. // 上级处理人
  15. int64 last_uid = 5;
  16. // 投诉内容
  17. string apply_content = 6;
  18. // 投诉图片
  19. repeated string apply_pic = 7;
  20. bool by_company = 8;
  21. int64 household_uid = 9;
  22. }
  23. message SuggestionOrderAddReply {
  24. int64 id = 1;
  25. }
  26. message SuggestionOrderUpdateRequest {
  27. int64 garden_id = 1;
  28. // 投诉类型 1 投诉 2 建议
  29. int32 suggestion_type = 2;
  30. // 投诉人
  31. string apply_people = 3;
  32. // 投诉人电话
  33. string apply_people_phone = 4;
  34. // 投诉内容
  35. string apply_content = 5;
  36. // 投诉图片
  37. repeated string apply_pic = 6;
  38. int64 id = 7;
  39. int64 household_uid = 8;
  40. }
  41. message SuggestionOrderUpdateReply {
  42. SuggestionOrderUpdateRequest origin = 1;
  43. }
  44. message SuggestionOrderDelRequest {
  45. int64 garden_id = 1;
  46. int64 id = 2;
  47. int64 household_uid = 11;
  48. }
  49. message SuggestionOrderDelReply {
  50. SuggestionOrderUpdateRequest origin = 1;
  51. }
  52. message SuggestionOrderSendRequest {
  53. int64 garden_id = 1;
  54. int64 id = 2;
  55. int64 current_uid = 3;
  56. string feedback = 4;
  57. int64 last_uid = 5;
  58. bool by_company = 6;
  59. }
  60. message SuggestionOrderSendReply {
  61. }
  62. message SuggestionOrderFinishRequest {
  63. int64 garden_id = 1;
  64. int64 id = 2;
  65. string feedback = 4;
  66. repeated string handle_pic = 5;
  67. int64 last_uid = 6;
  68. bool by_company = 7;
  69. }
  70. message SuggestionOrderFinishReply {
  71. }
  72. message SuggestionOrderBackRequest {
  73. int64 garden_id = 1;
  74. int64 id = 2;
  75. string feedback = 3;
  76. int64 last_uid = 5;
  77. bool by_company = 6;
  78. }
  79. message SuggestionOrderBackReply {
  80. }
  81. message SuggestionOrderReturnVisitRequest {
  82. int64 garden_id = 1;
  83. int64 id = 2;
  84. // 1 满意 2 不满意
  85. int32 return_visit_level = 3;
  86. // 回访内容
  87. string return_visit_content = 4;
  88. int64 household_uid = 5;
  89. }
  90. message SuggestionOrderReturnVisitReply {
  91. }
  92. message SuggestionOrderPipelineData {
  93. // 处理人
  94. string user = 1;
  95. // 处理意见
  96. string feedback = 2;
  97. // 处理时间
  98. string handle_time = 3;
  99. string status = 4;
  100. string phone = 5;
  101. }
  102. message SuggestionOrderItem {
  103. int64 id = 1;
  104. // 投诉类型 1 投诉 2 建议
  105. int32 suggestion_type = 2;
  106. // 投诉人
  107. string apply_people = 3;
  108. // 投诉人电话
  109. string apply_people_phone = 4;
  110. // 当前状态处理人
  111. string current_user = 5;
  112. // 投诉内容
  113. string apply_content = 6;
  114. // 投诉图片
  115. repeated string apply_pic = 7;
  116. // 回访内容
  117. string return_visit_content = 8;
  118. // 回访满意度
  119. int32 return_visit_level = 9;
  120. // 投诉时间
  121. string created_at = 10;
  122. int32 status = 11;
  123. // 上级处理人
  124. string last_user = 12;
  125. }
  126. message SuggestionOrderInfoRequest {
  127. int64 garden_id = 1;
  128. int64 id = 2;
  129. }
  130. message SuggestionOrderInfoReply {
  131. // 基本信息
  132. SuggestionOrderItem base_info = 1;
  133. // 工单流水线
  134. repeated SuggestionOrderPipelineData list = 2;
  135. }
  136. message SuggestionOrderListRequest {
  137. int64 page = 1;
  138. int64 page_size = 2;
  139. int32 status = 3;
  140. string apply_people = 4;
  141. string apply_people_phone = 5;
  142. int64 current_uid = 6;
  143. int64 garden_id = 7;
  144. int32 suggestion_type = 8;
  145. int64 household_uid = 9;
  146. }
  147. message SuggestionOrderListReply {
  148. int64 page = 1;
  149. int64 total = 2;
  150. repeated SuggestionOrderItem list = 3;
  151. }