suggestion.proto 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-household-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 SuggestionOrderReturnVisitRequest {
  53. int64 garden_id = 1;
  54. int64 id = 2;
  55. // 1 满意 2 不满意
  56. int32 return_visit_level = 3;
  57. // 回访内容
  58. string return_visit_content = 4;
  59. int64 household_uid = 5;
  60. }
  61. message SuggestionOrderReturnVisitReply {
  62. }
  63. message SuggestionOrderPipelineData {
  64. // 处理人
  65. string user = 1;
  66. // 处理意见
  67. string feedback = 2;
  68. // 处理时间
  69. string handle_time = 3;
  70. string status = 4;
  71. string phone = 5;
  72. }
  73. message SuggestionOrderItem {
  74. int64 id = 1;
  75. // 投诉类型 1 投诉 2 建议
  76. int32 suggestion_type = 2;
  77. // 投诉人
  78. string apply_people = 3;
  79. // 投诉人电话
  80. string apply_people_phone = 4;
  81. // 当前状态处理人
  82. string current_user = 5;
  83. // 投诉内容
  84. string apply_content = 6;
  85. // 投诉图片
  86. repeated string apply_pic = 7;
  87. // 回访内容
  88. string return_visit_content = 8;
  89. // 回访满意度
  90. int32 return_visit_level = 9;
  91. // 投诉时间
  92. string created_at = 10;
  93. int32 status = 11;
  94. // 上级处理人
  95. string last_user = 12;
  96. }
  97. message SuggestionOrderInfoRequest {
  98. int64 garden_id = 1;
  99. int64 id = 2;
  100. }
  101. message SuggestionOrderInfoReply {
  102. // 基本信息
  103. SuggestionOrderItem base_info = 1;
  104. // 工单流水线
  105. repeated SuggestionOrderPipelineData list = 2;
  106. }
  107. message SuggestionOrderListRequest {
  108. int64 page = 1;
  109. int64 page_size = 2;
  110. int32 status = 3;
  111. string apply_people = 4;
  112. string apply_people_phone = 5;
  113. int64 current_uid = 6;
  114. int64 garden_id = 7;
  115. int32 suggestion_type = 8;
  116. int64 household_uid = 9;
  117. }
  118. message SuggestionOrderListReply {
  119. int64 page = 1;
  120. int64 total = 2;
  121. repeated SuggestionOrderItem list = 3;
  122. }