charge.proto 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-garden/pb/v1";
  6. message ChargeConfAddRequest {
  7. int64 garden_id = 1;
  8. // 费用类型1 物业费 2 水费 3 电费 4 气费
  9. int32 charge_type = 2;
  10. // 费用名称
  11. string charge_name = 3;
  12. // 缴费时间类型 1 周期性缴 2 一次性
  13. int32 charge_time_type = 4;
  14. // 账单生成周期 1 按月 2 按季度 3 半年 4 年
  15. int32 bill_period = 5;
  16. // 账单周期计算方式 1自然周期 2 费用生效时间
  17. int32 bill_period_type = 6;
  18. // 1 按房屋面积 2 按使用面积 3 固定费用 4 按使用量 5 固定费用
  19. int32 charge_basis = 7;
  20. // 滞纳金开启关闭
  21. bool late_fee_enable = 8;
  22. // 固定费用
  23. int64 fix_amount = 9;
  24. // 固定费用别名
  25. string fix_amount_name = 10;
  26. // 费用生效时间
  27. int64 charge_effective_time = 11;
  28. // 单价
  29. int64 unit_price = 12;
  30. // 账单生成后xx天开始算滞纳金
  31. int64 late_fee_day = 13;
  32. // 滞纳金封顶天数
  33. int64 late_fee_max_days = 14;
  34. // 滞纳金比例 1代表万分之1
  35. int64 late_fee_percent = 15;
  36. }
  37. message ChargeConfAddReply {
  38. int64 id = 1;
  39. }
  40. message ChargeConfUpdateRequest {
  41. int64 garden_id = 1;
  42. // 费用类型1 物业费 2 水费 3 电费 4 气费
  43. int32 charge_type = 2;
  44. // 费用名称
  45. string charge_name = 3;
  46. // 缴费时间类型 1 周期性缴 2 一次性
  47. int32 charge_time_type = 4;
  48. // 账单生成周期 1 按月 2 按季度 3 半年 4 年
  49. int32 bill_period = 5;
  50. // 账单周期计算方式 1自然周期 2 费用生效时间
  51. int32 bill_period_type = 6;
  52. // 1 按房屋面积 2 按使用面积 3 固定费用 4 按使用量 5 固定费用
  53. int32 charge_basis = 7;
  54. // 滞纳金开启关闭
  55. bool late_fee_enable = 8;
  56. // 固定费用
  57. int64 fix_amount = 9;
  58. // 固定费用别名
  59. string fix_amount_name = 10;
  60. // 费用生效时间
  61. int64 charge_effective_time = 11;
  62. // 单价
  63. int64 unit_price = 12;
  64. // 账单生成后xx天开始算滞纳金
  65. int64 late_fee_day = 13;
  66. // 滞纳金封顶天数
  67. int64 late_fee_max_days = 14;
  68. // 滞纳金比例 1代表万分之1
  69. int64 late_fee_percent = 15;
  70. int64 id = 16;
  71. }
  72. message ChargeConfUpdateReply {
  73. ChargeConfUpdateRequest origin = 1;
  74. }
  75. message ChargeConfDelRequest {
  76. int64 id = 1;
  77. int64 garden_id = 2;
  78. }
  79. message ChargeConfDelReply {
  80. ChargeConfUpdateRequest origin = 1;
  81. }
  82. message ChargeBindRequest {
  83. int64 garden_id = 1;
  84. repeated int64 obj_ids = 2;
  85. int64 charge_id = 3;
  86. int64 start = 4;
  87. int64 end = 5;
  88. int64 vehicle_fee = 6;
  89. }
  90. message ChargeBindReply {
  91. }
  92. message ChargeUnbindRequest {
  93. int64 obj_id = 1;
  94. int64 garden_id = 2;
  95. int64 charge_id = 3;
  96. }
  97. message ChargeUnbindData {
  98. int64 id = 1;
  99. int64 gargen_id = 2;
  100. int64 charge_id = 3;
  101. int64 obj_id = 4;
  102. }
  103. message ChargeUnbindReply {
  104. ChargeUnbindData origin = 1;
  105. }
  106. message ChargeConfListRequest {
  107. int64 page = 1;
  108. int64 page_size = 2;
  109. int32 charge_type = 3;
  110. int32 charge_name = 4;
  111. int64 garden_id = 5;
  112. }
  113. message ChargeConfItem {
  114. int64 garden_id = 1;
  115. // 费用类型1 物业费 2 水费 3 电费 4 气费
  116. int32 charge_type = 2;
  117. // 费用名称
  118. string charge_name = 3;
  119. // 缴费时间类型 1 周期性缴 2 一次性
  120. int32 charge_time_type = 4;
  121. // 账单生成周期 1 按月 2 按季度 3 半年 4 年
  122. int32 bill_period = 5;
  123. // 账单周期计算方式 1自然周期 2 费用生效时间
  124. int32 bill_period_type = 6;
  125. // 1 按房屋面积 2 按使用面积 3 固定费用 4 按使用量 5 固定费用
  126. int32 charge_basis = 7;
  127. // 滞纳金开启关闭
  128. bool late_fee_enable = 8;
  129. // 固定费用
  130. int64 fix_amount = 9;
  131. // 固定费用别名
  132. string fix_amount_name = 10;
  133. // 费用生效时间
  134. int64 charge_effective_time = 11;
  135. // 单价
  136. int64 unit_price = 12;
  137. // 账单生成后xx天开始算滞纳金
  138. int64 late_fee_day = 13;
  139. // 滞纳金封顶天数
  140. int64 late_fee_max_days = 14;
  141. // 滞纳金比例 1代表万分之1
  142. int64 late_fee_percent = 15;
  143. int64 id = 16;
  144. }
  145. message ChargeConfListReply {
  146. int64 total = 1;
  147. int64 page = 2;
  148. repeated ChargeConfItem list = 3;
  149. }
  150. // 绑定了某项目的房屋列表
  151. message ChargeHouseBindedListRequest {
  152. int64 garden_id = 1;
  153. int64 charge_id = 2;
  154. int64 page = 3;
  155. int64 page_size = 4;
  156. }
  157. message ChargeHouseData {
  158. int64 house_id = 1;
  159. // 门牌号
  160. string house_number = 2;
  161. // 房屋号
  162. string house_name = 3;
  163. int32 house_type = 4;
  164. int64 layer = 5;
  165. double house_area = 6;
  166. double house_used_area = 7;
  167. int32 house_status = 8;
  168. int64 start = 9;
  169. }
  170. message ChargeHouseBindedListReply {
  171. int64 page = 1;
  172. int64 total = 2;
  173. repeated ChargeHouseData list = 3;
  174. }
  175. // 未绑定某项目的房屋列表(对物业和水电:只要绑定了一种类型的项目,不管是否绑定本项目都不在该列表)
  176. message ChargeHouseNotBindListRequest {
  177. int64 garden_id = 1;
  178. int64 charge_id = 2;
  179. int64 page = 3;
  180. int64 page_size = 4;
  181. int64 building_id = 5;
  182. int64 unit_id = 6;
  183. int64 layer = 7;
  184. int64 house_id = 8;
  185. string house_number = 9;
  186. }
  187. message ChargeHouseNotBindListReply {
  188. int64 page = 1;
  189. int64 total = 2;
  190. repeated ChargeHouseData list = 3;
  191. }
  192. // 绑定了某项目的车位列表
  193. message ChargeSpaceBindedListRequest {
  194. int64 garden_id = 1;
  195. int64 charge_id = 2;
  196. int64 page = 3;
  197. int64 page_size = 4;
  198. }
  199. message ChargeSpaceData {
  200. int64 space_id = 1;
  201. string space_number = 2;
  202. string park_name = 3;
  203. string park_number = 4;
  204. int32 space_type = 5;
  205. double space_area = 6;
  206. int32 space_status = 7;
  207. int64 start = 8;
  208. }
  209. message ChargeSpaceBindedListReply {
  210. int64 page = 1;
  211. int64 total = 2;
  212. repeated ChargeSpaceData list = 3;
  213. }
  214. // 未绑定某项目的车位列表(只要绑定了一种类型的项目,不管是否绑定本项目都不在该列表)
  215. message ChargeSpaceNotBindListRequest {
  216. int64 garden_id = 1;
  217. int64 charge_id = 2;
  218. int64 page = 3;
  219. int64 page_size = 4;
  220. }
  221. message ChargeSpaceNotBindListReply {
  222. int64 page = 1;
  223. int64 total = 2;
  224. repeated ChargeSpaceData list = 3;
  225. }
  226. // 绑定了某项目的车辆列表
  227. message ChargeVehicleBindedListRequest {
  228. int64 garden_id = 1;
  229. int64 charge_id = 2;
  230. int64 page = 3;
  231. int64 page_size = 4;
  232. }
  233. message ChargeVehicleData {
  234. int64 vehicle_id = 1;
  235. string plate_no = 2;
  236. int32 vehicle_type = 3;
  237. string brand = 4;
  238. string displacement = 5;
  239. int32 seat = 6;
  240. int64 start = 7;
  241. int64 end = 8;
  242. bool is_custom = 9;
  243. int64 custom_fee = 10;
  244. }
  245. message ChargeVehicleBindedListReply {
  246. int64 page = 1;
  247. int64 total = 2;
  248. repeated ChargeVehicleData list = 3;
  249. }
  250. // 未绑定某项目的车辆列表(只要绑定了一种类型的项目,不管是否绑定本项目都不在该列表)
  251. message ChargeVehicleNotBindListRequest {
  252. int64 garden_id = 1;
  253. int64 charge_id = 2;
  254. int64 page = 3;
  255. int64 page_size = 4;
  256. }
  257. message ChargeVehicleNotBindListReply {
  258. int64 page = 1;
  259. int64 total = 2;
  260. repeated ChargeVehicleData list = 3;
  261. }
  262. // 收费中的房屋列表
  263. message ChargeHouseGroupRequest {
  264. int64 page = 1;
  265. int64 page_size = 2;
  266. int64 garden_id = 3;
  267. int64 obj_id = 4;
  268. }
  269. message ChargeHouseGroupItem {
  270. int64 house_id = 1;
  271. string house_name = 2;
  272. int64 layer = 3;
  273. int32 house_type = 4;
  274. int32 house_status = 5;
  275. double house_area = 6;
  276. double house_used_area = 7;
  277. // 房屋与物业费的绑定id
  278. int64 house_property_bind_id=8;
  279. // 是否有欠费账单
  280. bool has_unpay_bill = 9;
  281. }
  282. message ChargeHouseGroupReply {
  283. int64 page = 1;
  284. int64 total = 2;
  285. repeated ChargeHouseGroupItem list = 3;
  286. }
  287. // 收费中的车位列表
  288. message ChargeSpaceGroupRequest {
  289. int64 page = 1;
  290. int64 page_size = 2;
  291. int64 garden_id = 3;
  292. int64 obj_id = 4;
  293. }
  294. message ChargeSpaceGroupItem {
  295. int64 space_id = 1;
  296. double space_area = 2;
  297. int32 space_type = 3;
  298. string space_number = 4;
  299. string park_number = 5;
  300. string park_name = 6;
  301. int32 space_status = 7;
  302. // 是否有欠费账单
  303. bool has_unpay_bill = 8;
  304. // 车位与费用的绑定id
  305. int64 space_bind_id=9;
  306. }
  307. message ChargeSpaceGroupReply {
  308. int64 page = 1;
  309. int64 total = 2;
  310. repeated ChargeSpaceGroupItem list = 3;
  311. }
  312. // 收费中的车辆列表
  313. message ChargeVehicleGroupRequest {
  314. int64 page = 1;
  315. int64 page_size = 2;
  316. int64 garden_id = 3;
  317. int64 obj_id = 4;
  318. }
  319. message ChargeVehicleGroupItem {
  320. int64 vehicle_id = 1;
  321. string plate_no = 2;
  322. string displacement = 3;
  323. int32 vehicle_type = 4;
  324. string brand = 5;
  325. int32 seat = 6;
  326. }
  327. message ChargeVehicleGroupReply {
  328. int64 page = 1;
  329. int64 total = 2;
  330. repeated ChargeVehicleGroupItem list = 3;
  331. }
  332. // 抄表相关
  333. message PowerRecordAddRequest {
  334. int64 garden_id = 1;
  335. int64 house_id = 2;
  336. double last_amount = 3;
  337. double current_amount = 4;
  338. int64 start = 5;
  339. int64 end = 6;
  340. int64 read_at = 7;
  341. string comment = 8;
  342. int32 charge_type = 9;
  343. }
  344. message PowerRecordAddReply {
  345. }
  346. message PowerRecordUpdateRequest {
  347. int64 garden_id = 1;
  348. int64 house_id = 2;
  349. double last_amount = 3;
  350. double current_amount = 4;
  351. int64 start = 5;
  352. int64 end = 6;
  353. int64 read_at = 7;
  354. string comment = 8;
  355. int64 id = 9;
  356. int32 charge_type = 10;
  357. }
  358. message PowerRecordUpdateReply {
  359. PowerRecordUpdateRequest origin = 1;
  360. }
  361. message PowerRecordBatchAddRequest {
  362. int64 garden_id = 1;
  363. int32 charge_type = 2;
  364. repeated PowerRecordBatchData list = 3;
  365. }
  366. message PowerRecordBatchData {
  367. double last_amount = 1;
  368. double current_amount = 2;
  369. int64 start = 3;
  370. int64 end = 4;
  371. int64 read_at = 5;
  372. string comment = 6;
  373. string building_number = 7;
  374. int64 unit_number = 8;
  375. string house_number = 9;
  376. }
  377. message PowerRecordBatchAddReply {
  378. }
  379. message PowerRecordDelRequest {
  380. int64 garden_id = 1;
  381. int64 id = 2;
  382. }
  383. message PowerRecordDelReply {
  384. PowerRecordUpdateRequest origin = 1;
  385. }
  386. message PowerRecordListRequest {
  387. int64 house_id = 1;
  388. int32 charge_type = 2;
  389. int64 garden_id = 3;
  390. int32 pay_status = 4;
  391. int64 page = 5;
  392. int64 page_size = 6;
  393. }
  394. message PowerRecordItem {
  395. int64 id = 1;
  396. int32 charge_type = 2;
  397. double last_amount = 3;
  398. double current_amount = 4;
  399. int64 start = 5;
  400. int64 end = 6;
  401. int64 read_at = 7;
  402. string comment = 8;
  403. int64 house_id = 9;
  404. string house_name = 10;
  405. bool has_bill = 11;
  406. int64 created_at = 12;
  407. }
  408. message PowerRecordListReply {
  409. int64 total = 1;
  410. int64 page = 2;
  411. repeated PowerRecordItem list = 3;
  412. }
  413. message ChargeBillPayRequest {
  414. int64 garden_id = 1;
  415. repeated int64 bill_ids = 2;
  416. repeated int64 bind_ids = 3;
  417. int32 pay_type = 4;
  418. int64 should_pay_amount = 5;
  419. int64 pay_amount = 6;
  420. string comment = 7;
  421. }
  422. message ChargeBillPayReply {
  423. string order_id = 1;
  424. }
  425. // 欠费列表
  426. message ChargeUnpayListRequest {
  427. int64 garden_id = 1;
  428. int64 obj_id = 2;
  429. int32 obj_type = 3;
  430. int64 page = 4;
  431. int64 page_size = 5;
  432. int64 charge_type = 6;
  433. int64 house_id = 7;
  434. int32 status = 8;
  435. }
  436. message ChargeUnpayItem {
  437. int64 bind_id = 1;
  438. int32 charge_type = 2;
  439. string charge_name = 3;
  440. int32 charge_time_type = 4;
  441. int64 bill_count = 5;
  442. int64 unpay_amount = 6;
  443. }
  444. message ChargeUnpayListReply {
  445. int64 page = 1;
  446. int64 total = 2;
  447. repeated ChargeUnpayItem list = 3;
  448. }
  449. // 查看费用,费项列表
  450. message ChargeListRequest {
  451. int64 garden_id = 1;
  452. int64 obj_id = 2;
  453. int32 obj_type = 3;
  454. int64 page = 4;
  455. int64 page_size = 5;
  456. int32 charge_type = 6;
  457. }
  458. message ChargeItem {
  459. int64 bind_id = 1;
  460. int32 charge_type = 2;
  461. string charge_name = 3;
  462. int32 charge_time_type = 4;
  463. string created_at = 5;
  464. string start = 6;
  465. string end = 7;
  466. string status = 8;
  467. string desc = 9;
  468. bool has_bill = 10;
  469. }
  470. message ChargeListReply {
  471. int64 page = 1;
  472. int64 total = 2;
  473. repeated ChargeItem list = 3;
  474. }
  475. // 费项账单
  476. message ChargeBillListRequest {
  477. int64 garden_id = 1;
  478. int64 bind_id = 2;
  479. int64 page = 3;
  480. int64 page_size = 4;
  481. int32 status = 5;
  482. }
  483. message ChargeBillItem {
  484. string start = 1;
  485. string end = 2;
  486. int32 charge_type = 3;
  487. string charge_name = 4;
  488. int64 amount = 5;
  489. double last_used = 6;
  490. double current_used = 7;
  491. int64 late_fee = 8;
  492. int64 bill_id = 9;
  493. string charge_desc = 10;
  494. int32 obj_type = 11;
  495. int64 obj_id = 12;
  496. string obj_name = 13;
  497. int64 late_days = 14;
  498. }
  499. message ChargeBillListReply {
  500. int64 total = 1;
  501. int64 page = 2;
  502. int32 charge_type = 3;
  503. string charge_name = 4;
  504. int64 should_pay_amount = 5;
  505. repeated ChargeBillItem list = 6;
  506. }
  507. // 应收账单中的对象列表
  508. message ChargeBillObjListRequest {
  509. int64 garden_id = 1;
  510. int64 page = 2;
  511. int64 page_size = 4;
  512. }
  513. message ChargeBillObjItem {
  514. string obj_name = 1;
  515. int64 obj_id = 2;
  516. int32 obj_type = 3;
  517. int64 bill_count = 4;
  518. int64 should_pay_amount = 5;
  519. }
  520. message ChargeBillObjListReply {
  521. int64 total = 1;
  522. int64 page = 2;
  523. repeated ChargeBillObjItem list = 3;
  524. }
  525. // 对象的账单明细
  526. message ChargeObjBillListRequest {
  527. int64 garden_id = 1;
  528. int64 obj_id = 2;
  529. int64 page = 3;
  530. int64 page_size = 4;
  531. int32 obj_type = 5;
  532. bool all = 6;
  533. string obj_name = 7;
  534. string charge_name = 8;
  535. int32 charge_type = 9;
  536. }
  537. message ChargeObjBillListReply {
  538. int64 total = 1;
  539. int64 page = 2;
  540. repeated ChargeBillItem list = 3;
  541. int64 should_pay_amount = 4;
  542. }
  543. // 变更时间
  544. message ChargeTimeSetRequest {
  545. int64 garden_id = 1;
  546. int64 start = 2;
  547. int64 end = 3;
  548. int64 bind_id = 4;
  549. }
  550. message ChargeTimeSetReply {
  551. }
  552. message ChargeOrderTicketRequest {
  553. int64 garden_id = 1;
  554. string order_id = 2;
  555. }
  556. message ChargeOrderTicketItem {
  557. // 费用类型
  558. int32 charge_type = 1;
  559. // 费用名称
  560. string charge_name = 2;
  561. // 收费范围
  562. string start = 3;
  563. string end = 4;
  564. // 房屋/车位/车辆
  565. string obj_name = 5;
  566. // 支付时间
  567. string pay_time = 6;
  568. // 单价
  569. int64 unit_price = 7;
  570. // 固定费用
  571. int64 fix_amount = 8;
  572. // 金额 不包含滞纳金
  573. int64 amount = 9;
  574. // 滞纳金
  575. int64 late_fee = 10;
  576. // 面积/用量
  577. double area_used = 11;
  578. // 1 房屋 2 车位 3 车辆
  579. int32 obj_type = 12;
  580. // 自定义费用
  581. int64 custom_fee = 13;
  582. }
  583. message ChargeOrderTicketReply {
  584. // 备注
  585. string comment = 1;
  586. // 应付总金额 包含滞纳金
  587. int64 should_pay_amount = 2;
  588. // 账单小票条目
  589. repeated ChargeOrderTicketItem list = 3;
  590. }
  591. // 预缴获取金额信息
  592. message ChargePrePayInfoRequest {
  593. int64 garden_id = 1;
  594. int64 bind_id = 2;
  595. int64 months = 3;
  596. }
  597. message ChargePrePayInfoReply {
  598. string charge_name = 1;
  599. int32 charge_type = 2;
  600. string charge_desc = 3;
  601. int64 should_pay_amount = 4;
  602. int64 start = 5;
  603. int64 end = 6;
  604. }
  605. // 物业或车位费预缴
  606. message ChargePrePayRequest {
  607. int64 garden_id = 1;
  608. int64 bind_id = 2;
  609. int64 months = 3;
  610. int64 should_pay_amount = 4;
  611. int64 pay_amount = 5;
  612. string comment = 6;
  613. int32 pay_type = 7;
  614. }
  615. message ChargePrePayReply {
  616. string order_id = 1;
  617. }
  618. // 已缴账单列表
  619. message ChargePayedBillListRequest {
  620. int64 garden_id = 1;
  621. string obj_name = 2;
  622. int64 page = 3;
  623. int64 page_size = 4;
  624. int32 charge_type = 5;
  625. string charge_name = 6;
  626. int64 house_id = 7;
  627. int64 pay_time = 8;
  628. int32 obj_type = 9;
  629. }
  630. message ChargePayedBillItem {
  631. string start = 1;
  632. string end = 2;
  633. int32 charge_type = 3;
  634. string charge_name = 4;
  635. int64 amount = 5;
  636. double last_used = 6;
  637. double current_used = 7;
  638. int64 late_fee = 8;
  639. int64 bill_id = 9;
  640. string charge_desc = 10;
  641. string pay_time = 11;
  642. int32 pay_type = 12;
  643. string obj_name = 13;
  644. int32 obj_type = 14;
  645. }
  646. message ChargePayedBillListReply {
  647. int64 page = 1;
  648. int64 total = 2;
  649. repeated ChargePayedBillItem list = 3;
  650. }
  651. // 作废账单
  652. message ChargeDelBillRequest {
  653. int64 garden_id = 1;
  654. int64 bill_id = 2;
  655. string del_reason = 3;
  656. }
  657. message ChargeDelBillReply {
  658. }
  659. // 恢复账单
  660. message ChargeRecoverBillRequest {
  661. int64 garden_id = 1;
  662. int64 bill_id = 2;
  663. }
  664. message ChargeRecoverBillReply {
  665. }
  666. // 作废账单列表
  667. message ChargeDelBillListRequest {
  668. int64 garden_id = 1;
  669. string obj_name = 2;
  670. int64 page = 3;
  671. int64 page_size = 4;
  672. int32 charge_type = 5;
  673. string charge_name = 6;
  674. int32 obj_type = 7;
  675. }
  676. message ChargeDelBillItem {
  677. string start = 1;
  678. string end = 2;
  679. int32 charge_type = 3;
  680. string charge_name = 4;
  681. int64 amount = 5;
  682. double last_used = 6;
  683. double current_used = 7;
  684. int64 late_fee = 8;
  685. int64 bill_id = 9;
  686. string charge_desc = 10;
  687. string pay_time = 11;
  688. int32 pay_type = 12;
  689. string obj_name = 13;
  690. string del_at = 14;
  691. string del_reason = 15;
  692. string household_name = 16;
  693. string household_phone = 17;
  694. int32 obj_type = 18;
  695. }
  696. message ChargeDelBillListReply {
  697. int64 page = 1;
  698. int64 total = 2;
  699. repeated ChargeDelBillItem list = 3;
  700. }
  701. // 缴费订单列表
  702. message ChargeOrderListRequest {
  703. int64 garden_id = 1;
  704. string obj_name = 2;
  705. int64 page = 3;
  706. int64 page_size = 4;
  707. int32 pay_type = 5;
  708. string order_id = 6;
  709. int32 pay_status = 7;
  710. int64 uid = 8;
  711. }
  712. message ChargeOrderItem {
  713. string order_id = 1;
  714. string pay_time = 2;
  715. int32 pay_type = 3;
  716. int64 should_pay_amount = 4;
  717. int64 pay_amount = 5;
  718. string obj_name = 6;
  719. string paying_desc = 7;
  720. string transaction_id = 8;
  721. string comment = 9;
  722. // 1 待支付 2 已支付
  723. int32 status = 10;
  724. // 账单数
  725. int64 bill_count = 11;
  726. string desc = 12;
  727. }
  728. message ChargeOrderListReply {
  729. int64 page = 1;
  730. int64 total = 2;
  731. repeated ChargeOrderItem list = 3;
  732. }
  733. // 订单详情
  734. message ChargeOrderInfoRequest {
  735. int64 garden_id = 1;
  736. string order_id = 2;
  737. }
  738. message ChargeOrderBillItem {
  739. string start = 1;
  740. string end = 2;
  741. int32 charge_type = 3;
  742. string charge_name = 4;
  743. int64 amount = 5;
  744. double last_used = 6;
  745. double current_used = 7;
  746. int64 late_fee = 8;
  747. int64 bill_id = 9;
  748. string charge_desc = 10;
  749. string obj_name = 13;
  750. }
  751. // 确认支付
  752. message ChargeOrderPayRequest {
  753. int64 garden_id = 1;
  754. string order_id = 2;
  755. int64 pay_time = 3;
  756. string transaction_id = 4;
  757. int64 amount = 5;
  758. bool is_comfirm = 6;
  759. }
  760. message ChargeOrderPayReply {
  761. }
  762. // 取消订单
  763. message ChargeOrderCancelRequest {
  764. int64 garden_id = 1;
  765. string order_id = 2;
  766. // true 未支付订单中用户主动取消,false 前端判断未支付时主动调接口删除
  767. bool by_user = 3;
  768. }
  769. message ChargeOrderCancelReply {
  770. }
  771. message ChargeOrderInfoReply {
  772. repeated ChargeOrderBillItem list = 1;
  773. }
  774. // 物业套餐预缴设置
  775. message PropertyPackageAddRequest {
  776. int64 garden_id = 1;
  777. // 1 按月 2 按文本
  778. int32 package_type = 2;
  779. // 赠送月数
  780. int64 give_months = 3;
  781. // 增送文本
  782. string give_content = 4;
  783. // 购买月数
  784. int64 pay_months = 5;
  785. bool enable = 6;
  786. }
  787. message PropertyPackageAddReply {
  788. int64 id = 1;
  789. }
  790. message PropertyPackageUpdateRequest {
  791. int64 garden_id = 1;
  792. // 1 按月 2 按文本
  793. int32 package_type = 2;
  794. // 赠送月数
  795. int64 give_months = 3;
  796. // 增送文本
  797. string give_content = 4;
  798. // 购买月数
  799. int64 pay_months = 5;
  800. bool enable = 6;
  801. int64 id = 7;
  802. }
  803. message PropertyPackageUpdateReply {
  804. PropertyPackageUpdateRequest origin = 1;
  805. }
  806. message PropertyPackageDelRequest {
  807. int64 garden_id = 1;
  808. int64 id = 2;
  809. }
  810. message PropertyPackageDelReply {
  811. PropertyPackageUpdateRequest origin = 1;
  812. }
  813. message PropertyPackageItem {
  814. // 1 按月 2 按文本
  815. int32 package_type = 2;
  816. // 赠送月数
  817. int64 give_months = 3;
  818. // 增送文本
  819. string give_content = 4;
  820. // 购买月数
  821. int64 pay_months = 5;
  822. bool enable = 6;
  823. int64 id = 7;
  824. }
  825. message PropertyPackageListRequest {
  826. int64 garden_id = 1;
  827. int64 page = 2;
  828. int64 page_size = 3;
  829. }
  830. message PropertyPackageListReply {
  831. int64 page = 1;
  832. int64 total = 2;
  833. repeated PropertyPackageItem list = 3;
  834. }
  835. message ChargeGenerateBillRequest {
  836. int64 garden_id = 1;
  837. int64 bind_id = 2;
  838. int64 end = 3;
  839. }
  840. message ChargeGenerateBillReply {
  841. }
  842. message ChargeUrgeSetRequest {
  843. int64 urge_day = 1;
  844. int32 urge_target = 2;
  845. int32 urge_msg_type = 3;
  846. int64 garden_id = 4;
  847. int64 id = 5;
  848. }
  849. message ChargeUrgeSetReply {
  850. }
  851. message ChargeUrgeInfoRequest {
  852. int64 garden_id = 1;
  853. }
  854. message ChargeUrgeInfoReply {
  855. int64 urge_day = 1;
  856. int32 urge_target = 2;
  857. int32 urge_msg_type = 3;
  858. int64 id = 4;
  859. }
  860. // 欠费缴费用户支付
  861. message ChargeBillPayByHouseholdRequest {
  862. int64 garden_id = 1;
  863. repeated int64 bill_ids = 2;
  864. repeated int64 bind_ids = 3;
  865. int32 pay_type = 4;
  866. int64 should_pay_amount = 5;
  867. int64 pay_amount = 6;
  868. string comment = 7;
  869. int64 household_uid = 8;
  870. string input_ip = 9;
  871. string open_id = 10;
  872. // 是否为二维码收款
  873. bool native = 11;
  874. }
  875. message ChargeBillPayByHouseholdReply {
  876. string order_id = 1;
  877. // 三方预支付信息
  878. string prepay_info = 2;
  879. // 二维码,native 支付时有值
  880. string code_url = 3;
  881. }
  882. // 物业或车位费 用户预缴
  883. message ChargePrePayByHouseholdRequest {
  884. int64 garden_id = 1;
  885. int64 bind_id = 2;
  886. int64 months = 3;
  887. int64 should_pay_amount = 4;
  888. int64 pay_amount = 5;
  889. string comment = 6;
  890. int32 pay_type = 7;
  891. int64 household_uid = 8;
  892. string input_ip = 9;
  893. string open_id = 10;
  894. int64 package_id = 11;
  895. }
  896. message ChargePrePayByHouseholdReply {
  897. string order_id = 1;
  898. // 三方预支付信息
  899. string prepay_info = 2;
  900. }
  901. message ChargeUrgeRequest {
  902. int64 garden_id = 1;
  903. int64 obj_id = 2;
  904. int32 obj_type = 3;
  905. int64 should_pay_amount = 4;
  906. }
  907. message ChargeUrgeReply {
  908. }
  909. message ChargeMonthInfoRequest {
  910. int64 garden_id = 1;
  911. int64 obj_id = 2;
  912. int64 obj_type = 3;
  913. int32 charge_type = 4;
  914. }
  915. message MonthInfo {
  916. int64 package_id = 1;
  917. // 缴费月数
  918. int64 months = 2;
  919. // 赠送月数
  920. int64 give_months = 3;
  921. // 赠送其他的描述
  922. string give_text = 4;
  923. }
  924. message ChargeMonthInfoReply {
  925. int64 bind_id = 1;
  926. string desc = 2;
  927. repeated MonthInfo month_list = 3;
  928. }