suggestion.proto 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-applete-gateway/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. }
  89. message SuggestionOrderReturnVisitReply {
  90. }
  91. message SuggestionOrderPipelineData {
  92. // 处理人
  93. string user = 1;
  94. // 处理意见
  95. string feedback = 2;
  96. // 处理时间
  97. string handle_time = 3;
  98. string status = 4;
  99. string phone = 5;
  100. }
  101. message SuggestionOrderItem {
  102. int64 id = 1;
  103. // 投诉类型 1 投诉 2 建议
  104. int32 suggestion_type = 2;
  105. // 投诉人
  106. string apply_people = 3;
  107. // 投诉人电话
  108. string apply_people_phone = 4;
  109. // 当前状态处理人
  110. string current_user = 5;
  111. // 投诉内容
  112. string apply_content = 6;
  113. // 投诉图片
  114. repeated string apply_pic = 7;
  115. // 回访内容
  116. string return_visit_content = 8;
  117. // 回访满意度
  118. int32 return_visit_level = 9;
  119. // 投诉时间
  120. string created_at = 10;
  121. int32 status = 11;
  122. // 上级处理人
  123. string last_user = 12;
  124. }
  125. message SuggestionOrderInfoRequest {
  126. int64 garden_id = 1;
  127. int64 id = 2;
  128. }
  129. message SuggestionOrderInfoReply {
  130. // 基本信息
  131. SuggestionOrderItem base_info = 1;
  132. // 工单流水线
  133. repeated SuggestionOrderPipelineData list = 2;
  134. }
  135. message SuggestionOrderListRequest {
  136. int64 page = 1;
  137. int64 page_size = 2;
  138. int32 status = 3;
  139. string apply_people = 4;
  140. string apply_people_phone = 5;
  141. int64 current_uid = 6;
  142. int64 garden_id = 7;
  143. int32 suggestion_type = 8;
  144. }
  145. message SuggestionOrderListReply {
  146. int64 page = 1;
  147. int64 total = 2;
  148. repeated SuggestionOrderItem list = 3;
  149. }