115 lines
2.9 KiB
Protocol Buffer
115 lines
2.9 KiB
Protocol Buffer
syntax = "proto3";
|
||
|
||
package finance.api.inner;
|
||
|
||
import "buf/validate/validate.proto";
|
||
import "finance/financev1/model.proto";
|
||
import "finance/financev1/global.proto";
|
||
|
||
option go_package = "./finance/financev1;financev1";
|
||
|
||
// 紧急加款
|
||
service UrgentRecharge {
|
||
rpc CreateUrgentRecharge (CreateUrgentRechargeRequest) returns (Empty);
|
||
rpc ListUrgentRechargeType (ListUrgentRechargeTypeRequest) returns (ListUrgentRechargeTypeReply);
|
||
rpc ListUrgentRecharge (ListUrgentRechargeRequest) returns (ListUrgentRechargeReply);
|
||
}
|
||
|
||
message CreateUrgentRechargeRequest {
|
||
// 银行流水号
|
||
string bnkSrlnum = 1;
|
||
//预计转账日期
|
||
int64 expectTransTime=2 [(buf.validate.field).required = true];
|
||
//紧急加款类型
|
||
int64 typeId=3 [(buf.validate.field).required = true];
|
||
// 认领金额
|
||
double addAmount = 4 [(buf.validate.field).required = true];
|
||
// 备注
|
||
string remark = 5;
|
||
// 凭证文件
|
||
string fileUrl = 8;
|
||
// 对方类型id
|
||
int64 counterpartyId = 6;
|
||
// 对方类型(1-上游渠道,2-分销商)
|
||
int32 counterpartyType =7;
|
||
// 创建人
|
||
string createdBy = 9;
|
||
// 对方名称gi
|
||
string counterpartyName = 10;
|
||
//对方主体
|
||
string counterpartySubject=11;
|
||
//对方主体code
|
||
int64 counterpartySubjectCodes=12;
|
||
//银行id
|
||
int64 bankId=13;
|
||
//对方总行名称
|
||
string counterpartyBankName=15;
|
||
//对方支行名称
|
||
string counterpartyBankAddress=16;
|
||
//对方银行账号户名
|
||
string counterpartyBankAccountName=17;
|
||
//对方银行账号
|
||
string counterpartyBankAccount=18;
|
||
// 子账户ID
|
||
int64 accountId = 19;
|
||
// 子账户名称
|
||
string accountName = 20;
|
||
}
|
||
|
||
message ListUrgentRechargeTypeRequest{
|
||
PageReq page = 1 [(buf.validate.field).required = true];
|
||
optional string typeName = 2;
|
||
}
|
||
|
||
message ListUrgentRechargeTypeReply {
|
||
repeated UrgentRechargeTypeItem list = 1;
|
||
PageReply page = 2;
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
message ListUrgentRechargeRequest {
|
||
PageReq page = 1 [(buf.validate.field).required = true];
|
||
//加款类型id
|
||
optional int64 type_id = 2;
|
||
//加款编码
|
||
optional string urgentRechargeNo = 3;
|
||
//加款金额
|
||
optional double addAmount = 4;
|
||
// 创建人
|
||
optional string createdBy = 8;
|
||
//紧急类型(这里直接给字符串,如RL_001)
|
||
optional string claim_type_code = 9;
|
||
//状态
|
||
optional int32 status = 10;
|
||
// 对方名称
|
||
optional string counterpartyName = 6;
|
||
//审核状态
|
||
optional int64 approvalStatus=7;
|
||
//时间范围
|
||
optional TimeRangeReq expectTimeRange = 13;
|
||
//主体名称
|
||
optional string counterpartySubject=14;
|
||
//总行名称
|
||
optional string bankName=15;
|
||
//分行名称
|
||
optional string bankAddress=16;
|
||
//银行账号
|
||
optional string bankAccount=17;
|
||
//审批单号
|
||
optional string businessId=18;
|
||
// 分销商ID
|
||
optional int32 counterpartyId = 19;
|
||
// 主体code
|
||
optional int32 counterpartySubjectCode = 20;
|
||
// 子账户ID
|
||
int32 accountId = 21;
|
||
}
|
||
|
||
message ListUrgentRechargeReply {
|
||
repeated UrgentRechargeItem list = 1;
|
||
PageReply page = 2;
|
||
|
||
} |