syntax = "proto3"; package mixservice.financev1; option go_package = "./mix/financev1;financev1"; // 汇款账户服务 service Remittance { // 汇款账户列表 rpc GetRemittanceList(GetRemittanceListReq) returns (GetRemittanceListResp) {} // 汇款账户列表(附带分销商信息) rpc GetRemittanceListWithResellerInfo(GetRemittanceListWithResellerReq) returns (GetRemittanceListWithResellerResp) {} // 添加汇款账户 rpc CreateRemittance(CreateRemittanceReq) returns (CreateRemittanceResp) {} // 更新汇款账户 rpc UpdateRemittance(UpdateRemittanceReq) returns (UpdateRemittanceResp) {} // 删除汇款账户 rpc DeleteRemittance(DeleteRemittanceReq) returns (DeleteRemittanceResp) {} // 汇款账户详情 rpc DetailRemittance(DetailRemittanceReq) returns (DetailRemittanceResp) {} // 设置主账号 rpc SetPrimaryRemittance(SetPrimaryRemittanceReq) returns (SetPrimaryRemittanceResp) {} } // 汇款账户列表详细查询 message GetRemittanceListWithResellerReq { // 页码 int32 page = 1; // 每页条数 int32 limit = 2; // 多个分销商id repeated int32 reseller_ids = 4; // 分销商名称 模糊查询 string reseller_name = 3; // 主体id int32 sign_company_id = 5; // 1主账号, 0默认 optional int32 is_primary = 6; // 汇款账号 string remittance = 7; // 汇款人姓名 string remittance_name = 8; // 账户类型 1对公 2对私 int32 acct_type = 9; // 开户支行 string open_bank = 10; // 开户银行 string bank_name = 11; //1正常 0删除 optional int32 status = 12; //1正常 0删除 string open_bank_address = 13; } message GetRemittanceListWithResellerResp { int32 data_count = 1; repeated RemittanceWithResellerInfoItem list = 2; } message RemittanceWithResellerInfoItem { // 主键 int32 id = 1; // 分销商 int32 reseller_id = 2; // 汇款账号 string remittance = 3; // 汇款人姓名 string remittance_name = 4; // 创建时间 int32 create_time = 5; // 更新时间 int32 update_time = 6; // 1正常 0删除 int32 status = 7; // 1主账号, 0默认 int32 is_primary = 8; string bank_name = 9; string open_bank = 10; string acct_name = 11; string open_bank_address = 12; // 账户类型:1-对公账户 2-对私账户 int32 acct_type = 13; ResellerInfo reseller_info = 14; } message ResellerInfo{ int32 id = 1; string name = 2; string full_name = 3; string contacts = 4; // 分销商分类的ID int32 reseller_grade_id = 5; // 银联类目 string IndustryMcc = 6; // 主体名称 string subject_name = 7; string telephone=8; // 账户CODE,用于自动加款 string account_tag=9; // 上报信息,报告给上游渠道 string report_name=10; // 上报信息,报告给上游渠道(统一社会信用代码) string report_code=11; int32 sign_company =12; } message SetPrimaryRemittanceReq { int32 id = 1; int32 reseller_id = 2; } message SetPrimaryRemittanceResp{} // 汇款账户列表请求 message GetRemittanceListReq { // 页码 int32 page = 1; // 每页条数 int32 limit = 2; // 分销商id int32 reseller_id = 3; // 多个分销商id repeated int32 reseller_ids = 4; // 汇款账号 精准查询 string remittance = 5; } // 汇款账户列表返回 message GetRemittanceListResp { int32 data_count = 1; repeated RemittanceItem list = 2; } message RemittanceItem { // 主键 int32 id = 1; // 分销商 int32 reseller_id = 2; // 汇款账号 string remittance = 3; // 汇款人姓名 string remittance_name = 4; // 创建时间 int32 create_time = 5; // 更新时间 int32 update_time = 6; // 1正常 0删除 int32 status = 7; // 1主账号, 0默认 int32 is_primary = 8; string bank_name = 9; string open_bank = 10; string acct_name = 11; string open_bank_address = 12; // 账户类型:1-对公账户 2-对私账户 int32 acct_type = 13; } // 添加汇款账户请求 message CreateRemittanceReq { // 分销商 int32 reseller_id = 1; // 汇款账号 string remittance = 2; // 汇款人姓名 string remittance_name = 3; // 开户银行 string bank_name = 4; // 开户支行 string open_bank = 5; // 银行账户名 string acct_name = 6; // 开户地址 string open_bank_address = 7; // 1、对公 2、对私 int32 acct_type = 8; } // 添加汇款账户返回 message CreateRemittanceResp {} // 更新汇款账户请求 message UpdateRemittanceReq { // 分销商 int32 reseller_id = 1; // 汇款账号 string remittance = 2; // 汇款人姓名 string remittance_name = 3; // 主键 int32 id = 4; // 开户银行 string bank_name = 5; // 开户支行 string open_bank = 6; // 银行账户名 string acct_name = 7; // 开户地址 string open_bank_address = 8; // 1、对公 2、对私 int32 acct_type = 9; } // 更新汇款账户返回 message UpdateRemittanceResp {} // 删除汇款账户请求 message DeleteRemittanceReq { int32 id = 1; } // 删除汇款账户返回 message DeleteRemittanceResp {} message DetailRemittanceReq { int32 reseller_id = 1; } message DetailRemittanceResp { RemittanceItem detail = 1; }