charge.go 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. package v1
  2. import (
  3. "property-household-gateway/param/base"
  4. "property-household-gateway/pb/v1"
  5. )
  6. // 欠费线上缴费
  7. type ChargeBillPayByHouseholdBody struct {
  8. BillIds []int64 `form:"bill_ids" json:"bill_ids"`
  9. // 绑定关系id列表
  10. BindIds []int64 `form:"bind_ids" json:"bind_ids"`
  11. // 应缴
  12. ShouldPayAmount int64 `form:"should_pay_amount" json:"should_pay_amount"`
  13. // 实缴
  14. PayAmount int64 `form:"pay_amount" json:"pay_amount"`
  15. // 备注
  16. Comment string `form:"comment" json:"comment"`
  17. GardenId int64 `form:"garden_id" json:"garden_id"`
  18. }
  19. type ChargeBillPayByHouseholdRequest struct {
  20. base.Header
  21. ChargeBillPayByHouseholdBody
  22. }
  23. type ChargeBillPayByHouseholdResponse struct {
  24. base.Result
  25. Data v1.ChargeBillPayByHouseholdReply `json:"data"`
  26. }
  27. // 生活缴费代缴费和待支付
  28. type ChargeUnpayListQuery struct {
  29. GardenId int64 `form:"garden_id" json:"garden_id"`
  30. Page int64 `form:"page" json:"page"`
  31. PageSize int64 `form:"page_size" json:"page_size"`
  32. HouseId int64 `form:"house_id" json:"house_id"`
  33. }
  34. type ChargeUnpayListRequest struct {
  35. base.Header
  36. ChargeUnpayListQuery
  37. }
  38. type ChargeUnpayListResponse struct {
  39. base.Result
  40. Data v1.ChargeUnpayListReply `json:"data"`
  41. }
  42. // 查看费用,费项列表
  43. type ChargeListQuery struct {
  44. GardenId int64 `form:"garden_id" json:"garden_id"`
  45. // 对象id
  46. ObjId int64 `form:"obj_id" json:"obj_id"`
  47. // 对象类型
  48. ObjType int32 `form:"obj_type" json:"obj_type"`
  49. Page int64 `form:"page" json:"page"`
  50. PageSize int64 `form:"page_size" json:"page_size"`
  51. ChargeType int32 `form:"charge_type" json:"charge_type"`
  52. }
  53. type ChargeListRequest struct {
  54. base.Header
  55. ChargeListQuery
  56. }
  57. type ChargeListResponse struct {
  58. base.Result
  59. Data v1.ChargeListReply `json:"data"`
  60. }
  61. // 对象的某费项下的待缴账单列表
  62. type ChargeBillListQuery struct {
  63. GardenId int64 `form:"garden_id" json:"garden_id"`
  64. Page int64 `form:"page" json:"page"`
  65. PageSize int64 `form:"page_size" json:"page_size"`
  66. BindId int64 `form:"bind_id" json:"bind_id"`
  67. }
  68. type ChargeBillListRequest struct {
  69. base.Header
  70. ChargeBillListQuery
  71. }
  72. type ChargeBillListResponse struct {
  73. base.Result
  74. Data v1.ChargeBillListReply `json:"data"`
  75. }
  76. // 预缴物业费或车位费前获取对应的金额信息
  77. type ChargePrePayInfoQuery struct {
  78. GardenId int64 `form:"garden_id" json:"garden_id"`
  79. BindId int64 `form:"bind_id" json:"bind_id"`
  80. // 月数
  81. Months int64 `form:"months" json:"months"`
  82. }
  83. type ChargePrePayInfoRequest struct {
  84. base.Header
  85. ChargePrePayInfoQuery
  86. }
  87. type ChargePrePayInfoResponse struct {
  88. base.Result
  89. Data v1.ChargePrePayInfoReply `json:"data"`
  90. }
  91. type ChargePropertyMonthInfoQuery struct {
  92. GardenId int64 `form:"garden_id" json:"garden_id"`
  93. HouseId int64 `form:"house_id" json:"house_id"`
  94. }
  95. type ChargePropertyMonthInfoRequest struct {
  96. base.Header
  97. ChargePropertyMonthInfoQuery
  98. }
  99. type ChargePropertyMonthInfoResponse struct {
  100. base.Result
  101. Data v1.ChargeMonthInfoReply `json:"data"`
  102. }
  103. type ChargeSpaceMonthInfoQuery struct {
  104. GardenId int64 `form:"garden_id" json:"garden_id"`
  105. SpaceId int64 `form:"space_id" json:"space_id"`
  106. }
  107. type ChargeSpaceMonthInfoRequest struct {
  108. base.Header
  109. ChargeSpaceMonthInfoQuery
  110. }
  111. type ChargeSpaceMonthInfoResponse struct {
  112. base.Result
  113. Data v1.ChargeMonthInfoReply `json:"data"`
  114. }
  115. type ChargeVehicleMonthInfoQuery struct {
  116. GardenId int64 `form:"garden_id" json:"garden_id"`
  117. VehicleId int64 `form:"vehicle_id" json:"vehicle_id"`
  118. }
  119. type ChargeVehicleMonthInfoRequest struct {
  120. base.Header
  121. ChargeVehicleMonthInfoQuery
  122. }
  123. type ChargeVehicleMonthInfoResponse struct {
  124. base.Result
  125. Data v1.ChargeMonthInfoReply `json:"data"`
  126. }
  127. // 线上预缴
  128. type ChargePrePayByHouseholdBody struct {
  129. GardenId int64 `form:"garden_id" json:"garden_id"`
  130. BindId int64 `form:"bind_id" json:"bind_id"`
  131. Months int64 `form:"months" json:"months"`
  132. // 应缴金额
  133. ShouldPayAmount int64 `form:"should_pay_amount" json:"should_pay_amount"`
  134. // 实缴金额
  135. PayAmount int64 `form:"pay_amount" json:"pay_amount"`
  136. // 套餐id
  137. PackageId int64 `form:"package_id" json:"package_id"`
  138. }
  139. type ChargePrePayByHouseholdRequest struct {
  140. base.Header
  141. ChargePrePayByHouseholdBody
  142. }
  143. type ChargePrePayByHouseholdResponse struct {
  144. base.Result
  145. Data v1.ChargePrePayByHouseholdReply `json:"data"`
  146. }
  147. // 缴费订单列表
  148. type ChargeOrderListQuery struct {
  149. Page int64 `form:"page,proto3" json:"page"`
  150. PageSize int64 `form:"page_size" json:"page_size"`
  151. GardenId int64 `form:"garden_id" json:"garden_id"`
  152. }
  153. type ChargeOrderListRequest struct {
  154. base.Header
  155. ChargeOrderListQuery
  156. }
  157. type ChargeOrderListResponse struct {
  158. base.Result
  159. Data v1.ChargeOrderListReply `json:"data"`
  160. }
  161. // 缴费订单详情
  162. type ChargeOrderInfoQuery struct {
  163. GardenId int64 `form:"garden_id" json:"garden_id"`
  164. OrderId string `form:"order_id" json:"order_id"`
  165. }
  166. type ChargeOrderInfoRequest struct {
  167. base.Header
  168. ChargeOrderInfoQuery
  169. }
  170. type ChargeOrderInfoResponse struct {
  171. base.Result
  172. Data v1.ChargeOrderInfoReply `json:"data"`
  173. }
  174. // 取消支付
  175. type ChargeOrderCancelBody struct {
  176. GardenId int64 `form:"garden_id" json:"garden_id"`
  177. OrderId string `form:"order_id" json:"order_id"`
  178. // true 未支付订单中用户主动取消,false 前端判断未支付时主动调接口删除
  179. ByUser bool `form:"by_user" json:"by_user"`
  180. }
  181. type ChargeOrderCancelRequest struct {
  182. base.Header
  183. ChargeOrderCancelBody
  184. }
  185. type ChargeOrderCancelResponse struct {
  186. base.Result
  187. }
  188. type ChargePayedBillListQuery struct {
  189. GardenId int64 `form:"garden_id" json:"garden_id"`
  190. Page int64 `form:"page" json:"page"`
  191. PageSize int64 `form:"page_size" json:"page_size"`
  192. HouseId int64 `form:"house_id" json:"house_id"`
  193. PayTime int64 `form:"pay_time" json:"pay_time"`
  194. }
  195. type ChargePayedBillListRequest struct {
  196. base.Header
  197. ChargePayedBillListQuery
  198. }
  199. type ChargePayedBillListResponse struct {
  200. base.Result
  201. Data v1.ChargePayedBillListReply `json:"data"`
  202. }
  203. type ChargeWxPayTestBody struct {
  204. PayAmount int64 `form:"pay_amount" json:"pay_amount"`
  205. }
  206. type ChargeWxPayTestRequest struct {
  207. base.Header
  208. ChargeWxPayTestBody
  209. }
  210. type ChargeWxPayTestResponse struct {
  211. base.Result
  212. Data v1.WxAppletPrepayReply `json:"data"`
  213. }