MarketingSystemDataExportTool/grpc/reseller/resellerv1/grant_credit.proto

177 lines
3.8 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package reseller.resellerv1;
option go_package = "./reseller/resellerv1;resellerv1";
// 授信管理
service GrantCredit {
// 通过id获取数据
rpc GetGrantCredit(GetGrantCreditReq) returns (GetGrantCreditResp);
// 列表
rpc GetGrantCreditList (GetGrantCreditListReq) returns (GetGrantCreditListResp);
// 通过id获取数据
rpc GetGrantCreditByIds (GetGrantCreditByIdsReq) returns (GetGrantCreditByIdsResp);
// 审核
rpc GrantCreditExam (GrantCreditExamReq) returns (GrantCreditExamResp);
// 添加授信记录
rpc AddGrantCredit (AddGrantCreditReq) returns (AddGrantCreditResp);
// 更新审批处理
rpc UpdateDingtalk (UpdateDingtalkReq) returns (UpdateDingtalkResp);
// 钉钉审核变更处理
rpc GrantCreditExamV2 (GrantCreditExamV2Req) returns (GrantCreditExamV2Resp);
}
// 获取授信记录请求
message GetGrantCreditReq {
// 授信记录id
int32 id = 1;
}
// 获取授信记录响应
message GetGrantCreditResp {
// 授信记录实体
GrantCreditInfo info = 1;
}
// 添加授信记录请求
message AddGrantCreditReq {
// 分销商 id
int32 reseller_id = 1;
// 备注
string remark = 2;
// 授信额度
double final_amount = 3;
// 操作人 id
int32 user_id = 4;
// 全称
string contact_full_name = 5;
// 账户ID0表示通用账户
int32 account_id = 6;
// 授信单号
string grant_credit_sn = 7;
}
// 添加授信记录响应
message AddGrantCreditResp {
// 授信记录id
int32 id = 1;
// 是否为增量授信
bool incr = 2;
}
message GetGrantCreditListReq {
// 分销商id
int32 reseller_id = 1;
//审核状态 0=待审核,1=通过,-1=驳回
optional int32 status = 2;
//录入人id
int32 seller = 3;
//授信类型 0=减少,1=增加
optional int32 operation = 4;
//开始时间
int32 start_time = 5;
//结束时间
int32 end_time = 6;
//页码
int32 page = 7;
//每页数据量
int32 limit = 8;
// 账户id
int32 account_id = 9;
}
message GetGrantCreditListResp {
//数据总量
int32 data_count = 1;
//授信列表实体
repeated GrantCreditInfo list = 2;
}
message GrantCreditInfo {
//数据Id
int32 id = 1;
//当前余额
double balance = 2;
//当前余额表授信额度
double current_amount = 3;
//待变更的授信额度
double changed_amount = 4;
//变更后的授信额度
double final_amount = 5;
//授信类型 0=减少,1=增加
int32 operation = 6;
//审核状态 0=待审核,1=通过,-1=驳回
int32 status = 7;
//发起申请人
int32 seller = 8;
//分销商id
int32 reseller_id = 9;
//创建时间
int32 create_time = 10;
//最后一次修改时间
int32 update_time = 11;
//备注
string remark = 12;
// 全称
string contact_full_name = 13;
//审批进程实例id
string dingtalk_instance_id = 14;
//审批单号
string dingtalk_sn = 15;
// 签约主体
int32 sign_company = 16;
// 账户ID0表示通用账户
int32 account_id = 17;
// 授信单号
string grant_credit_sn = 18;
}
message GetGrantCreditByIdsReq {
//id集合
repeated int32 ids = 1;
}
message GetGrantCreditByIdsResp {
//授信列表实体
repeated GrantCreditInfo list = 1;
}
message GrantCreditExamReq {
//数据id
int32 id = 1;
//备注
string remark = 2;
//审核状态 0=待审核,1=通过,-1=驳回
int32 status = 3;
//审核人id
int32 auditor = 4;
}
message GrantCreditExamResp {
}
message UpdateDingtalkReq {
//数据id
int32 id = 1;
//审批进程实例id
string dingtalk_instance_id = 2;
//审批单号
string dingtalk_sn = 3;
}
message UpdateDingtalkResp {
}
message GrantCreditExamV2Req {
//数据id
int32 id = 1;
//审核状态 0=待审核,1=通过,-1=驳回
int32 status = 2;
//审批进程实例id
string dingtalk_instance_id = 4;
}
message GrantCreditExamV2Resp {
}