charge.proto 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-household-gateway/pb/v1";
  6. // 欠费列表
  7. message ChargeUnpayListRequest {
  8. int64 garden_id = 1;
  9. int64 obj_id = 2;
  10. int32 obj_type = 3;
  11. int64 page = 4;
  12. int64 page_size = 5;
  13. int64 charge_type = 6;
  14. int64 house_id = 7;
  15. int32 status = 8;
  16. }
  17. message ChargeUnpayItem {
  18. int64 bind_id = 1;
  19. int32 charge_type = 2;
  20. string charge_name = 3;
  21. int32 charge_time_type = 4;
  22. int64 bill_count = 5;
  23. int64 unpay_amount = 6;
  24. }
  25. message ChargeUnpayListReply {
  26. int64 page = 1;
  27. int64 total = 2;
  28. repeated ChargeUnpayItem list = 3;
  29. }
  30. // 查看费用,费项列表
  31. message ChargeListRequest {
  32. int64 garden_id = 1;
  33. int64 obj_id = 2;
  34. int32 obj_type = 3;
  35. int64 page = 4;
  36. int64 page_size = 5;
  37. int32 charge_type = 6;
  38. }
  39. message ChargeItem {
  40. int64 bind_id = 1;
  41. int32 charge_type = 2;
  42. string charge_name = 3;
  43. int32 charge_time_type = 4;
  44. string created_at = 5;
  45. string start = 6;
  46. string end = 7;
  47. string status = 8;
  48. string desc = 9;
  49. }
  50. message ChargeListReply {
  51. int64 page = 1;
  52. int64 total = 2;
  53. repeated ChargeItem list = 3;
  54. }
  55. // 费项账单
  56. message ChargeBillListRequest {
  57. int64 garden_id = 1;
  58. int64 bind_id = 2;
  59. int64 page = 3;
  60. int64 page_size = 4;
  61. int32 status = 5;
  62. }
  63. message ChargeBillItem {
  64. string start = 1;
  65. string end = 2;
  66. int32 charge_type = 3;
  67. string charge_name = 4;
  68. int64 amount = 5;
  69. double last_used = 6;
  70. double current_used = 7;
  71. int64 late_fee = 8;
  72. int64 bill_id = 9;
  73. string charge_desc = 10;
  74. int32 obj_type = 11;
  75. int64 obj_id = 12;
  76. string obj_name = 13;
  77. int64 late_days = 14;
  78. }
  79. message ChargeBillListReply {
  80. int64 total = 1;
  81. int64 page = 2;
  82. int32 charge_type = 3;
  83. string charge_name = 4;
  84. int64 should_pay_amount = 5;
  85. repeated ChargeBillItem list = 6;
  86. }
  87. // 预缴获取金额信息
  88. message ChargePrePayInfoRequest {
  89. int64 garden_id = 1;
  90. int64 bind_id = 2;
  91. int64 months = 3;
  92. }
  93. message ChargePrePayInfoReply {
  94. string charge_name = 1;
  95. int32 charge_type = 2;
  96. string charge_desc = 3;
  97. int64 should_pay_amount = 4;
  98. int64 start = 5;
  99. int64 end = 6;
  100. }
  101. // 物业或车位费预缴
  102. message ChargePrePayRequest {
  103. int64 garden_id = 1;
  104. int64 bind_id = 2;
  105. int64 months = 3;
  106. int64 should_pay_amount = 4;
  107. int64 pay_amount = 5;
  108. string comment = 6;
  109. int32 pay_type = 7;
  110. }
  111. message ChargePrePayReply {
  112. string order_id = 1;
  113. }
  114. // 缴费订单列表
  115. message ChargeOrderListRequest {
  116. int64 garden_id = 1;
  117. string obj_name = 2;
  118. int64 page = 3;
  119. int64 page_size = 4;
  120. int32 pay_type = 5;
  121. string order_id = 6;
  122. int32 pay_status = 7;
  123. int64 uid = 8;
  124. }
  125. message ChargeOrderItem {
  126. string order_id = 1;
  127. string pay_time = 2;
  128. int32 pay_type = 3;
  129. int64 should_pay_amount = 4;
  130. int64 pay_amount = 5;
  131. string obj_name = 6;
  132. string paying_desc = 7;
  133. string transaction_id = 8;
  134. string comment = 9;
  135. // 1 待支付 2 已支付
  136. int32 status = 10;
  137. // 账单数
  138. int64 bill_count = 11;
  139. string desc = 12;
  140. }
  141. message ChargeOrderListReply {
  142. int64 page = 1;
  143. int64 total = 2;
  144. repeated ChargeOrderItem list = 3;
  145. }
  146. // 订单详情
  147. message ChargeOrderInfoRequest {
  148. int64 garden_id = 1;
  149. string order_id = 2;
  150. }
  151. message ChargeOrderBillItem {
  152. string start = 1;
  153. string end = 2;
  154. int32 charge_type = 3;
  155. string charge_name = 4;
  156. int64 amount = 5;
  157. double last_used = 6;
  158. double current_used = 7;
  159. int64 late_fee = 8;
  160. int64 bill_id = 9;
  161. string charge_desc = 10;
  162. string obj_name = 13;
  163. }
  164. message ChargeOrderInfoReply {
  165. repeated ChargeOrderBillItem list = 1;
  166. }
  167. // 取消订单
  168. message ChargeOrderCancelRequest {
  169. int64 garden_id = 1;
  170. string order_id = 2;
  171. // true 未支付订单中用户主动取消,false 前端判断未支付时主动调接口删除
  172. bool by_user = 3;
  173. }
  174. message ChargeOrderCancelReply {
  175. }
  176. // 欠费缴费用户支付
  177. message ChargeBillPayByHouseholdRequest {
  178. int64 garden_id = 1;
  179. repeated int64 bill_ids = 2;
  180. repeated int64 bind_ids = 3;
  181. int32 pay_type = 4;
  182. int64 should_pay_amount = 5;
  183. int64 pay_amount = 6;
  184. string comment = 7;
  185. int64 household_uid = 8;
  186. string input_ip = 9;
  187. string open_id = 10;
  188. }
  189. message ChargeBillPayByHouseholdReply {
  190. string order_id = 1;
  191. // 三方预支付信息
  192. string prepay_info = 2;
  193. }
  194. // 物业或车位费 用户预缴
  195. message ChargePrePayByHouseholdRequest {
  196. int64 garden_id = 1;
  197. int64 bind_id = 2;
  198. int64 months = 3;
  199. int64 should_pay_amount = 4;
  200. int64 pay_amount = 5;
  201. string comment = 6;
  202. int32 pay_type = 7;
  203. int64 household_uid = 8;
  204. string input_ip = 9;
  205. string open_id = 10;
  206. int64 package_id = 11;
  207. }
  208. message ChargePrePayByHouseholdReply {
  209. string order_id = 1;
  210. // 三方预支付信息
  211. string prepay_info = 2;
  212. }
  213. message ChargeMonthInfoRequest {
  214. int64 garden_id = 1;
  215. int64 obj_id = 2;
  216. int64 obj_type = 3;
  217. int32 charge_type = 4;
  218. }
  219. message MonthInfo {
  220. int64 package_id = 1;
  221. // 缴费月数
  222. int64 months = 2;
  223. // 赠送月数
  224. int64 give_months = 3;
  225. // 赠送其他的描述
  226. string give_text = 4;
  227. }
  228. message ChargeMonthInfoReply {
  229. int64 bind_id = 1;
  230. string desc = 2;
  231. repeated MonthInfo month_list = 3;
  232. }
  233. // 已缴账单列表
  234. message ChargePayedBillListRequest {
  235. int64 garden_id = 1;
  236. string obj_name = 2;
  237. int64 page = 3;
  238. int64 page_size = 4;
  239. int32 charge_type = 5;
  240. string charge_name = 6;
  241. int64 house_id = 7;
  242. int64 pay_time = 8;
  243. }
  244. message ChargePayedBillItem {
  245. string start = 1;
  246. string end = 2;
  247. int32 charge_type = 3;
  248. string charge_name = 4;
  249. int64 amount = 5;
  250. double last_used = 6;
  251. double current_used = 7;
  252. int64 late_fee = 8;
  253. int64 bill_id = 9;
  254. string charge_desc = 10;
  255. string pay_time = 11;
  256. int32 pay_type = 12;
  257. string obj_name = 13;
  258. }
  259. message ChargePayedBillListReply {
  260. int64 page = 1;
  261. int64 total = 2;
  262. repeated ChargePayedBillItem list = 3;
  263. }