suggestion.go 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. package v1
  2. import (
  3. "property-applete-gateway/param/base"
  4. "property-applete-gateway/pb/v1"
  5. )
  6. type SuggestionOrderAddBody struct {
  7. // 投诉类型 1 投诉 2 建议
  8. SuggestionType int32 `form:"suggestion_type" json:"suggestion_type"`
  9. // 投诉人
  10. ApplyPeople string `form:"apply_people" json:"apply_people"`
  11. // 投诉人电话
  12. ApplyPeoplePhone string `form:"apply_people_phone" json:"apply_people_phone"`
  13. // 投诉内容
  14. ApplyContent string `form:"apply_content" json:"apply_content"`
  15. // 投诉图片
  16. ApplyPic []string `form:"apply_pic" json:"apply_pic"`
  17. }
  18. type SuggestionOrderAddRequest struct {
  19. base.Header
  20. SuggestionOrderAddBody
  21. }
  22. type SuggestionOrderAddResponse struct{
  23. base.Result
  24. Data v1.SuggestionOrderAddReply `json:"data"`
  25. }
  26. type SuggestionOrderUpdateBody struct {
  27. // 投诉类型 1 投诉 2 建议
  28. SuggestionType int32 `form:"suggestion_type" json:"suggestion_type"`
  29. // 投诉人
  30. ApplyPeople string `form:"apply_people" json:"apply_people"`
  31. // 投诉人电话
  32. ApplyPeoplePhone string `form:"apply_people_phone" json:"apply_people_phone"`
  33. // 投诉内容
  34. ApplyContent string `form:"apply_content" json:"apply_content"`
  35. // 投诉图片
  36. ApplyPic []string `form:"apply_pic" json:"apply_pic"`
  37. Id int64 `form:"id"`
  38. }
  39. type SuggestionOrderUpdateRequest struct{
  40. base.Header
  41. SuggestionOrderUpdateBody
  42. }
  43. type SuggestionOrderUpdateResponse struct{
  44. base.Result
  45. }
  46. type SuggestionOrderDelQuery struct {
  47. Id int64 `form:"id"`
  48. }
  49. type SuggestionOrderDelRequest struct{
  50. base.Header
  51. SuggestionOrderDelQuery
  52. }
  53. type SuggestionOrderDelResponse struct{
  54. base.Result
  55. }
  56. type SuggestionOrderListQuery struct {
  57. Page int64 `form:"page" json:"page"`
  58. PageSize int64 `form:"page_size" json:"page_size"`
  59. Status int32 `form:"status" json:"status"`
  60. ApplyPeople string `form:"apply_people" json:"apply_people"`
  61. ApplyPeoplePhone string `form:"apply_people_phone" json:"apply_people_phone"`
  62. IsMe bool `form:"is_me" json:"is_me"`
  63. SuggestionType int32 `form:"suggestion_type" json:"suggestion_type"`
  64. }
  65. type SuggestionOrderListRequest struct{
  66. base.Header
  67. SuggestionOrderListQuery
  68. }
  69. type SuggestionOrderListResponse struct{
  70. base.Result
  71. Data v1.SuggestionOrderListReply `json:"data"`
  72. }
  73. type SuggestionOrderInfoQuery struct {
  74. Id int64 `form:"id"`
  75. }
  76. type SuggestionOrderInfoRequest struct{
  77. base.Header
  78. SuggestionOrderInfoQuery
  79. }
  80. type SuggestionOrderInfoResponse struct{
  81. base.Result
  82. Data v1.SuggestionOrderInfoReply `json:"data"`
  83. }
  84. type SuggestionOrderSendBody struct {
  85. // 工单id
  86. Id int64 `form:"id" json:"id"`
  87. // 指派给谁
  88. CurrentUid int64 `form:"current_uid" json:"current_uid"`
  89. // 意见
  90. Feedback string `form:"feedback" json:"feedback"`
  91. }
  92. type SuggestionOrderSendRequest struct{
  93. base.Header
  94. SuggestionOrderSendBody
  95. }
  96. type SuggestionOrderSendResponse struct{
  97. base.Result
  98. }
  99. type SuggestionOrderFinishBody struct {
  100. // 工单id
  101. Id int64 `form:"id" json:"id"`
  102. // 意见
  103. Feedback string `form:"feedback" json:"feedback"`
  104. // 处理图片
  105. HandlePic []string `form:"handle_pic" json:"handle_pic"`
  106. }
  107. type SuggestionOrderFinishRequest struct{
  108. base.Header
  109. SuggestionOrderFinishBody
  110. }
  111. type SuggestionOrderFinishResponse struct{
  112. base.Result
  113. }
  114. type SuggestionOrderBackBody struct {
  115. // 工单id
  116. Id int64 `form:"id" json:"id"`
  117. // 意见
  118. Feedback string `form:"feedback" json:"feedback"`
  119. }
  120. type SuggestionOrderBackRequest struct{
  121. base.Header
  122. SuggestionOrderBackBody
  123. }
  124. type SuggestionOrderBackResponse struct{
  125. base.Result
  126. }
  127. type SuggestionOrderReturnVisitBody struct {
  128. Id int64 `form:"id" json:"id"`
  129. // 1 满意 2 不满意
  130. ReturnVisitLevel int32 `form:"return_visit_level" json:"return_visit_level"`
  131. // 回访内容
  132. ReturnVisitContent string `form:"return_visit_content" json:"return_visit_content"`
  133. }
  134. type SuggestionOrderReturnVisitRequest struct{
  135. base.Header
  136. SuggestionOrderReturnVisitBody
  137. }
  138. type SuggestionOrderReturnVisitResponse struct{
  139. base.Result
  140. }