123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb_v1;
- // 用于生成指定语言go的包名称
- option go_package = "property-household-gateway/pb/v1";
- // 欠费列表
- message ChargeUnpayListRequest {
- int64 garden_id = 1;
- int64 obj_id = 2;
- int32 obj_type = 3;
- int64 page = 4;
- int64 page_size = 5;
- int64 charge_type = 6;
- int64 house_id = 7;
- int32 status = 8;
- }
- message ChargeUnpayItem {
- int64 bind_id = 1;
- int32 charge_type = 2;
- string charge_name = 3;
- int32 charge_time_type = 4;
- int64 bill_count = 5;
- int64 unpay_amount = 6;
- }
- message ChargeUnpayListReply {
- int64 page = 1;
- int64 total = 2;
- repeated ChargeUnpayItem list = 3;
- }
- // 查看费用,费项列表
- message ChargeListRequest {
- int64 garden_id = 1;
- int64 obj_id = 2;
- int32 obj_type = 3;
- int64 page = 4;
- int64 page_size = 5;
- int32 charge_type = 6;
- }
- message ChargeItem {
- int64 bind_id = 1;
- int32 charge_type = 2;
- string charge_name = 3;
- int32 charge_time_type = 4;
- string created_at = 5;
- string start = 6;
- string end = 7;
- string status = 8;
- string desc = 9;
- }
- message ChargeListReply {
- int64 page = 1;
- int64 total = 2;
- repeated ChargeItem list = 3;
- }
- // 费项账单
- message ChargeBillListRequest {
- int64 garden_id = 1;
- int64 bind_id = 2;
- int64 page = 3;
- int64 page_size = 4;
- int32 status = 5;
- }
- message ChargeBillItem {
- string start = 1;
- string end = 2;
- int32 charge_type = 3;
- string charge_name = 4;
- int64 amount = 5;
- double last_used = 6;
- double current_used = 7;
- int64 late_fee = 8;
- int64 bill_id = 9;
- string charge_desc = 10;
- int32 obj_type = 11;
- int64 obj_id = 12;
- string obj_name = 13;
- int64 late_days = 14;
- }
- message ChargeBillListReply {
- int64 total = 1;
- int64 page = 2;
- int32 charge_type = 3;
- string charge_name = 4;
- int64 should_pay_amount = 5;
- repeated ChargeBillItem list = 6;
- }
- // 预缴获取金额信息
- message ChargePrePayInfoRequest {
- int64 garden_id = 1;
- int64 bind_id = 2;
- int64 months = 3;
- }
- message ChargePrePayInfoReply {
- string charge_name = 1;
- int32 charge_type = 2;
- string charge_desc = 3;
- int64 should_pay_amount = 4;
- int64 start = 5;
- int64 end = 6;
- }
- // 物业或车位费预缴
- message ChargePrePayRequest {
- int64 garden_id = 1;
- int64 bind_id = 2;
- int64 months = 3;
- int64 should_pay_amount = 4;
- int64 pay_amount = 5;
- string comment = 6;
- int32 pay_type = 7;
- }
- message ChargePrePayReply {
- string order_id = 1;
- }
- // 缴费订单列表
- message ChargeOrderListRequest {
- int64 garden_id = 1;
- string obj_name = 2;
- int64 page = 3;
- int64 page_size = 4;
- int32 pay_type = 5;
- string order_id = 6;
- int32 pay_status = 7;
- int64 uid = 8;
- }
- message ChargeOrderItem {
- string order_id = 1;
- string pay_time = 2;
- int32 pay_type = 3;
- int64 should_pay_amount = 4;
- int64 pay_amount = 5;
- string obj_name = 6;
- string paying_desc = 7;
- string transaction_id = 8;
- string comment = 9;
- // 1 待支付 2 已支付
- int32 status = 10;
- // 账单数
- int64 bill_count = 11;
- string desc = 12;
- }
- message ChargeOrderListReply {
- int64 page = 1;
- int64 total = 2;
- repeated ChargeOrderItem list = 3;
- }
- // 订单详情
- message ChargeOrderInfoRequest {
- int64 garden_id = 1;
- string order_id = 2;
- }
- message ChargeOrderBillItem {
- string start = 1;
- string end = 2;
- int32 charge_type = 3;
- string charge_name = 4;
- int64 amount = 5;
- double last_used = 6;
- double current_used = 7;
- int64 late_fee = 8;
- int64 bill_id = 9;
- string charge_desc = 10;
- string obj_name = 13;
- }
- message ChargeOrderInfoReply {
- repeated ChargeOrderBillItem list = 1;
- }
- // 取消订单
- message ChargeOrderCancelRequest {
- int64 garden_id = 1;
- string order_id = 2;
- // true 未支付订单中用户主动取消,false 前端判断未支付时主动调接口删除
- bool by_user = 3;
- }
- message ChargeOrderCancelReply {
- }
- // 欠费缴费用户支付
- message ChargeBillPayByHouseholdRequest {
- int64 garden_id = 1;
- repeated int64 bill_ids = 2;
- repeated int64 bind_ids = 3;
- int32 pay_type = 4;
- int64 should_pay_amount = 5;
- int64 pay_amount = 6;
- string comment = 7;
- int64 household_uid = 8;
- string input_ip = 9;
- string open_id = 10;
- }
- message ChargeBillPayByHouseholdReply {
- string order_id = 1;
- // 三方预支付信息
- string prepay_info = 2;
- }
- // 物业或车位费 用户预缴
- message ChargePrePayByHouseholdRequest {
- int64 garden_id = 1;
- int64 bind_id = 2;
- int64 months = 3;
- int64 should_pay_amount = 4;
- int64 pay_amount = 5;
- string comment = 6;
- int32 pay_type = 7;
- int64 household_uid = 8;
- string input_ip = 9;
- string open_id = 10;
- int64 package_id = 11;
- }
- message ChargePrePayByHouseholdReply {
- string order_id = 1;
- // 三方预支付信息
- string prepay_info = 2;
- }
- message ChargeMonthInfoRequest {
- int64 garden_id = 1;
- int64 obj_id = 2;
- int64 obj_type = 3;
- int32 charge_type = 4;
- }
- message MonthInfo {
- int64 package_id = 1;
- // 缴费月数
- int64 months = 2;
- // 赠送月数
- int64 give_months = 3;
- // 赠送其他的描述
- string give_text = 4;
- }
- message ChargeMonthInfoReply {
- int64 bind_id = 1;
- string desc = 2;
- repeated MonthInfo month_list = 3;
- }
- // 已缴账单列表
- message ChargePayedBillListRequest {
- int64 garden_id = 1;
- string obj_name = 2;
- int64 page = 3;
- int64 page_size = 4;
- int32 charge_type = 5;
- string charge_name = 6;
- int64 house_id = 7;
- int64 pay_time = 8;
- }
- message ChargePayedBillItem {
- string start = 1;
- string end = 2;
- int32 charge_type = 3;
- string charge_name = 4;
- int64 amount = 5;
- double last_used = 6;
- double current_used = 7;
- int64 late_fee = 8;
- int64 bill_id = 9;
- string charge_desc = 10;
- string pay_time = 11;
- int32 pay_type = 12;
- string obj_name = 13;
- }
- message ChargePayedBillListReply {
- int64 page = 1;
- int64 total = 2;
- repeated ChargePayedBillItem list = 3;
- }
|