charge.proto 21 KB

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