repair.go 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. package v1
  2. import (
  3. "property-system-gateway/param/base"
  4. "property-system-gateway/pb/v1"
  5. )
  6. type RepairClassAddBody struct {
  7. Name string `form:"name" json:"name"`
  8. Enable bool `form:"enable" json:"enable"`
  9. // 1 公共区域 2 室内
  10. Area int32 `form:"area"`
  11. }
  12. type RepairClassAddRequest struct {
  13. base.Header
  14. RepairClassAddBody
  15. }
  16. type RepairClassAddResponse struct{
  17. base.Result
  18. Data v1.RepairClassAddReply `json:"data"`
  19. }
  20. type RepairClassUpdateBody struct {
  21. Name string `form:"name" json:"name"`
  22. Enable bool `form:"enable" json:"enable"`
  23. Id int64 `form:"id"`
  24. Area int32 `form:"area"`
  25. }
  26. type RepairClassUpdateRequest struct{
  27. base.Header
  28. RepairClassUpdateBody
  29. }
  30. type RepairClassUpdateResponse struct{
  31. base.Result
  32. }
  33. type RepairClassDelQuery struct {
  34. Id int64 `form:"id"`
  35. }
  36. type RepairClassDelRequest struct{
  37. base.Header
  38. RepairClassDelQuery
  39. }
  40. type RepairClassDelResponse struct{
  41. base.Result
  42. }
  43. type RepairClassListQuery struct {
  44. Page int64 `form:"page" json:"page"`
  45. PageSize int64 `form:"page_size" json:"page_size"`
  46. Area int32 `form:"area"`
  47. }
  48. type RepairClassListRequest struct{
  49. base.Header
  50. RepairClassListQuery
  51. }
  52. type RepairClassListResponse struct{
  53. base.Result
  54. Data v1.RepairClassListReply `json:"data"`
  55. }
  56. type RepairOrderAddBody struct {
  57. // 分类id
  58. ClassId int64 `form:"class_id" json:"class_id"`
  59. // 报修人
  60. ApplyPeople string `form:"apply_people" json:"apply_people"`
  61. // 报修人电话
  62. ApplyPeoplePhone string `form:"apply_people_phone" json:"apply_people_phone"`
  63. // 预约时间
  64. Appointment int64 `form:"appointment" json:"appointment"`
  65. // 房屋id
  66. HouseId int64 `form:"house_id" json:"house_id"`
  67. // 报修内容
  68. ApplyContent string `form:"apply_content" json:"apply_content"`
  69. // 报修图片
  70. ApplyPic []string `form:"apply_pic" json:"apply_pic"`
  71. }
  72. type RepairOrderAddRequest struct {
  73. base.Header
  74. RepairOrderAddBody
  75. }
  76. type RepairOrderAddResponse struct{
  77. base.Result
  78. Data v1.RepairOrderAddReply `json:"data"`
  79. }
  80. type RepairOrderUpdateBody struct {
  81. // 分类id
  82. ClassId int64 `form:"class_id" json:"class_id"`
  83. // 报修人
  84. ApplyPeople string `form:"apply_people" json:"apply_people"`
  85. // 报修人电话
  86. ApplyPeoplePhone string `form:"apply_people_phone" json:"apply_people_phone"`
  87. // 预约时间
  88. Appointment int64 `form:"appointment" json:"appointment"`
  89. // 房屋id
  90. HouseId int64 `form:"house_id" json:"house_id"`
  91. // 报修内容
  92. ApplyContent string `form:"apply_content" json:"apply_content"`
  93. // 报修图片
  94. ApplyPic []string `form:"apply_pic" json:"apply_pic"`
  95. Id int64 `form:"id"`
  96. }
  97. type RepairOrderUpdateRequest struct{
  98. base.Header
  99. RepairOrderUpdateBody
  100. }
  101. type RepairOrderUpdateResponse struct{
  102. base.Result
  103. }
  104. type RepairOrderDelQuery struct {
  105. Id int64 `form:"id"`
  106. }
  107. type RepairOrderDelRequest struct{
  108. base.Header
  109. RepairOrderDelQuery
  110. }
  111. type RepairOrderDelResponse struct{
  112. base.Result
  113. }
  114. type RepairOrderListQuery struct {
  115. Page int64 `form:"page" json:"page"`
  116. PageSize int64 `form:"page_size" json:"page_size"`
  117. Status int32 `form:"status" json:"status"`
  118. ApplyPeople string `form:"apply_people" json:"apply_people"`
  119. ApplyPeoplePhone string `form:"apply_people_phone" json:"apply_people_phone"`
  120. IsMe bool `form:"is_me" json:"is_me"`
  121. ClassId int64 `form:"class_id" json:"class_id"`
  122. }
  123. type RepairOrderListRequest struct{
  124. base.Header
  125. RepairOrderListQuery
  126. }
  127. type RepairOrderListResponse struct{
  128. base.Result
  129. Data v1.RepairOrderListReply `json:"data"`
  130. }
  131. type RepairOrderInfoQuery struct {
  132. Id int64 `form:"id"`
  133. }
  134. type RepairOrderInfoRequest struct{
  135. base.Header
  136. RepairOrderInfoQuery
  137. }
  138. type RepairOrderInfoResponse struct{
  139. base.Result
  140. Data v1.RepairOrderInfoReply `json:"data"`
  141. }
  142. type RepairOrderSendBody struct {
  143. // 工单id
  144. Id int64 `form:"id" json:"id"`
  145. // 指派给谁
  146. CurrentUid int64 `form:"current_uid" json:"current_uid"`
  147. // 意见
  148. Feedback string `form:"feedback" json:"feedback"`
  149. }
  150. type RepairOrderSendRequest struct{
  151. base.Header
  152. RepairOrderSendBody
  153. }
  154. type RepairOrderSendResponse struct{
  155. base.Result
  156. }
  157. type RepairOrderFinishBody struct {
  158. // 工单id
  159. Id int64 `form:"id" json:"id"`
  160. // 意见
  161. Feedback string `form:"feedback" json:"feedback"`
  162. // 处理图片
  163. RepairPic []string `form:"repair_pic" json:"repair_pic"`
  164. }
  165. type RepairOrderFinishRequest struct{
  166. base.Header
  167. RepairOrderFinishBody
  168. }
  169. type RepairOrderFinishResponse struct{
  170. base.Result
  171. }
  172. type RepairOrderBackBody struct {
  173. // 工单id
  174. Id int64 `form:"id" json:"id"`
  175. // 意见
  176. Feedback string `form:"feedback" json:"feedback"`
  177. }
  178. type RepairOrderBackRequest struct{
  179. base.Header
  180. RepairOrderBackBody
  181. }
  182. type RepairOrderBackResponse struct{
  183. base.Result
  184. }
  185. type RepairOrderReturnVisitBody struct {
  186. Id int64 `form:"id" json:"id"`
  187. // 1 满意 2 不满意
  188. ReturnVisitLevel int32 `form:"return_visit_level" json:"return_visit_level"`
  189. // 回访内容
  190. ReturnVisitContent string `form:"return_visit_content" json:"return_visit_content"`
  191. }
  192. type RepairOrderReturnVisitRequest struct{
  193. base.Header
  194. RepairOrderReturnVisitBody
  195. }
  196. type RepairOrderReturnVisitResponse struct{
  197. base.Result
  198. }