charge.proto 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-applete-gateway/pb/v1";
  6. message ChargeConfAddRequest {
  7. int64 garden_id = 1;
  8. // 费用类型1 物业费 2 水费 3 电费 4 气费 5 车位管理费 6 月租停车费 99 其他
  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 固定费用 6 自定义
  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 气费 5 车位管理费 6 月租停车费 99 其他
  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 固定费用 6 自定义
  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 气费 5 车位管理费 6 月租停车费 99 其他
  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 固定费用 6 自定义
  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. }
  186. message ChargeHouseNotBindListReply {
  187. int64 page = 1;
  188. int64 total = 2;
  189. repeated ChargeHouseData list = 3;
  190. }
  191. // 绑定了某项目的车位列表
  192. message ChargeSpaceBindedListRequest {
  193. int64 garden_id = 1;
  194. int64 charge_id = 2;
  195. int64 page = 3;
  196. int64 page_size = 4;
  197. }
  198. message ChargeSpaceData {
  199. int64 space_id = 1;
  200. string space_number = 2;
  201. string park_name = 3;
  202. string park_number = 4;
  203. int32 space_type = 5;
  204. double space_area = 6;
  205. int32 space_status = 7;
  206. int64 start = 8;
  207. }
  208. message ChargeSpaceBindedListReply {
  209. int64 page = 1;
  210. int64 total = 2;
  211. repeated ChargeSpaceData list = 3;
  212. }
  213. // 未绑定某项目的车位列表(只要绑定了一种类型的项目,不管是否绑定本项目都不在该列表)
  214. message ChargeSpaceNotBindListRequest {
  215. int64 garden_id = 1;
  216. int64 charge_id = 2;
  217. int64 page = 3;
  218. int64 page_size = 4;
  219. }
  220. message ChargeSpaceNotBindListReply {
  221. int64 page = 1;
  222. int64 total = 2;
  223. repeated ChargeSpaceData list = 3;
  224. }
  225. // 绑定了某项目的车辆列表
  226. message ChargeVehicleBindedListRequest {
  227. int64 garden_id = 1;
  228. int64 charge_id = 2;
  229. int64 page = 3;
  230. int64 page_size = 4;
  231. }
  232. message ChargeVehicleData {
  233. int64 vehicle_id = 1;
  234. string plate_no = 2;
  235. int32 vehicle_type = 3;
  236. string brand = 4;
  237. string displacement = 5;
  238. int32 seat = 6;
  239. int64 start = 7;
  240. int64 end = 8;
  241. }
  242. message ChargeVehicleBindedListReply {
  243. int64 page = 1;
  244. int64 total = 2;
  245. repeated ChargeVehicleData list = 3;
  246. }
  247. // 未绑定某项目的车辆列表(只要绑定了一种类型的项目,不管是否绑定本项目都不在该列表)
  248. message ChargeVehicleNotBindListRequest {
  249. int64 garden_id = 1;
  250. int64 charge_id = 2;
  251. int64 page = 3;
  252. int64 page_size = 4;
  253. }
  254. message ChargeVehicleNotBindListReply {
  255. int64 page = 1;
  256. int64 total = 2;
  257. repeated ChargeVehicleData list = 3;
  258. }
  259. // 收费中的房屋列表
  260. message ChargeHouseGroupRequest {
  261. int64 page = 1;
  262. int64 page_size = 2;
  263. int64 garden_id = 3;
  264. }
  265. message ChargeHouseGroupItem {
  266. int64 house_id = 1;
  267. string house_name = 2;
  268. int64 layer = 3;
  269. int32 house_type = 4;
  270. int32 house_status = 5;
  271. double house_area = 6;
  272. double house_used_area = 7;
  273. // 房屋与物业费的绑定id
  274. int64 house_property_bind_id=8;
  275. // 是否有欠费账单
  276. bool has_unpay_bill = 9;
  277. }
  278. message ChargeHouseGroupReply {
  279. int64 page = 1;
  280. int64 total = 2;
  281. repeated ChargeHouseGroupItem list = 3;
  282. }
  283. // 收费中的车位列表
  284. message ChargeSpaceGroupRequest {
  285. int64 page = 1;
  286. int64 page_size = 2;
  287. int64 garden_id = 3;
  288. }
  289. message ChargeSpaceGroupItem {
  290. int64 space_id = 1;
  291. double space_area = 2;
  292. int32 space_type = 3;
  293. string space_number = 4;
  294. string park_number = 5;
  295. string park_name = 6;
  296. int32 space_status = 7;
  297. // 是否有欠费账单
  298. bool has_unpay_bill = 8;
  299. // 车位与费用的绑定id
  300. int64 space_bind_id=9;
  301. }
  302. message ChargeSpaceGroupReply {
  303. int64 page = 1;
  304. int64 total = 2;
  305. repeated ChargeSpaceGroupItem list = 3;
  306. }
  307. // 收费中的车辆列表
  308. message ChargeVehicleGroupRequest {
  309. int64 page = 1;
  310. int64 page_size = 2;
  311. int64 garden_id = 3;
  312. }
  313. message ChargeVehicleGroupItem {
  314. int64 vehicle_id = 1;
  315. string plate_no = 2;
  316. string displacement = 3;
  317. int32 vehicle_type = 4;
  318. string brand = 5;
  319. int32 seat = 6;
  320. }
  321. message ChargeVehicleGroupReply {
  322. int64 page = 1;
  323. int64 total = 2;
  324. repeated ChargeVehicleGroupItem list = 3;
  325. }
  326. // 抄表相关
  327. message PowerRecordAddRequest {
  328. int64 garden_id = 1;
  329. int64 house_id = 2;
  330. double last_amount = 3;
  331. double current_amount = 4;
  332. int64 start = 5;
  333. int64 end = 6;
  334. int64 read_at = 7;
  335. string comment = 8;
  336. int32 charge_type = 9;
  337. }
  338. message PowerRecordAddReply {
  339. }
  340. message PowerRecordUpdateRequest {
  341. int64 garden_id = 1;
  342. int64 house_id = 2;
  343. double last_amount = 3;
  344. double current_amount = 4;
  345. int64 start = 5;
  346. int64 end = 6;
  347. int64 read_at = 7;
  348. string comment = 8;
  349. int64 id = 9;
  350. int32 charge_type = 10;
  351. }
  352. message PowerRecordUpdateReply {
  353. PowerRecordUpdateRequest origin = 1;
  354. }
  355. message PowerRecordBatchAddRequest {
  356. int64 garden_id = 1;
  357. int32 charge_type = 2;
  358. repeated PowerRecordBatchData list = 3;
  359. }
  360. message PowerRecordBatchData {
  361. double last_amount = 1;
  362. double current_amount = 2;
  363. int64 start = 3;
  364. int64 end = 4;
  365. int64 read_at = 5;
  366. string comment = 6;
  367. string building_number = 7;
  368. int64 unit_number = 8;
  369. string house_number = 9;
  370. }
  371. message PowerRecordBatchAddReply {
  372. }
  373. message PowerRecordDelRequest {
  374. int64 garden_id = 1;
  375. int64 id = 2;
  376. }
  377. message PowerRecordDelReply {
  378. PowerRecordUpdateRequest origin = 1;
  379. }
  380. message PowerRecordListRequest {
  381. int64 house_id = 1;
  382. int32 charge_type = 2;
  383. int64 garden_id = 3;
  384. int32 pay_status = 4;
  385. int64 page = 5;
  386. int64 page_size = 6;
  387. }
  388. message PowerRecordItem {
  389. int64 id = 1;
  390. int32 charge_type = 2;
  391. double last_amount = 3;
  392. double current_amount = 4;
  393. int64 start = 5;
  394. int64 end = 6;
  395. int64 read_at = 7;
  396. string comment = 8;
  397. int64 house_id = 9;
  398. string house_name = 10;
  399. }
  400. message PowerRecordListReply {
  401. int64 total = 1;
  402. int64 page = 2;
  403. repeated PowerRecordItem list = 3;
  404. }
  405. message ChargeBillPayRequest {
  406. int64 garden_id = 1;
  407. repeated int64 bill_ids = 2;
  408. repeated int64 bind_ids = 3;
  409. int32 pay_type = 4;
  410. int64 should_pay_amount = 5;
  411. int64 pay_amount = 6;
  412. string comment = 7;
  413. }
  414. message ChargeBillPayReply {
  415. string order_id = 1;
  416. }
  417. // 欠费列表
  418. message ChargeUnpayListRequest {
  419. int64 garden_id = 1;
  420. int64 obj_id = 2;
  421. int32 obj_type = 3;
  422. int64 page = 4;
  423. int64 page_size = 5;
  424. }
  425. message ChargeUnpayItem {
  426. int64 bind_id = 1;
  427. int32 charge_type = 2;
  428. string charge_name = 3;
  429. int32 charge_time_type = 4;
  430. int64 bill_count = 5;
  431. int64 unpay_amount = 6;
  432. }
  433. message ChargeUnpayListReply {
  434. int64 page = 1;
  435. int64 total = 2;
  436. repeated ChargeUnpayItem list = 3;
  437. }
  438. // 查看费用,费项列表
  439. message ChargeListRequest {
  440. int64 garden_id = 1;
  441. int64 obj_id = 2;
  442. int32 obj_type = 3;
  443. int64 page = 4;
  444. int64 page_size = 5;
  445. }
  446. message ChargeItem {
  447. int64 bind_id = 1;
  448. int32 charge_type = 2;
  449. string charge_name = 3;
  450. int32 charge_time_type = 4;
  451. string created_at = 5;
  452. string start = 6;
  453. string end = 7;
  454. string status = 8;
  455. string desc = 9;
  456. }
  457. message ChargeListReply {
  458. int64 page = 1;
  459. int64 total = 2;
  460. repeated ChargeItem list = 3;
  461. }
  462. // 费项账单
  463. message ChargeBillListRequest {
  464. int64 garden_id = 1;
  465. int64 bind_id = 2;
  466. int64 page = 3;
  467. int64 page_size = 4;
  468. }
  469. message ChargeBillItem {
  470. string start = 1;
  471. string end = 2;
  472. int32 charge_type = 3;
  473. string charge_name = 4;
  474. int64 amount = 5;
  475. double last_used = 6;
  476. double current_used = 7;
  477. int64 late_fee = 8;
  478. int64 bill_id = 9;
  479. string charge_desc = 10;
  480. }
  481. message ChargeBillListReply {
  482. int64 total = 1;
  483. int64 page = 2;
  484. int32 charge_type = 3;
  485. string charge_name = 4;
  486. int64 should_pay_amount = 5;
  487. repeated ChargeBillItem list = 6;
  488. }
  489. // 应收账单中的对象列表
  490. message ChargeBillObjListRequest {
  491. int64 garden_id = 1;
  492. int64 page = 2;
  493. int64 page_size = 4;
  494. }
  495. message ChargeBillObjItem {
  496. string obj_name = 1;
  497. int64 obj_id = 2;
  498. int32 obj_type = 3;
  499. int64 bill_count = 4;
  500. int64 should_pay_amount = 5;
  501. }
  502. message ChargeBillObjListReply {
  503. int64 total = 1;
  504. int64 page = 2;
  505. repeated ChargeBillObjItem list = 3;
  506. }
  507. // 对象的账单明细
  508. message ChargeObjBillListRequest {
  509. int64 garden_id = 1;
  510. int64 obj_id = 2;
  511. int64 page = 3;
  512. int64 page_size = 4;
  513. int32 obj_type = 5;
  514. bool all = 6;
  515. string obj_name = 7;
  516. string charge_name = 8;
  517. int32 charge_type = 9;
  518. }
  519. message ChargeObjBillListReply {
  520. int64 total = 1;
  521. int64 page = 2;
  522. repeated ChargeBillItem list = 3;
  523. }
  524. // 变更时间
  525. message ChargeTimeSetRequest {
  526. int64 garden_id = 1;
  527. int64 start = 2;
  528. int64 end = 3;
  529. int64 bind_id = 4;
  530. }
  531. message ChargeTimeSetReply {
  532. }
  533. message ChargeOrderTicketRequest {
  534. int64 garden_id = 1;
  535. string order_id = 2;
  536. }
  537. message ChargeOrderTicketItem {
  538. // 费用类型
  539. int32 charge_type = 1;
  540. // 费用名称
  541. string charge_name = 2;
  542. // 收费范围
  543. string start = 3;
  544. string end = 4;
  545. // 房屋/车位/车辆
  546. string obj_name = 5;
  547. // 支付时间
  548. string pay_time = 6;
  549. // 单价
  550. int64 unit_price = 7;
  551. // 固定费用
  552. int64 fix_amount = 8;
  553. // 金额 不包含滞纳金
  554. int64 amount = 9;
  555. // 滞纳金
  556. int64 late_fee = 10;
  557. // 面积/用量
  558. double area_used = 11;
  559. // 1 房屋 2 车位 3 车辆
  560. int32 obj_type = 12;
  561. // 自定义费用
  562. int64 custom_fee = 13;
  563. }
  564. message ChargeOrderTicketReply {
  565. // 备注
  566. string comment = 1;
  567. // 应付总金额 包含滞纳金
  568. int64 should_pay_amount = 2;
  569. // 账单小票条目
  570. repeated ChargeOrderTicketItem list = 3;
  571. }
  572. // 预缴获取金额信息
  573. message ChargePrePayInfoRequest {
  574. int64 garden_id = 1;
  575. int64 bind_id = 2;
  576. int64 months = 3;
  577. }
  578. message ChargePrePayInfoReply {
  579. string charge_name = 1;
  580. int32 charge_type = 2;
  581. string charge_desc = 3;
  582. int64 should_pay_amount = 4;
  583. }
  584. // 物业或车位费预缴
  585. message ChargePrePayRequest {
  586. int64 garden_id = 1;
  587. int64 bind_id = 2;
  588. int64 months = 3;
  589. int64 should_pay_amount = 4;
  590. int64 pay_amount = 5;
  591. string comment = 6;
  592. int32 pay_type = 7;
  593. }
  594. message ChargePrePayReply {
  595. string order_id = 1;
  596. }
  597. // 已缴账单列表
  598. message ChargePayedBillListRequest {
  599. int64 garden_id = 1;
  600. string obj_name = 2;
  601. int64 page = 3;
  602. int64 page_size = 4;
  603. int32 charge_type = 5;
  604. string charge_name = 6;
  605. int64 house_id = 7;
  606. int64 pay_time = 8;
  607. int32 obj_type = 9;
  608. }
  609. message ChargePayedBillItem {
  610. string start = 1;
  611. string end = 2;
  612. int32 charge_type = 3;
  613. string charge_name = 4;
  614. int64 amount = 5;
  615. double last_used = 6;
  616. double current_used = 7;
  617. int64 late_fee = 8;
  618. int64 bill_id = 9;
  619. string charge_desc = 10;
  620. string pay_time = 11;
  621. int32 pay_type = 12;
  622. string obj_name = 13;
  623. int32 obj_type = 14;
  624. }
  625. message ChargePayedBillListReply {
  626. int64 page = 1;
  627. int64 total = 2;
  628. repeated ChargePayedBillItem list = 3;
  629. }
  630. // 作废账单
  631. message ChargeDelBillRequest {
  632. int64 garden_id = 1;
  633. int64 bill_id = 2;
  634. string del_reason = 3;
  635. }
  636. message ChargeDelBillReply {
  637. }
  638. // 恢复账单
  639. message ChargeRecoverBillRequest {
  640. int64 garden_id = 1;
  641. int64 bill_id = 2;
  642. }
  643. message ChargeRecoverBillReply {
  644. }
  645. // 作废账单列表
  646. message ChargeDelBillListRequest {
  647. int64 garden_id = 1;
  648. string obj_name = 2;
  649. int64 page = 3;
  650. int64 page_size = 4;
  651. int32 charge_type = 5;
  652. string charge_name = 6;
  653. int32 obj_type = 7;
  654. }
  655. message ChargeDelBillItem {
  656. string start = 1;
  657. string end = 2;
  658. int32 charge_type = 3;
  659. string charge_name = 4;
  660. int64 amount = 5;
  661. double last_used = 6;
  662. double current_used = 7;
  663. int64 late_fee = 8;
  664. int64 bill_id = 9;
  665. string charge_desc = 10;
  666. string pay_time = 11;
  667. int32 pay_type = 12;
  668. string obj_name = 13;
  669. string del_at = 14;
  670. string del_reason = 15;
  671. string household_name = 16;
  672. string household_phone = 17;
  673. int32 obj_type = 18;
  674. }
  675. message ChargeDelBillListReply {
  676. int64 page = 1;
  677. int64 total = 2;
  678. repeated ChargeDelBillItem list = 3;
  679. }
  680. // 缴费订单列表
  681. message ChargeOrderListRequest {
  682. int64 garden_id = 1;
  683. string obj_name = 2;
  684. int64 page = 3;
  685. int64 page_size = 4;
  686. int32 pay_type = 5;
  687. string order_id = 6;
  688. int32 pay_status = 7;
  689. }
  690. message ChargeOrderItem {
  691. string order_id = 1;
  692. string pay_time = 2;
  693. int32 pay_type = 3;
  694. int64 should_pay_amount = 4;
  695. int64 pay_amount = 5;
  696. string obj_name = 6;
  697. string paying_desc = 7;
  698. string transaction_id = 8;
  699. string comment = 9;
  700. // 1 代缴 2 支付中 3 已支付
  701. int32 status = 10;
  702. }
  703. message ChargeOrderListReply {
  704. int64 page = 1;
  705. int64 total = 2;
  706. repeated ChargeOrderItem list = 3;
  707. }
  708. // 订单详情
  709. message ChargeOrderInfoRequest {
  710. int64 garden_id = 1;
  711. string order_id = 2;
  712. }
  713. message ChargeOrderBillItem {
  714. string start = 1;
  715. string end = 2;
  716. int32 charge_type = 3;
  717. string charge_name = 4;
  718. int64 amount = 5;
  719. double last_used = 6;
  720. double current_used = 7;
  721. int64 late_fee = 8;
  722. int64 bill_id = 9;
  723. string charge_desc = 10;
  724. string obj_name = 13;
  725. }
  726. message ChargeOrderInfoReply {
  727. repeated ChargeOrderBillItem list = 1;
  728. }
  729. // 确认支付
  730. message ChargeOrderPayRequest {
  731. int64 garden_id = 1;
  732. string order_id = 2;
  733. int64 pay_time = 3;
  734. string transaction_id = 4;
  735. int64 amount = 5;
  736. bool is_comfirm = 6;
  737. }
  738. message ChargeOrderPayReply {
  739. }
  740. // 取消订单
  741. message ChargeOrderCancelRequest {
  742. int64 garden_id = 1;
  743. string order_id = 2;
  744. }
  745. message ChargeOrderCancelReply {
  746. }
  747. message PropertyPackageAddRequest {
  748. int64 garden_id = 1;
  749. // 1 按月 2 按文本
  750. int32 package_type = 2;
  751. // 赠送月数
  752. int64 give_months = 3;
  753. // 增送文本
  754. string give_content = 4;
  755. // 购买月数
  756. int64 pay_months = 5;
  757. bool enable = 6;
  758. }
  759. message PropertyPackageAddReply {
  760. int64 id = 1;
  761. }
  762. message PropertyPackageUpdateRequest {
  763. int64 garden_id = 1;
  764. // 1 按月 2 按文本
  765. int32 package_type = 2;
  766. // 赠送月数
  767. int64 give_months = 3;
  768. // 增送文本
  769. string give_content = 4;
  770. // 购买月数
  771. int64 pay_months = 5;
  772. bool enable = 6;
  773. int64 id = 7;
  774. }
  775. message PropertyPackageUpdateReply {
  776. PropertyPackageUpdateRequest origin = 1;
  777. }
  778. message PropertyPackageDelRequest {
  779. int64 garden_id = 1;
  780. int64 id = 2;
  781. }
  782. message PropertyPackageDelReply {
  783. PropertyPackageUpdateRequest origin = 1;
  784. }
  785. message PropertyPackageItem {
  786. // 1 按月 2 按文本
  787. int32 package_type = 2;
  788. // 赠送月数
  789. int64 give_months = 3;
  790. // 增送文本
  791. string give_content = 4;
  792. // 购买月数
  793. int64 pay_months = 5;
  794. bool enable = 6;
  795. int64 id = 7;
  796. }
  797. message PropertyPackageListRequest {
  798. int64 garden_id = 1;
  799. int64 page = 2;
  800. int64 page_size = 3;
  801. }
  802. message PropertyPackageListReply {
  803. int64 page = 1;
  804. int64 total = 2;
  805. repeated PropertyPackageItem list = 3;
  806. }
  807. message ChargeGenerateBillRequest {
  808. int64 garden_id = 1;
  809. int64 bind_id = 2;
  810. int64 end = 3;
  811. }
  812. message ChargeGenerateBillReply {
  813. }
  814. message ChargeUrgeSetRequest {
  815. int64 urge_day = 1;
  816. int32 urge_target = 2;
  817. int32 urge_msg_type = 3;
  818. int64 garden_id = 4;
  819. int64 id = 5;
  820. }
  821. message ChargeUrgeSetReply {
  822. }
  823. message ChargeUrgeInfoRequest {
  824. int64 garden_id = 1;
  825. }
  826. message ChargeUrgeInfoReply {
  827. int64 urge_day = 1;
  828. int32 urge_target = 2;
  829. int32 urge_msg_type = 3;
  830. int64 id = 4;
  831. }
  832. message ChargeUrgeRequest {
  833. int64 garden_id = 1;
  834. int64 obj_id = 2;
  835. int32 obj_type = 3;
  836. int64 should_pay_amount = 4;
  837. }
  838. message ChargeUrgeReply {
  839. }
  840. // 欠费缴费用户支付
  841. message ChargeBillPayByHouseholdRequest {
  842. int64 garden_id = 1;
  843. repeated int64 bill_ids = 2;
  844. repeated int64 bind_ids = 3;
  845. int32 pay_type = 4;
  846. int64 should_pay_amount = 5;
  847. int64 pay_amount = 6;
  848. string comment = 7;
  849. int64 household_uid = 8;
  850. string input_ip = 9;
  851. string open_id = 10;
  852. // 是否为二维码收款
  853. bool native = 11;
  854. }
  855. message ChargeBillPayByHouseholdReply {
  856. string order_id = 1;
  857. // 三方预支付信息
  858. string prepay_info = 2;
  859. // 二维码,native 支付时有值
  860. string code_url = 3;
  861. }