repair.go 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. package v1
  2. import (
  3. "property-household-gateway/param/base"
  4. "property-household-gateway/pb/v1"
  5. )
  6. type RepairClassListQuery struct {
  7. GardenId int64 `form:"garden_id" json:"garden_id"`
  8. Page int64 `form:"page" json:"page"`
  9. PageSize int64 `form:"page_size" json:"page_size"`
  10. Area int32 `form:"area"`
  11. }
  12. type RepairClassListRequest struct{
  13. base.Header
  14. RepairClassListQuery
  15. }
  16. type RepairClassListResponse struct{
  17. base.Result
  18. Data v1.RepairClassListReply `json:"data"`
  19. }
  20. type RepairOrderAddBody struct {
  21. // 分类id
  22. ClassId int64 `form:"class_id" json:"class_id"`
  23. // 报修人
  24. ApplyPeople string `form:"apply_people" json:"apply_people"`
  25. // 报修人电话
  26. ApplyPeoplePhone string `form:"apply_people_phone" json:"apply_people_phone"`
  27. // 预约时间
  28. Appointment int64 `form:"appointment" json:"appointment"`
  29. // 房屋id
  30. HouseId int64 `form:"house_id" json:"house_id"`
  31. GardenId int64 `form:"garden_id" json:"garden_id"`
  32. // 报修内容
  33. ApplyContent string `form:"apply_content" json:"apply_content"`
  34. // 报修图片
  35. ApplyPic []string `form:"apply_pic" json:"apply_pic"`
  36. }
  37. type RepairOrderAddRequest struct {
  38. base.Header
  39. RepairOrderAddBody
  40. }
  41. type RepairOrderAddResponse struct{
  42. base.Result
  43. Data v1.RepairOrderAddReply `json:"data"`
  44. }
  45. type RepairOrderUpdateBody struct {
  46. // 分类id
  47. ClassId int64 `form:"class_id" json:"class_id"`
  48. // 报修人
  49. ApplyPeople string `form:"apply_people" json:"apply_people"`
  50. // 报修人电话
  51. ApplyPeoplePhone string `form:"apply_people_phone" json:"apply_people_phone"`
  52. // 预约时间
  53. Appointment int64 `form:"appointment" json:"appointment"`
  54. // 房屋id
  55. HouseId int64 `form:"house_id" json:"house_id"`
  56. // 报修内容
  57. ApplyContent string `form:"apply_content" json:"apply_content"`
  58. // 报修图片
  59. ApplyPic []string `form:"apply_pic" json:"apply_pic"`
  60. GardenId int64 `form:"garden_id" json:"garden_id"`
  61. Id int64 `form:"id"`
  62. }
  63. type RepairOrderUpdateRequest struct{
  64. base.Header
  65. RepairOrderUpdateBody
  66. }
  67. type RepairOrderUpdateResponse struct{
  68. base.Result
  69. }
  70. type RepairOrderDelQuery struct {
  71. Id int64 `form:"id"`
  72. GardenId int64 `form:"garden_id" json:"garden_id"`
  73. }
  74. type RepairOrderDelRequest struct{
  75. base.Header
  76. RepairOrderDelQuery
  77. }
  78. type RepairOrderDelResponse struct{
  79. base.Result
  80. }
  81. type RepairOrderListQuery struct {
  82. Page int64 `form:"page" json:"page"`
  83. PageSize int64 `form:"page_size" json:"page_size"`
  84. Status int32 `form:"status" json:"status"`
  85. ApplyPeople string `form:"apply_people" json:"apply_people"`
  86. ApplyPeoplePhone string `form:"apply_people_phone" json:"apply_people_phone"`
  87. ClassId int64 `form:"class_id" json:"class_id"`
  88. GardenId int64 `form:"garden_id" json:"garden_id"`
  89. }
  90. type RepairOrderListRequest struct{
  91. base.Header
  92. RepairOrderListQuery
  93. }
  94. type RepairOrderListResponse struct{
  95. base.Result
  96. Data v1.RepairOrderListReply `json:"data"`
  97. }
  98. type RepairOrderInfoQuery struct {
  99. Id int64 `form:"id"`
  100. GardenId int64 `form:"garden_id" json:"garden_id"`
  101. }
  102. type RepairOrderInfoRequest struct{
  103. base.Header
  104. RepairOrderInfoQuery
  105. }
  106. type RepairOrderInfoResponse struct{
  107. base.Result
  108. Data v1.RepairOrderInfoReply `json:"data"`
  109. }
  110. type RepairOrderReturnVisitBody struct {
  111. Id int64 `form:"id" json:"id"`
  112. // 1 满意 2 不满意
  113. ReturnVisitLevel int32 `form:"return_visit_level" json:"return_visit_level"`
  114. // 回访内容
  115. ReturnVisitContent string `form:"return_visit_content" json:"return_visit_content"`
  116. GardenId int64 `form:"garden_id" json:"garden_id"`
  117. }
  118. type RepairOrderReturnVisitRequest struct{
  119. base.Header
  120. RepairOrderReturnVisitBody
  121. }
  122. type RepairOrderReturnVisitResponse struct{
  123. base.Result
  124. }