charge.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906
  1. package v1
  2. import (
  3. "property-applete-gateway/pb/v1"
  4. "property-applete-gateway/param/base"
  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. }
  214. type ChargeHouseNotBindListRequest struct {
  215. base.Header
  216. ChargeHouseNotBindListQuery
  217. }
  218. type ChargeHouseNotBindListResponse struct {
  219. base.Result
  220. Data v1.ChargeHouseNotBindListReply `json:"data"`
  221. }
  222. // 绑定了某项目的车位列表
  223. type ChargeSpaceBindedListQuery struct {
  224. ChargeId int64 `form:"charge_id" json:"charge_id"`
  225. Page int64 `form:"page" json:"page"`
  226. PageSize int64 `form:"page_size" json:"page_size"`
  227. }
  228. type ChargeSpaceBindedListRequest struct {
  229. base.Header
  230. ChargeSpaceBindedListQuery
  231. }
  232. type ChargeSpaceBindedListResponse struct {
  233. base.Result
  234. Data v1.ChargeSpaceBindedListReply `json:"data"`
  235. }
  236. // 可以绑定某项目的车位列表
  237. type ChargeSpaceNotBindListQuery struct {
  238. ChargeId int64 `form:"charge_id" json:"charge_id"`
  239. Page int64 `form:"page" json:"page"`
  240. PageSize int64 `form:"page_size" json:"page_size"`
  241. }
  242. type ChargeSpaceNotBindListRequest struct {
  243. base.Header
  244. ChargeSpaceNotBindListQuery
  245. }
  246. type ChargeSpaceNotBindListResponse struct {
  247. base.Result
  248. Data v1.ChargeSpaceNotBindListReply `json:"data"`
  249. }
  250. // 绑定了某项目的车辆列表
  251. type ChargeVehicleBindedListQuery struct {
  252. ChargeId int64 `form:"charge_id" json:"charge_id"`
  253. Page int64 `form:"page" json:"page"`
  254. PageSize int64 `form:"page_size" json:"page_size"`
  255. }
  256. type ChargeVehicleBindedListRequest struct {
  257. base.Header
  258. ChargeVehicleBindedListQuery
  259. }
  260. type ChargeVehicleBindedListResponse struct {
  261. base.Result
  262. Data v1.ChargeVehicleBindedListReply `json:"data"`
  263. }
  264. // 可以绑定某项目的车辆列表
  265. type ChargeVehicleNotBindListQuery struct {
  266. ChargeId int64 `form:"charge_id" json:"charge_id"`
  267. Page int64 `form:"page" json:"page"`
  268. PageSize int64 `form:"page_size" json:"page_size"`
  269. }
  270. type ChargeVehicleNotBindListRequest struct {
  271. base.Header
  272. ChargeVehicleNotBindListQuery
  273. }
  274. type ChargeVehicleNotBindListResponse struct {
  275. base.Result
  276. Data v1.ChargeVehicleNotBindListReply `json:"data"`
  277. }
  278. // 房屋收费 房屋列表
  279. type ChargeHouseGroupQuery struct {
  280. Page int64 `form:"page" json:"page"`
  281. PageSize int64 `form:"page_size" json:"page_size"`
  282. }
  283. type ChargeHouseGroupRequest struct {
  284. base.Header
  285. ChargeHouseGroupQuery
  286. }
  287. type ChargeHouseGroupResponse struct {
  288. base.Result
  289. Data v1.ChargeHouseGroupReply `json:"data"`
  290. }
  291. // 车位收费 车位列表
  292. type ChargeSpaceGroupQuery struct {
  293. Page int64 `form:"page" json:"page"`
  294. PageSize int64 `form:"page_size" json:"page_size"`
  295. }
  296. type ChargeSpaceGroupRequest struct {
  297. base.Header
  298. ChargeSpaceGroupQuery
  299. }
  300. type ChargeSpaceGroupResponse struct {
  301. base.Result
  302. Data v1.ChargeSpaceGroupReply `json:"data"`
  303. }
  304. // 车辆收费 车辆列表
  305. type ChargeVehicleGroupQuery struct {
  306. Page int64 `form:"page" json:"page"`
  307. PageSize int64 `form:"page_size" json:"page_size"`
  308. }
  309. type ChargeVehicleGroupRequest struct {
  310. base.Header
  311. ChargeVehicleGroupQuery
  312. }
  313. type ChargeVehicleGroupResponse struct {
  314. base.Result
  315. Data v1.ChargeVehicleGroupReply `json:"data"`
  316. }
  317. // 欠费线下缴费
  318. type ChargeBillPayBody struct {
  319. //BillIds []int64 `form:"bill_ids" json:"bill_ids"`
  320. // 绑定关系id列表
  321. BindIds []int64 `form:"bind_ids" json:"bind_ids"`
  322. // 1 现金 2 微信 3 支付宝 4 pos 5 转账
  323. PayType int32 `form:"pay_type" json:"pay_type"`
  324. // 应缴
  325. ShouldPayAmount int64 `form:"should_pay_amount" json:"should_pay_amount"`
  326. // 实缴
  327. PayAmount int64 `form:"pay_amount" json:"pay_amount"`
  328. // 备注
  329. Comment string `form:"comment" json:"comment"`
  330. }
  331. type ChargeBillPayRequest struct {
  332. base.Header
  333. ChargeBillPayBody
  334. }
  335. type ChargeBillPayResponse struct {
  336. base.Result
  337. Data v1.ChargeBillPayReply `json:"data"`
  338. }
  339. // 欠费缴费欠费列表
  340. type ChargeUnpayListQuery struct {
  341. // 对象id
  342. ObjId int64 `form:"obj_id" json:"obj_id"`
  343. // 对象类型
  344. ObjType int32 `form:"obj_type" json:"obj_type"`
  345. Page int64 `form:"page" json:"page"`
  346. PageSize int64 `form:"page_size" json:"page_size"`
  347. }
  348. type ChargeUnpayListRequest struct {
  349. base.Header
  350. ChargeUnpayListQuery
  351. }
  352. type ChargeUnpayListResponse struct {
  353. base.Result
  354. Data v1.ChargeUnpayListReply `json:"data"`
  355. }
  356. // 查看费用,费项列表
  357. type ChargeListQuery struct {
  358. // 对象id
  359. ObjId int64 `form:"obj_id" json:"obj_id"`
  360. // 对象类型
  361. ObjType int32 `form:"obj_type" json:"obj_type"`
  362. Page int64 `form:"page" json:"page"`
  363. PageSize int64 `form:"page_size" json:"page_size"`
  364. }
  365. type ChargeListRequest struct {
  366. base.Header
  367. ChargeListQuery
  368. }
  369. type ChargeListResponse struct {
  370. base.Result
  371. Data v1.ChargeListReply `json:"data"`
  372. }
  373. // 对象的某费项下的待缴账单列表
  374. type ChargeBillListQuery struct {
  375. Page int64 `form:"page" json:"page"`
  376. PageSize int64 `form:"page_size" json:"page_size"`
  377. BindId int64 `form:"bind_id" json:"bind_id"`
  378. }
  379. type ChargeBillListRequest struct {
  380. base.Header
  381. ChargeBillListQuery
  382. }
  383. type ChargeBillListResponse struct {
  384. base.Result
  385. Data v1.ChargeBillListReply `json:"data"`
  386. }
  387. // 应收账单中的对象列表
  388. type ChargeBillObjListQuery struct {
  389. Page int64 `form:"page" json:"page"`
  390. PageSize int64 `form:"page_size" json:"page_size"`
  391. }
  392. type ChargeBillObjListRequest struct {
  393. base.Header
  394. ChargeBillObjListQuery
  395. }
  396. type ChargeBillObjListResponse struct {
  397. base.Result
  398. Data v1.ChargeBillObjListReply `json:"data"`
  399. }
  400. // 应收账单中某对象的账单明细
  401. type ChargeObjBillListQuery struct {
  402. ObjId int64 `form:"obj_id" json:"obj_id"`
  403. ObjType int32 `form:"obj_type" json:"obj_type"`
  404. Page int64 `form:"page" json:"page"`
  405. PageSize int64 `form:"page_size" json:"page_size"`
  406. // 对象名称
  407. ObjName string `form:"obj_name" json:"obj_name"`
  408. // 费用类型
  409. ChargeType int32 `form:"charge_type" json:"charge_type"`
  410. // 费用名称
  411. ChargeName string `form:"charge_name" json:"charge_name"`
  412. }
  413. type ChargeObjBillListRequest struct {
  414. base.Header
  415. ChargeObjBillListQuery
  416. }
  417. type ChargeObjBillListResponse struct {
  418. base.Result
  419. Data v1.ChargeObjBillListReply `json:"data"`
  420. }
  421. // 变更时间
  422. type ChargeTimeSetBody struct {
  423. Start int64 `form:"start" json:"start"`
  424. // 仅车辆费用可以设结束时间
  425. End int64 `form:"end" json:"end"`
  426. BindId int64 `form:"bind_id" json:"bind_id"`
  427. }
  428. type ChargeTimeSetRequest struct {
  429. base.Header
  430. ChargeTimeSetBody
  431. }
  432. type ChargeTimeSetResponse struct {
  433. base.Result
  434. }
  435. // 小票和收据信息
  436. type ChargeOrderTicketQuery struct {
  437. OrderId string `form:"order_id" json:"order_id"`
  438. }
  439. type ChargeOrderTicketRequest struct {
  440. base.Header
  441. ChargeOrderTicketQuery
  442. }
  443. type ChargeOrderTicketResponse struct {
  444. base.Result
  445. Data v1.ChargeOrderTicketReply `json:"data"`
  446. }
  447. // 预缴物业费或车位费前获取对应的金额信息
  448. type ChargePrePayInfoQuery struct {
  449. BindId int64 `form:"bind_id" json:"bind_id"`
  450. // 月数
  451. Months int64 `form:"months" json:"months"`
  452. }
  453. type ChargePrePayInfoRequest struct {
  454. base.Header
  455. ChargePrePayInfoQuery
  456. }
  457. type ChargePrePayInfoResponse struct {
  458. base.Result
  459. Data v1.ChargePrePayInfoReply `json:"data"`
  460. }
  461. // 线下预缴物业费或车位费
  462. type ChargePrePayBody struct {
  463. BindId int64 `form:"bind_id" json:"bind_id"`
  464. Months int64 `form:"months" json:"months"`
  465. // 应缴金额
  466. ShouldPayAmount int64 `form:"should_pay_amount" json:"should_pay_amount"`
  467. // 实缴金额
  468. PayAmount int64 `form:"pay_amount" json:"pay_amount"`
  469. // 备注
  470. Comment string `form:"comment" json:"comment"`
  471. // 1 现金 2 微信 3 支付宝 4 pos 5 转账
  472. PayType int32 `form:"pay_type" json:"pay_type"`
  473. }
  474. type ChargePrePayRequest struct {
  475. base.Header
  476. ChargePrePayBody
  477. }
  478. type ChargePrePayResponse struct {
  479. base.Result
  480. Data v1.ChargePrePayReply `json:"data"`
  481. }
  482. // 已交账单列表
  483. type ChargePayedBillListQuery struct {
  484. // 对象名称
  485. ObjName string `form:"obj_name" json:"obj_name"`
  486. Page int64 `form:"page" json:"page"`
  487. PageSize int64 `form:"page_size" json:"page_size"`
  488. // 费用类型
  489. ChargeType int32 `form:"charge_type" json:"charge_type"`
  490. // 费用名称
  491. ChargeName string `form:"charge_name" json:"charge_name"`
  492. ObjType int32 `form:"obj_type" json:"obj_type"`
  493. }
  494. type ChargePayedBillListRequest struct {
  495. base.Header
  496. ChargePayedBillListQuery
  497. }
  498. type ChargePayedBillListResponse struct {
  499. base.Result
  500. Data v1.ChargePayedBillListReply `json:"data"`
  501. }
  502. // 作废账单
  503. type ChargeDelBillBody struct {
  504. BillId int64 `form:"bill_id" json:"bill_id"`
  505. DelReason string `form:"del_reason" json:"del_reason"`
  506. }
  507. type ChargeDelBillRequest struct {
  508. base.Header
  509. ChargeDelBillBody
  510. }
  511. type ChargeDelBillResponse struct {
  512. base.Result
  513. }
  514. // 恢复账单
  515. type ChargeRecoverBillBody struct {
  516. BillId int64 `form:"bill_id" json:"bill_id"`
  517. }
  518. type ChargeRecoverBillRequest struct {
  519. base.Header
  520. ChargeRecoverBillBody
  521. }
  522. type ChargeRecoverBillResponse struct {
  523. base.Result
  524. }
  525. // 作废账单列表
  526. type ChargeDelBillListQuery struct {
  527. // 对象名称
  528. ObjName string `form:"obj_name" json:"obj_name"`
  529. Page int64 `form:"page" json:"page"`
  530. PageSize int64 `form:"page_size" json:"page_size"`
  531. // 费用类型
  532. ChargeType int32 `form:"charge_type" json:"charge_type"`
  533. // 费用名称
  534. ChargeName string `form:"charge_name" json:"charge_name"`
  535. ObjType int32 `form:"obj_type" json:"obj_type"`
  536. }
  537. type ChargeDelBillListRequest struct {
  538. base.Header
  539. ChargeDelBillListQuery
  540. }
  541. type ChargeDelBillListResponse struct {
  542. base.Result
  543. Data v1.ChargeDelBillListReply `json:"data"`
  544. }
  545. // 缴费订单列表
  546. type ChargeOrderListQuery struct {
  547. ObjName string `form:"obj_name,json=objName,proto3" json:"obj_name"`
  548. Page int64 `form:"page,proto3" json:"page"`
  549. PageSize int64 `form:"page_size,json=pageSize,proto3" json:"page_size"`
  550. PayType int32 `form:"pay_type,json=payType,proto3" json:"pay_type"`
  551. OrderId string `form:"order_id,json=orderId,proto3" json:"order_id"`
  552. // 2 支付中 3 已支付
  553. PayStatus int32 `form:"pay_status,json=payStatus,proto3" json:"pay_status"`
  554. }
  555. type ChargeOrderListRequest struct {
  556. base.Header
  557. ChargeOrderListQuery
  558. }
  559. type ChargeOrderListResponse struct {
  560. base.Result
  561. Data v1.ChargeOrderListReply `json:"data"`
  562. }
  563. // 缴费订单详情
  564. type ChargeOrderInfoQuery struct {
  565. OrderId string `form:"order_id" json:"order_id"`
  566. }
  567. type ChargeOrderInfoRequest struct {
  568. base.Header
  569. ChargeOrderInfoQuery
  570. }
  571. type ChargeOrderInfoResponse struct {
  572. base.Result
  573. Data v1.ChargeOrderInfoReply `json:"data"`
  574. }
  575. // 确认已支付
  576. type ChargeOrderPayBody struct {
  577. OrderId string `form:"order_id" json:"order_id"`
  578. }
  579. type ChargeOrderPayRequest struct {
  580. base.Header
  581. ChargeOrderPayBody
  582. }
  583. type ChargeOrderPayResponse struct {
  584. base.Result
  585. }
  586. type PropertyPackageAddBody struct {
  587. // 1 按月 2 按文本
  588. PackageType int32 `form:"package_type" json:"package_type"`
  589. // 赠送月数
  590. GiveMonths int64 `form:"give_months" json:"give_months"`
  591. // 增送文本
  592. GiveContent string `form:"give_content" json:"give_content"`
  593. // 购买月数
  594. PayMonths int64 `form:"pay_months" json:"pay_months"`
  595. Enable bool `form:"enable" json:"enable"`
  596. }
  597. type PropertyPackageAddRequest struct {
  598. base.Header
  599. PropertyPackageAddBody
  600. }
  601. type PropertyPackageAddResponse struct {
  602. base.Result
  603. Data v1.PropertyPackageAddReply `json:"data"`
  604. }
  605. type PropertyPackageUpdateBody struct {
  606. // 1 按月 2 按文本
  607. PackageType int32 `form:"package_type" json:"package_type"`
  608. // 赠送月数
  609. GiveMonths int64 `form:"give_months" json:"give_months"`
  610. // 增送文本
  611. GiveContent string `form:"give_content" json:"give_content"`
  612. // 购买月数
  613. PayMonths int64 `form:"pay_months" json:"pay_months"`
  614. Enable bool `form:"enable" json:"enable"`
  615. Id int64 `form:"id"`
  616. }
  617. type PropertyPackageUpdateRequest struct {
  618. base.Header
  619. PropertyPackageUpdateBody
  620. }
  621. type PropertyPackageUpdateResponse struct {
  622. base.Result
  623. }
  624. type PropertyPackageDelQuery struct {
  625. Id int64 `form:"id"`
  626. }
  627. type PropertyPackageDelRequest struct {
  628. base.Header
  629. PropertyPackageDelQuery
  630. }
  631. type PropertyPackageDelResponse struct {
  632. base.Result
  633. }
  634. type PropertyPackageListQuery struct {
  635. Page int64 `form:"page" json:"page"`
  636. PageSize int64 `form:"page_size" json:"page_size"`
  637. }
  638. type PropertyPackageListRequest struct {
  639. base.Header
  640. PropertyPackageListQuery
  641. }
  642. type PropertyPackageListResponse struct {
  643. base.Result
  644. Data v1.PropertyPackageListReply `json:"data"`
  645. }
  646. type ChargeGenerateBillBody struct {
  647. BindId int64 `form:"bind_id" json:"bind_id"`
  648. End int64 `form:"end" json:"end"`
  649. }
  650. type ChargeGenerateBillRequest struct {
  651. base.Header
  652. ChargeGenerateBillBody
  653. }
  654. type ChargeGenerateBillResponse struct {
  655. base.Result
  656. }
  657. type ChargeUrgeSetBody struct {
  658. UrgeDay int64 `form:"urge_day" json:"urge_day"`
  659. // 1 仅业主 2 业主和家人 3 业主家人租客
  660. UrgeTarget int32 `form:"urge_target" json:"urge_target"`
  661. //1 仅短信 2 仅微信 3 短信和微信
  662. UrgeMsgType int32 `form:"urge_msg_type" json:"urge_msg_type"`
  663. // 催缴信息返回的id为0时填0
  664. Id int64 `form:"id" json:"id"`
  665. }
  666. type ChargeUrgeSetRequest struct {
  667. base.Header
  668. ChargeUrgeSetBody
  669. }
  670. type ChargeUrgeSetResponse struct {
  671. base.Result
  672. }
  673. type ChargeUrgeInfoRequest struct {
  674. base.Header
  675. }
  676. type ChargeUrgeInfoResponse struct {
  677. base.Result
  678. Data v1.ChargeUrgeInfoReply `json:"data"`
  679. }
  680. type ChargePowerTemplateRequest struct {
  681. base.Header
  682. }
  683. type ChargePowerTemplateData struct {
  684. Url string `json:"url"`
  685. }
  686. type ChargePowerTemplateResponse struct {
  687. base.Result
  688. Data ChargePowerTemplateData `json:"data"`
  689. }
  690. type ChargeUrgeBody struct {
  691. ObjId int64 `form:"obj_id" json:"obj_id"`
  692. ObjType int32 `form:"obj_type" json:"obj_type"`
  693. }
  694. type ChargeUrgeRequest struct {
  695. base.Header
  696. ChargeUrgeBody
  697. }
  698. type ChargeUrgeResponse struct {
  699. base.Result
  700. }
  701. type BatchUrgeQuery struct {
  702. ObjType int32 `form:"obj_type" json:"obj_type"`
  703. }
  704. type BatchUrgeRequest struct {
  705. base.Header
  706. BatchUrgeQuery
  707. }
  708. type BatchUrgeFeeItem struct {
  709. // 费用名称
  710. ChargeName string `json:"charge_name"`
  711. // 费用类型 1 物业费 2 水费 3 电费 4 气费 5 车位管理费 6 月租停车费 99 其他
  712. ChargeType int32 `json:"charge_type"`
  713. // 欠费金额
  714. Fee int64 `json:"fee"`
  715. }
  716. type BatchUrgeItem struct {
  717. // 房号/车位号
  718. ObjName string `json:"obj_name"`
  719. // 费用
  720. List []BatchUrgeFeeItem `json:"list"`
  721. }
  722. type BatchUrgeData struct {
  723. List []BatchUrgeItem `json:"list"`
  724. }
  725. type BatchUrgeResponse struct {
  726. base.Result
  727. Data BatchUrgeData `json:"data"`
  728. }
  729. // 欠费线上缴费
  730. type ChargeBillPayByHouseholdBody struct {
  731. //BillIds []int64 `form:"bill_ids" json:"bill_ids"`
  732. // 绑定关系id列表
  733. BindIds []int64 `form:"bind_ids" json:"bind_ids"`
  734. // 应缴
  735. ShouldPayAmount int64 `form:"should_pay_amount" json:"should_pay_amount"`
  736. // 实缴
  737. PayAmount int64 `form:"pay_amount" json:"pay_amount"`
  738. // 备注
  739. Comment string `form:"comment" json:"comment"`
  740. }
  741. type ChargeBillPayByHouseholdRequest struct {
  742. base.Header
  743. ChargeBillPayByHouseholdBody
  744. }
  745. type ChargeBillPayByHouseholdResponse struct {
  746. base.Result
  747. Data v1.ChargeBillPayByHouseholdReply `json:"data"`
  748. }