charge.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  1. package v1
  2. import (
  3. "property-system-gateway/param/base"
  4. "property-system-gateway/pb/v1"
  5. )
  6. type ChargeConfAddBody struct {
  7. // 费用类型1 物业费 2 水费 3 电费 4 气费 5 车位管理费 6 月租停车费 99 其他
  8. ChargeType int32 `form:"charge_type" json:"charge_type"`
  9. // 费用名称
  10. ChargeName string `form:"charge_name" json:"charge_name"`
  11. // 缴费时间类型 1 周期性缴 2 一次性
  12. ChargeTimeType int32 `form:"charge_time_type" json:"charge_time_type"`
  13. // 账单生成周期 1 按月 2 按季度 3 半年 4 年
  14. BillPeriod int32 `form:"bill_period" json:"bill_period"`
  15. // 账单周期计算方式 1自然周期 2 费用生效时间
  16. BillPeriodType int32 `form:"bill_period_type" json:"bill_period_type"`
  17. // 1 按房屋面积 2 按使用面积 3 按车位面积 4 按使用量 5 固定费用 6 自定义
  18. ChargeBasis int32 `form:"charge_basis" json:"charge_basis"`
  19. // 滞纳金开启关闭
  20. LateFeeEnable bool `form:"late_fee_enable" json:"late_fee_enable"`
  21. // 固定费用
  22. FixAmount int64 `form:"fix_amount" json:"fix_amount"`
  23. // 固定费用别名
  24. FixAmountName string `form:"fix_amount_name" json:"fix_amount_name"`
  25. // 费用生效时间
  26. ChargeEffectiveTime int64 `form:"charge_effective_time" json:"charge_effective_time"`
  27. // 单价
  28. UnitPrice int64 `form:"unit_price" json:"unit_price"`
  29. // 账单生成后xx天开始算滞纳金
  30. LateFeeDay int64 `form:"late_fee_day" json:"late_fee_day"`
  31. // 滞纳金封顶天数
  32. LateFeeMaxDays int64 `form:"late_fee_max_days" json:"late_fee_max_days"`
  33. // 滞纳金比例 1代表万分之1
  34. LateFeePercent int64
  35. }
  36. type ChargeConfAddRequest struct {
  37. base.Header
  38. ChargeConfAddBody
  39. }
  40. type ChargeConfAddResponse struct {
  41. base.Result
  42. Data v1.ChargeConfAddReply `json:"data"`
  43. }
  44. type ChargeConfUpdateBody struct {
  45. // 费用类型1 物业费 2 水费 3 电费 4 气费 5 车位管理费 6 月租停车费 99 其他
  46. ChargeType int32 `form:"charge_type" json:"charge_type"`
  47. // 费用名称
  48. ChargeName string `form:"charge_name" json:"charge_name"`
  49. // 缴费时间类型 1 周期性缴 2 一次性
  50. ChargeTimeType int32 `form:"charge_time_type" json:"charge_time_type"`
  51. // 账单生成周期 1 按月 2 按季度 3 半年 4 年
  52. BillPeriod int32 `form:"bill_period" json:"bill_period"`
  53. // 账单周期计算方式 1自然周期 2 费用生效时间
  54. BillPeriodType int32 `form:"bill_period_type" json:"bill_period_type"`
  55. // 1 按房屋面积 2 按使用面积 3 按车位面积 4 按使用量 5 固定费用 6 自定义
  56. ChargeBasis int32 `form:"charge_basis" json:"charge_basis"`
  57. // 滞纳金开启关闭
  58. LateFeeEnable bool `form:"late_fee_enable" json:"late_fee_enable"`
  59. // 固定费用
  60. FixAmount int64 `form:"fix_amount" json:"fix_amount"`
  61. // 固定费用别名
  62. FixAmountName string `form:"fix_amount_name" json:"fix_amount_name"`
  63. // 费用生效时间
  64. ChargeEffectiveTime int64 `form:"charge_effective_time" json:"charge_effective_time"`
  65. // 单价
  66. UnitPrice int64 `form:"unit_price" json:"unit_price"`
  67. // 账单生成后xx天开始算滞纳金
  68. LateFeeDay int64 `form:"late_fee_day" json:"late_fee_day"`
  69. // 滞纳金封顶天数
  70. LateFeeMaxDays int64 `form:"late_fee_max_days" json:"late_fee_max_days"`
  71. // 滞纳金比例 1代表万分之1
  72. LateFeePercent int64
  73. Id int64 `form:"id"`
  74. }
  75. type ChargeConfUpdateRequest struct {
  76. base.Header
  77. ChargeConfUpdateBody
  78. }
  79. type ChargeConfUpdateResponse struct {
  80. base.Result
  81. }
  82. type ChargeConfDelQuery struct {
  83. Id int64 `form:"id"`
  84. }
  85. type ChargeConfDelRequest struct {
  86. base.Header
  87. ChargeConfDelQuery
  88. }
  89. type ChargeConfDelResponse struct {
  90. base.Result
  91. }
  92. type ChargeConfListQuery struct {
  93. Page int64 `form:"page" json:"page"`
  94. PageSize int64 `form:"page_size" json:"page_size"`
  95. ChargeType int32 `form:"charge_type" json:"charge_type"`
  96. ChargeName int32 `form:"charge_name" json:"charge_name"`
  97. }
  98. type ChargeConfListRequest struct {
  99. base.Header
  100. ChargeConfListQuery
  101. }
  102. type ChargeConfListResponse struct {
  103. base.Result
  104. Data v1.ChargeConfListReply `json:"data"`
  105. }
  106. type PowerRecordAddBody struct {
  107. // 费用类型
  108. ChargeType int32 `form:"charge_type" json:"charge_type"`
  109. // 上期抄表数
  110. LastAmount float64 `form:"last_amount" json:"last_amount"`
  111. // 本期抄表数
  112. CurrentAmount float64 `form:"current_amount" json:"current_amount"`
  113. // 开始时间戳
  114. Start int64 `form:"start" json:"start"`
  115. // 结束时间戳
  116. End int64 `form:"end" json:"end"`
  117. // 备注
  118. Comment string `form:"comment" json:"comment"`
  119. // 房屋id
  120. HouseId int64 `form:"house_id" json:"house_id"`
  121. }
  122. type PowerRecordAddRequest struct {
  123. base.Header
  124. PowerRecordAddBody
  125. }
  126. type PowerRecordAddResponse struct {
  127. base.Result
  128. Data v1.PowerRecordAddReply `json:"data"`
  129. }
  130. type PowerRecordDelQuery struct {
  131. Id int64 `form:"id"`
  132. }
  133. type PowerRecordDelRequest struct {
  134. base.Header
  135. PowerRecordDelQuery
  136. }
  137. type PowerRecordDelResponse struct {
  138. base.Result
  139. }
  140. type PowerRecordListQuery struct {
  141. HouseId int64 `form:"house_id" json:"house_id"`
  142. ChargeType int32 `form:"charge_type" json:"charge_type"`
  143. Page int64 `form:"page" json:"page"`
  144. PageSize int64 `form:"page_size" json:"page_size"`
  145. }
  146. type PowerRecordListRequest struct {
  147. base.Header
  148. PowerRecordListQuery
  149. }
  150. type PowerRecordListResponse struct {
  151. base.Result
  152. Data v1.PowerRecordListReply `json:"data"`
  153. }
  154. type PowerRecordBatchAddQuery struct {
  155. ChargeType int32 `form:"charge_type" json:"charge_type"`
  156. }
  157. type PowerRecordBatchAddRequest struct {
  158. base.Header
  159. PowerRecordBatchAddQuery
  160. }
  161. type PowerRecordBatchAddResponse struct {
  162. base.Result
  163. }
  164. // 费用绑定对象
  165. type ChargeBindBody struct {
  166. // 绑定对象的id
  167. ObjIds []int64 `form:"obj_ids" json:"obj_ids"`
  168. ChargeId int64 `form:"charge_id" json:"charge_id"`
  169. // 开始时间
  170. Start int64 `form:"start" json:"start"`
  171. // 只有车辆费用有,结束时间
  172. End int64 `form:"end" json:"end"`
  173. CustomFee int64 `form:"custom_fee" json:"custom_fee"`
  174. }
  175. type ChargeBindRequest struct {
  176. base.Header
  177. ChargeBindBody
  178. }
  179. type ChargeBindResponse struct {
  180. base.Result
  181. }
  182. // 费用解绑对象
  183. type ChargeUnbindBody struct {
  184. ObjId int64 `form:"obj_id" json:"obj_id"`
  185. ChargeId int64 `form:"charge_id" json:"charge_id"`
  186. }
  187. type ChargeUnbindRequest struct {
  188. base.Header
  189. ChargeUnbindBody
  190. }
  191. type ChargeUnbindResponse struct {
  192. base.Result
  193. }
  194. // 绑定了项目的房屋列表
  195. type ChargeHouseBindedListQuery struct {
  196. ChargeId int64 `form:"charge_id" json:"charge_id"`
  197. Page int64 `form:"page" json:"page"`
  198. PageSize int64 `form:"page_size" json:"page_size"`
  199. }
  200. type ChargeHouseBindedListRequest struct {
  201. base.Header
  202. ChargeHouseBindedListQuery
  203. }
  204. type ChargeHouseBindedListResponse struct {
  205. base.Result
  206. Data v1.ChargeHouseBindedListReply `json:"data"`
  207. }
  208. // 可以绑定某项目的房屋列表
  209. type ChargeHouseNotBindListQuery struct {
  210. ChargeId int64 `form:"charge_id" json:"charge_id"`
  211. Page int64 `form:"page" json:"page"`
  212. PageSize int64 `form:"page_size" json:"page_size"`
  213. HouseName string `form:"house_name" json:"house_name"`
  214. }
  215. type ChargeHouseNotBindListRequest struct {
  216. base.Header
  217. ChargeHouseNotBindListQuery
  218. }
  219. type ChargeHouseNotBindListResponse struct {
  220. base.Result
  221. Data v1.ChargeHouseNotBindListReply `json:"data"`
  222. }
  223. // 绑定了某项目的车位列表
  224. type ChargeSpaceBindedListQuery struct {
  225. ChargeId int64 `form:"charge_id" json:"charge_id"`
  226. Page int64 `form:"page" json:"page"`
  227. PageSize int64 `form:"page_size" json:"page_size"`
  228. }
  229. type ChargeSpaceBindedListRequest struct {
  230. base.Header
  231. ChargeSpaceBindedListQuery
  232. }
  233. type ChargeSpaceBindedListResponse struct {
  234. base.Result
  235. Data v1.ChargeSpaceBindedListReply `json:"data"`
  236. }
  237. // 可以绑定某项目的车位列表
  238. type ChargeSpaceNotBindListQuery struct {
  239. ChargeId int64 `form:"charge_id" json:"charge_id"`
  240. Page int64 `form:"page" json:"page"`
  241. PageSize int64 `form:"page_size" json:"page_size"`
  242. }
  243. type ChargeSpaceNotBindListRequest struct {
  244. base.Header
  245. ChargeSpaceNotBindListQuery
  246. }
  247. type ChargeSpaceNotBindListResponse struct {
  248. base.Result
  249. Data v1.ChargeSpaceNotBindListReply `json:"data"`
  250. }
  251. // 绑定了某项目的车辆列表
  252. type ChargeVehicleBindedListQuery struct {
  253. ChargeId int64 `form:"charge_id" json:"charge_id"`
  254. Page int64 `form:"page" json:"page"`
  255. PageSize int64 `form:"page_size" json:"page_size"`
  256. }
  257. type ChargeVehicleBindedListRequest struct {
  258. base.Header
  259. ChargeVehicleBindedListQuery
  260. }
  261. type ChargeVehicleBindedListResponse struct {
  262. base.Result
  263. Data v1.ChargeVehicleBindedListReply `json:"data"`
  264. }
  265. // 可以绑定某项目的车辆列表
  266. type ChargeVehicleNotBindListQuery struct {
  267. ChargeId int64 `form:"charge_id" json:"charge_id"`
  268. Page int64 `form:"page" json:"page"`
  269. PageSize int64 `form:"page_size" json:"page_size"`
  270. }
  271. type ChargeVehicleNotBindListRequest struct {
  272. base.Header
  273. ChargeVehicleNotBindListQuery
  274. }
  275. type ChargeVehicleNotBindListResponse struct {
  276. base.Result
  277. Data v1.ChargeVehicleNotBindListReply `json:"data"`
  278. }
  279. // 房屋收费 房屋列表
  280. type ChargeHouseGroupQuery struct {
  281. Page int64 `form:"page" json:"page"`
  282. PageSize int64 `form:"page_size" json:"page_size"`
  283. }
  284. type ChargeHouseGroupRequest struct {
  285. base.Header
  286. ChargeHouseGroupQuery
  287. }
  288. type ChargeHouseGroupResponse struct {
  289. base.Result
  290. Data v1.ChargeHouseGroupReply `json:"data"`
  291. }
  292. // 车位收费 车位列表
  293. type ChargeSpaceGroupQuery struct {
  294. Page int64 `form:"page" json:"page"`
  295. PageSize int64 `form:"page_size" json:"page_size"`
  296. }
  297. type ChargeSpaceGroupRequest struct {
  298. base.Header
  299. ChargeSpaceGroupQuery
  300. }
  301. type ChargeSpaceGroupResponse struct {
  302. base.Result
  303. Data v1.ChargeSpaceGroupReply `json:"data"`
  304. }
  305. // 车辆收费 车辆列表
  306. type ChargeVehicleGroupQuery struct {
  307. Page int64 `form:"page" json:"page"`
  308. PageSize int64 `form:"page_size" json:"page_size"`
  309. }
  310. type ChargeVehicleGroupRequest struct {
  311. base.Header
  312. ChargeVehicleGroupQuery
  313. }
  314. type ChargeVehicleGroupResponse struct {
  315. base.Result
  316. Data v1.ChargeVehicleGroupReply `json:"data"`
  317. }
  318. // 欠费线下缴费
  319. type ChargeBillPayBody struct {
  320. //BillIds []int64 `form:"bill_ids" json:"bill_ids"`
  321. // 绑定关系id列表
  322. BindIds []int64 `form:"bind_ids" json:"bind_ids"`
  323. // 1 现金 2 微信 3 支付宝 4 pos 5 转账
  324. PayType int32 `form:"pay_type" json:"pay_type"`
  325. // 应缴
  326. ShouldPayAmount int64 `form:"should_pay_amount" json:"should_pay_amount"`
  327. // 实缴
  328. PayAmount int64 `form:"pay_amount" json:"pay_amount"`
  329. // 备注
  330. Comment string `form:"comment" json:"comment"`
  331. }
  332. type ChargeBillPayRequest struct {
  333. base.Header
  334. ChargeBillPayBody
  335. }
  336. type ChargeBillPayResponse struct {
  337. base.Result
  338. Data v1.ChargeBillPayReply `json:"data"`
  339. }
  340. // 欠费缴费欠费列表
  341. type ChargeUnpayListQuery struct {
  342. // 对象id
  343. ObjId int64 `form:"obj_id" json:"obj_id"`
  344. // 对象类型
  345. ObjType int32 `form:"obj_type" json:"obj_type"`
  346. Page int64 `form:"page" json:"page"`
  347. PageSize int64 `form:"page_size" json:"page_size"`
  348. }
  349. type ChargeUnpayListRequest struct {
  350. base.Header
  351. ChargeUnpayListQuery
  352. }
  353. type ChargeUnpayListResponse struct {
  354. base.Result
  355. Data v1.ChargeUnpayListReply `json:"data"`
  356. }
  357. // 查看费用,费项列表
  358. type ChargeListQuery struct {
  359. // 对象id
  360. ObjId int64 `form:"obj_id" json:"obj_id"`
  361. // 对象类型
  362. ObjType int32 `form:"obj_type" json:"obj_type"`
  363. Page int64 `form:"page" json:"page"`
  364. PageSize int64 `form:"page_size" json:"page_size"`
  365. }
  366. type ChargeListRequest struct {
  367. base.Header
  368. ChargeListQuery
  369. }
  370. type ChargeListResponse struct {
  371. base.Result
  372. Data v1.ChargeListReply `json:"data"`
  373. }
  374. // 对象的某费项下的待缴账单列表
  375. type ChargeBillListQuery struct {
  376. Page int64 `form:"page" json:"page"`
  377. PageSize int64 `form:"page_size" json:"page_size"`
  378. BindId int64 `form:"bind_id" json:"bind_id"`
  379. }
  380. type ChargeBillListRequest struct {
  381. base.Header
  382. ChargeBillListQuery
  383. }
  384. type ChargeBillListResponse struct {
  385. base.Result
  386. Data v1.ChargeBillListReply `json:"data"`
  387. }
  388. // 应收账单中的对象列表
  389. type ChargeBillObjListQuery struct {
  390. Page int64 `form:"page" json:"page"`
  391. PageSize int64 `form:"page_size" json:"page_size"`
  392. }
  393. type ChargeBillObjListRequest struct {
  394. base.Header
  395. ChargeBillObjListQuery
  396. }
  397. type ChargeBillObjListResponse struct {
  398. base.Result
  399. Data v1.ChargeBillObjListReply `json:"data"`
  400. }
  401. // 应收账单中某对象的账单明细
  402. type ChargeObjBillListQuery struct {
  403. ObjId int64 `form:"obj_id" json:"obj_id"`
  404. ObjType int32 `form:"obj_type" json:"obj_type"`
  405. Page int64 `form:"page" json:"page"`
  406. PageSize int64 `form:"page_size" json:"page_size"`
  407. // 对象名称
  408. ObjName string `form:"obj_name" json:"obj_name"`
  409. // 费用类型
  410. ChargeType int32 `form:"charge_type" json:"charge_type"`
  411. // 费用名称
  412. ChargeName string `form:"charge_name" json:"charge_name"`
  413. }
  414. type ChargeObjBillListRequest struct {
  415. base.Header
  416. ChargeObjBillListQuery
  417. }
  418. type ChargeObjBillListResponse struct {
  419. base.Result
  420. Data v1.ChargeObjBillListReply `json:"data"`
  421. }
  422. // 变更时间
  423. type ChargeTimeSetBody struct {
  424. Start int64 `form:"start" json:"start"`
  425. // 仅车辆费用可以设结束时间
  426. End int64 `form:"end" json:"end"`
  427. BindId int64 `form:"bind_id" json:"bind_id"`
  428. }
  429. type ChargeTimeSetRequest struct {
  430. base.Header
  431. ChargeTimeSetBody
  432. }
  433. type ChargeTimeSetResponse struct {
  434. base.Result
  435. }
  436. // 小票和收据信息
  437. type ChargeOrderTicketQuery struct {
  438. OrderId string `form:"order_id" json:"order_id"`
  439. }
  440. type ChargeOrderTicketRequest struct {
  441. base.Header
  442. ChargeOrderTicketQuery
  443. }
  444. type ChargeOrderTicketResponse struct {
  445. base.Result
  446. Data v1.ChargeOrderTicketReply `json:"data"`
  447. }
  448. // 预缴物业费或车位费前获取对应的金额信息
  449. type ChargePrePayInfoQuery struct {
  450. BindId int64 `form:"bind_id" json:"bind_id"`
  451. // 月数
  452. Months int64 `form:"months" json:"months"`
  453. }
  454. type ChargePrePayInfoRequest struct {
  455. base.Header
  456. ChargePrePayInfoQuery
  457. }
  458. type ChargePrePayInfoResponse struct {
  459. base.Result
  460. Data v1.ChargePrePayInfoReply `json:"data"`
  461. }
  462. // 线下预缴物业费或车位费
  463. type ChargePrePayBody struct {
  464. BindId int64 `form:"bind_id" json:"bind_id"`
  465. Months int64 `form:"months" json:"months"`
  466. // 应缴金额
  467. ShouldPayAmount int64 `form:"should_pay_amount" json:"should_pay_amount"`
  468. // 实缴金额
  469. PayAmount int64 `form:"pay_amount" json:"pay_amount"`
  470. // 备注
  471. Comment string `form:"comment" json:"comment"`
  472. // 1 现金 2 微信 3 支付宝 4 pos 5 转账
  473. PayType int32 `form:"pay_type" json:"pay_type"`
  474. }
  475. type ChargePrePayRequest struct {
  476. base.Header
  477. ChargePrePayBody
  478. }
  479. type ChargePrePayResponse struct {
  480. base.Result
  481. Data v1.ChargePrePayReply `json:"data"`
  482. }
  483. // 已交账单列表
  484. type ChargePayedBillListQuery struct {
  485. // 对象名称
  486. ObjName string `form:"obj_name" json:"obj_name"`
  487. Page int64 `form:"page" json:"page"`
  488. PageSize int64 `form:"page_size" json:"page_size"`
  489. // 费用类型
  490. ChargeType int32 `form:"charge_type" json:"charge_type"`
  491. // 费用名称
  492. ChargeName string `form:"charge_name" json:"charge_name"`
  493. ObjType int32 `form:"obj_type" json:"obj_type"`
  494. }
  495. type ChargePayedBillListRequest struct {
  496. base.Header
  497. ChargePayedBillListQuery
  498. }
  499. type ChargePayedBillListResponse struct {
  500. base.Result
  501. Data v1.ChargePayedBillListReply `json:"data"`
  502. }
  503. // 作废账单
  504. type ChargeDelBillBody struct {
  505. BillId int64 `form:"bill_id" json:"bill_id"`
  506. DelReason string `form:"del_reason" json:"del_reason"`
  507. }
  508. type ChargeDelBillRequest struct {
  509. base.Header
  510. ChargeDelBillBody
  511. }
  512. type ChargeDelBillResponse struct {
  513. base.Result
  514. }
  515. // 恢复账单
  516. type ChargeRecoverBillBody struct {
  517. BillId int64 `form:"bill_id" json:"bill_id"`
  518. }
  519. type ChargeRecoverBillRequest struct {
  520. base.Header
  521. ChargeRecoverBillBody
  522. }
  523. type ChargeRecoverBillResponse struct {
  524. base.Result
  525. }
  526. // 作废账单列表
  527. type ChargeDelBillListQuery struct {
  528. // 对象名称
  529. ObjName string `form:"obj_name" json:"obj_name"`
  530. Page int64 `form:"page" json:"page"`
  531. PageSize int64 `form:"page_size" json:"page_size"`
  532. // 费用类型
  533. ChargeType int32 `form:"charge_type" json:"charge_type"`
  534. // 费用名称
  535. ChargeName string `form:"charge_name" json:"charge_name"`
  536. ObjType int32 `form:"obj_type" json:"obj_type"`
  537. }
  538. type ChargeDelBillListRequest struct {
  539. base.Header
  540. ChargeDelBillListQuery
  541. }
  542. type ChargeDelBillListResponse struct {
  543. base.Result
  544. Data v1.ChargeDelBillListReply `json:"data"`
  545. }
  546. // 缴费订单列表
  547. type ChargeOrderListQuery struct {
  548. ObjName string `form:"obj_name" json:"obj_name"`
  549. Page int64 `form:"page" json:"page"`
  550. PageSize int64 `form:"page_size" json:"page_size"`
  551. PayType int32 `form:"pay_type" json:"pay_type"`
  552. OrderId string `form:"order_id" json:"order_id"`
  553. // 1 待支付 2 已支付
  554. PayStatus int32 `form:"pay_status" json:"pay_status"`
  555. }
  556. type ChargeOrderListRequest struct {
  557. base.Header
  558. ChargeOrderListQuery
  559. }
  560. type ChargeOrderListResponse struct {
  561. base.Result
  562. Data v1.ChargeOrderListReply `json:"data"`
  563. }
  564. // 缴费订单详情
  565. type ChargeOrderInfoQuery struct {
  566. OrderId string `form:"order_id" json:"order_id"`
  567. }
  568. type ChargeOrderInfoRequest struct {
  569. base.Header
  570. ChargeOrderInfoQuery
  571. }
  572. type ChargeOrderInfoResponse struct {
  573. base.Result
  574. Data v1.ChargeOrderInfoReply `json:"data"`
  575. }
  576. // 确认已支付
  577. type ChargeOrderPayBody struct {
  578. OrderId string `form:"order_id" json:"order_id"`
  579. }
  580. type ChargeOrderPayRequest struct {
  581. base.Header
  582. ChargeOrderPayBody
  583. }
  584. type ChargeOrderPayResponse struct {
  585. base.Result
  586. }
  587. type PropertyPackageAddBody struct {
  588. // 1 按月 2 按文本
  589. PackageType int32 `form:"package_type" json:"package_type"`
  590. // 赠送月数
  591. GiveMonths int64 `form:"give_months" json:"give_months"`
  592. // 增送文本
  593. GiveContent string `form:"give_content" json:"give_content"`
  594. // 购买月数
  595. PayMonths int64 `form:"pay_months" json:"pay_months"`
  596. Enable bool `form:"enable" json:"enable"`
  597. }
  598. type PropertyPackageAddRequest struct {
  599. base.Header
  600. PropertyPackageAddBody
  601. }
  602. type PropertyPackageAddResponse struct {
  603. base.Result
  604. Data v1.PropertyPackageAddReply `json:"data"`
  605. }
  606. type PropertyPackageUpdateBody struct {
  607. // 1 按月 2 按文本
  608. PackageType int32 `form:"package_type" json:"package_type"`
  609. // 赠送月数
  610. GiveMonths int64 `form:"give_months" json:"give_months"`
  611. // 增送文本
  612. GiveContent string `form:"give_content" json:"give_content"`
  613. // 购买月数
  614. PayMonths int64 `form:"pay_months" json:"pay_months"`
  615. Enable bool `form:"enable" json:"enable"`
  616. Id int64 `form:"id"`
  617. }
  618. type PropertyPackageUpdateRequest struct {
  619. base.Header
  620. PropertyPackageUpdateBody
  621. }
  622. type PropertyPackageUpdateResponse struct {
  623. base.Result
  624. }
  625. type PropertyPackageDelQuery struct {
  626. Id int64 `form:"id"`
  627. }
  628. type PropertyPackageDelRequest struct {
  629. base.Header
  630. PropertyPackageDelQuery
  631. }
  632. type PropertyPackageDelResponse struct {
  633. base.Result
  634. }
  635. type PropertyPackageListQuery struct {
  636. Page int64 `form:"page" json:"page"`
  637. PageSize int64 `form:"page_size" json:"page_size"`
  638. }
  639. type PropertyPackageListRequest struct {
  640. base.Header
  641. PropertyPackageListQuery
  642. }
  643. type PropertyPackageListResponse struct {
  644. base.Result
  645. Data v1.PropertyPackageListReply `json:"data"`
  646. }
  647. type ChargeGenerateBillBody struct {
  648. BindId int64 `form:"bind_id" json:"bind_id"`
  649. End int64 `form:"end" json:"end"`
  650. }
  651. type ChargeGenerateBillRequest struct {
  652. base.Header
  653. ChargeGenerateBillBody
  654. }
  655. type ChargeGenerateBillResponse struct {
  656. base.Result
  657. }
  658. type ChargeUrgeSetBody struct {
  659. UrgeDay int64 `form:"urge_day" json:"urge_day"`
  660. // 1 仅业主 2 业主和家人 3 业主家人租客
  661. UrgeTarget int32 `form:"urge_target" json:"urge_target"`
  662. //1 仅短信 2 仅微信 3 短信和微信
  663. UrgeMsgType int32 `form:"urge_msg_type" json:"urge_msg_type"`
  664. // 催缴信息返回的id为0时填0
  665. Id int64 `form:"id" json:"id"`
  666. }
  667. type ChargeUrgeSetRequest struct {
  668. base.Header
  669. ChargeUrgeSetBody
  670. }
  671. type ChargeUrgeSetResponse struct {
  672. base.Result
  673. }
  674. type ChargeUrgeInfoRequest struct {
  675. base.Header
  676. }
  677. type ChargeUrgeInfoResponse struct {
  678. base.Result
  679. Data v1.ChargeUrgeInfoReply `json:"data"`
  680. }
  681. type TemplateRequest struct {
  682. base.Header
  683. }
  684. type TemplateData struct {
  685. Url string `json:"url"`
  686. }
  687. type TemplateResponse struct {
  688. base.Result
  689. Data TemplateData `json:"data"`
  690. }
  691. type ChargeUrgeBody struct {
  692. ObjId int64 `form:"obj_id" json:"obj_id"`
  693. ObjType int32 `form:"obj_type" json:"obj_type"`
  694. }
  695. type ChargeUrgeRequest struct {
  696. base.Header
  697. ChargeUrgeBody
  698. }
  699. type ChargeUrgeResponse struct {
  700. base.Result
  701. }
  702. type BatchUrgeQuery struct {
  703. ObjType int32 `form:"obj_type" json:"obj_type"`
  704. }
  705. type BatchUrgeRequest struct {
  706. base.Header
  707. BatchUrgeQuery
  708. }
  709. type BatchUrgeFeeItem struct {
  710. // 费用名称
  711. ChargeName string `json:"charge_name"`
  712. // 费用类型 1 物业费 2 水费 3 电费 4 气费 5 车位管理费 6 月租停车费 99 其他
  713. ChargeType int32 `json:"charge_type"`
  714. // 欠费金额
  715. Fee int64 `json:"fee"`
  716. }
  717. type BatchUrgeItem struct {
  718. // 房号/车位号
  719. ObjName string `json:"obj_name"`
  720. // 费用
  721. List []BatchUrgeFeeItem `json:"list"`
  722. }
  723. type BatchUrgeData struct {
  724. List []BatchUrgeItem `json:"list"`
  725. }
  726. type BatchUrgeResponse struct {
  727. base.Result
  728. Data BatchUrgeData `json:"data"`
  729. }