Commit 2ffe574c authored by pengjun's avatar pengjun

#627 update coll & issuance query result

parent af89673b
......@@ -584,6 +584,7 @@ func (action *Action) CollateralizeBorrow(borrow *pty.CollateralizeBorrow) (*typ
// 构造借出记录
borrowRecord := &pty.BorrowRecord{}
borrowRecord.RecordId = common.ToHex(action.txhash)
borrowRecord.CollateralizeId = coll.CollateralizeId
borrowRecord.AccountAddr = action.fromaddr
borrowRecord.CollateralValue = btyFrozen
borrowRecord.StartTime = action.blocktime
......
......@@ -25,6 +25,7 @@ func (c *Collateralize) Query_CollateralizeInfoByID(req *pty.ReqCollateralizeInf
CreateAddr: coll.CreateAddr,
Balance: coll.Balance,
Period: coll.Period,
CollateralizeId: coll.CollateralizeId,
}, nil
}
......@@ -46,6 +47,7 @@ func (c *Collateralize) Query_CollateralizeInfoByIDs(req *pty.ReqCollateralizeIn
CreateAddr: coll.CreateAddr,
Balance: coll.Balance,
Period: coll.Period,
CollateralizeId: coll.CollateralizeId,
})
}
......@@ -100,6 +102,18 @@ func (c *Collateralize) Query_CollateralizeRecordByAddr(req *pty.ReqCollateraliz
return ret, nil
}
func (c *Collateralize) Query_CollateralizeRecordByStatus(req *pty.ReqCollateralizeRecordByStatus) (types.Message, error) {
ret := &pty.RepCollateralizeRecords{}
records, err := queryCollateralizeRecordByStatus(c.GetStateDB(), c.GetLocalDB(), req.Status, req.Index)
if err != nil {
clog.Error("Query_CollateralizeRecordByStatus", "get collateralize record error", err)
return nil, err
}
ret.Records = records
return ret, nil
}
func (c *Collateralize) Query_CollateralizeConfig(req *pty.ReqCollateralizeRecordByAddr) (types.Message, error) {
config, err := getCollateralizeConfig(c.GetStateDB())
if err != nil {
......
......@@ -2,15 +2,15 @@ syntax = "proto3";
package types;
// 贷信息
// 贷信息
message Collateralize {
string collateralizeId = 1; //借贷ID,一期借贷对应一个ID
int64 totalBalance = 2; //当期可借贷的总金额(ccny)
string collateralizeId = 1; //放贷ID,一期放贷对应一个ID
int64 totalBalance = 2; //当期贷的总金额(ccny)
int64 debtCeiling = 3; //单用户可借出的限额(ccny)
float liquidationRatio = 4; //清算比例
float stabilityFeeRatio = 5; //稳定费率
string createAddr = 6; //创建人地址
int64 balance = 7; //剩余可借贷金额(ccny)
int64 balance = 7; //放贷剩余金额(ccny)
repeated BorrowRecord borrowRecords = 8; //借贷记录
repeated BorrowRecord InvalidRecords = 9; //失效的借贷记录
int32 status = 10;//当期借贷的状态,是否关闭
......@@ -33,9 +33,10 @@ message BorrowRecord {
int64 liquidateTime = 8; //清算时间
int64 expireTime = 9; //超时清算时间
int32 preStatus = 10;//上一次抵押状态,用于告警恢复
string recordId = 11;//借出id,标识一次借出记录
int64 index = 12;//当前索引
int64 preIndex = 13;//上级索引
string recordId = 11;//借贷id,标识一次借出记录
string collateralizeId = 12;//放贷id
int64 index = 13;//当前索引
int64 preIndex = 14;//上级索引
}
// 资产价格记录
......@@ -71,7 +72,7 @@ message CollateralizeManage {
message CollateralizeAddr {
repeated string superAddrs = 1; //大户地址
}
// 创建
// 创建
message CollateralizeCreate {
int64 totalBalance = 1; //可借贷总金额
}
......@@ -102,12 +103,12 @@ message CollateralizeFeed {
repeated int64 volume = 3; //成交量
}
// 贷关闭
// 贷关闭
message CollateralizeClose {
string collateralizeId = 1; //借贷期数ID
}
// exec_local 贷信息
// exec_local 贷信息
message ReceiptCollateralize {
string collateralizeId = 1;
string createAddr = 2;
......@@ -119,7 +120,7 @@ message ReceiptCollateralize {
int64 preIndex = 8;
}
// exec_local 贷记录信息
// exec_local 贷记录信息
message CollateralizeRecord {
string collateralizeId = 1;
string addr = 2;
......@@ -127,17 +128,17 @@ message CollateralizeRecord {
int64 index = 4;
}
// exec_local 贷记录信息列表
// exec_local 贷记录信息列表
message CollateralizeRecords {
repeated CollateralizeRecord records = 1;
}
// 根据ID查询一期贷信息
// 根据ID查询一期贷信息
message ReqCollateralizeInfo {
string collateralizeId = 1;
}
// 返回一期贷信息
// 返回一期贷信息
message RepCollateralizeCurrentInfo {
int32 status = 1;//当期借贷的状态,是否关闭
int64 totalBalance = 2; //当期可借贷的总金额(ccny)
......@@ -147,19 +148,20 @@ message RepCollateralizeCurrentInfo {
string createAddr = 6; //创建人地址
int64 balance = 7; //剩余可借贷金额(ccny)
int64 period = 8; //合约期限
string collateralizeId = 9; //放贷ID
}
// 根据ID列表查询多期贷信息
// 根据ID列表查询多期贷信息
message ReqCollateralizeInfos {
repeated string collateralizeIds = 1;
}
// 返回多期贷信息
// 返回多期贷信息
message RepCollateralizeCurrentInfos {
repeated RepCollateralizeCurrentInfo infos = 1;
}
// 根据贷状态查询
// 根据贷状态查询
message ReqCollateralizeByStatus {
int32 status = 1;
int64 index = 2;
......@@ -171,7 +173,7 @@ message ReqCollateralizeByAddr {
int64 index = 2;
}
// 返回贷ID列表
// 返回贷ID列表
message RepCollateralizeIDs {
repeated string IDs = 1;
}
......@@ -201,7 +203,7 @@ message ReqCollateralizeRecord {
string recordId = 2;
}
// 返回记录
// 返回借贷记录
message RepCollateralizeRecord {
BorrowRecord record = 1;
}
......
......@@ -20,7 +20,7 @@ var _ = math.Inf
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// 贷信息
// 贷信息
type Collateralize struct {
CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`
TotalBalance int64 `protobuf:"varint,2,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`
......@@ -185,8 +185,9 @@ type BorrowRecord struct {
ExpireTime int64 `protobuf:"varint,9,opt,name=expireTime,proto3" json:"expireTime,omitempty"`
PreStatus int32 `protobuf:"varint,10,opt,name=preStatus,proto3" json:"preStatus,omitempty"`
RecordId string `protobuf:"bytes,11,opt,name=recordId,proto3" json:"recordId,omitempty"`
Index int64 `protobuf:"varint,12,opt,name=index,proto3" json:"index,omitempty"`
PreIndex int64 `protobuf:"varint,13,opt,name=preIndex,proto3" json:"preIndex,omitempty"`
CollateralizeId string `protobuf:"bytes,12,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`
Index int64 `protobuf:"varint,13,opt,name=index,proto3" json:"index,omitempty"`
PreIndex int64 `protobuf:"varint,14,opt,name=preIndex,proto3" json:"preIndex,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
......@@ -294,6 +295,13 @@ func (m *BorrowRecord) GetRecordId() string {
return ""
}
func (m *BorrowRecord) GetCollateralizeId() string {
if m != nil {
return m.CollateralizeId
}
return ""
}
func (m *BorrowRecord) GetIndex() int64 {
if m != nil {
return m.Index
......@@ -646,7 +654,7 @@ func (m *CollateralizeAddr) GetSuperAddrs() []string {
return nil
}
// 创建
// 创建
type CollateralizeCreate struct {
TotalBalance int64 `protobuf:"varint,1,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -894,7 +902,7 @@ func (m *CollateralizeFeed) GetVolume() []int64 {
return nil
}
// 贷关闭
// 贷关闭
type CollateralizeClose struct {
CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -934,7 +942,7 @@ func (m *CollateralizeClose) GetCollateralizeId() string {
return ""
}
// exec_local 贷信息
// exec_local 贷信息
type ReceiptCollateralize struct {
CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`
CreateAddr string `protobuf:"bytes,2,opt,name=createAddr,proto3" json:"createAddr,omitempty"`
......@@ -1030,7 +1038,7 @@ func (m *ReceiptCollateralize) GetPreIndex() int64 {
return 0
}
// exec_local 贷记录信息
// exec_local 贷记录信息
type CollateralizeRecord struct {
CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
......@@ -1094,7 +1102,7 @@ func (m *CollateralizeRecord) GetIndex() int64 {
return 0
}
// exec_local 贷记录信息列表
// exec_local 贷记录信息列表
type CollateralizeRecords struct {
Records []*CollateralizeRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -1134,7 +1142,7 @@ func (m *CollateralizeRecords) GetRecords() []*CollateralizeRecord {
return nil
}
// 根据ID查询一期贷信息
// 根据ID查询一期贷信息
type ReqCollateralizeInfo struct {
CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -1174,7 +1182,7 @@ func (m *ReqCollateralizeInfo) GetCollateralizeId() string {
return ""
}
// 返回一期贷信息
// 返回一期贷信息
type RepCollateralizeCurrentInfo struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
TotalBalance int64 `protobuf:"varint,2,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`
......@@ -1184,6 +1192,7 @@ type RepCollateralizeCurrentInfo struct {
CreateAddr string `protobuf:"bytes,6,opt,name=createAddr,proto3" json:"createAddr,omitempty"`
Balance int64 `protobuf:"varint,7,opt,name=balance,proto3" json:"balance,omitempty"`
Period int64 `protobuf:"varint,8,opt,name=period,proto3" json:"period,omitempty"`
CollateralizeId string `protobuf:"bytes,9,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
......@@ -1270,7 +1279,14 @@ func (m *RepCollateralizeCurrentInfo) GetPeriod() int64 {
return 0
}
// 根据ID列表查询多期借贷信息
func (m *RepCollateralizeCurrentInfo) GetCollateralizeId() string {
if m != nil {
return m.CollateralizeId
}
return ""
}
// 根据ID列表查询多期放贷信息
type ReqCollateralizeInfos struct {
CollateralizeIds []string `protobuf:"bytes,1,rep,name=collateralizeIds,proto3" json:"collateralizeIds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -1310,7 +1326,7 @@ func (m *ReqCollateralizeInfos) GetCollateralizeIds() []string {
return nil
}
// 返回多期贷信息
// 返回多期贷信息
type RepCollateralizeCurrentInfos struct {
Infos []*RepCollateralizeCurrentInfo `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -1350,7 +1366,7 @@ func (m *RepCollateralizeCurrentInfos) GetInfos() []*RepCollateralizeCurrentInfo
return nil
}
// 根据贷状态查询
// 根据贷状态查询
type ReqCollateralizeByStatus struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
Index int64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
......@@ -1446,7 +1462,7 @@ func (m *ReqCollateralizeByAddr) GetIndex() int64 {
return 0
}
// 返回贷ID列表
// 返回贷ID列表
type RepCollateralizeIDs struct {
IDs []string `protobuf:"bytes,1,rep,name=IDs,proto3" json:"IDs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -1686,7 +1702,7 @@ func (m *ReqCollateralizeRecord) GetRecordId() string {
return ""
}
// 返回记录
// 返回借贷记录
type RepCollateralizeRecord struct {
Record *BorrowRecord `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -1840,79 +1856,80 @@ func init() {
func init() { proto.RegisterFile("collateralize.proto", fileDescriptor_a988fb4a61381972) }
var fileDescriptor_a988fb4a61381972 = []byte{
// 1181 bytes of a gzipped FileDescriptorProto
// 1192 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0xdd, 0x6e, 0xdc, 0x44,
0x14, 0xae, 0xed, 0xfd, 0xc9, 0x9e, 0x4d, 0xda, 0x74, 0x12, 0x82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93, 0xcf, 0xe0, 0x6d, 0x9d, 0x96, 0xbc, 0x54, 0x7c, 0xac, 0x97, 0x8a, 0xd6, 0x7f,
0xfe, 0x8a, 0x1a, 0xf1, 0x63, 0x33, 0x48, 0x6b, 0xd7, 0xbe, 0xdb, 0x3a, 0xf1, 0x33, 0xb1, 0x7f,
0x9b, 0xa7, 0xe4, 0x43, 0x18, 0x48, 0x94, 0x7a, 0x25, 0xb7, 0xfa, 0xa9, 0x20, 0xce, 0x9f, 0x46,
0x73, 0x9f, 0x59, 0x12, 0x9f, 0x87, 0x17, 0xff, 0xf5, 0xe7, 0x9c, 0xf0, 0x5f, 0xd8, 0x72, 0xd8,
0x40, 0xfa, 0x5f, 0x31, 0x2d, 0x06, 0xf8, 0xab, 0xc9, 0xa3, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff,
0xab, 0xcf, 0xc4, 0xe0, 0x4c, 0x11, 0x00, 0x00,
}
......@@ -594,6 +594,7 @@ func (action *Action) IssuanceDebt(debt *pty.IssuanceDebt) (*types.Receipt, erro
debtRecord := &pty.DebtRecord{}
debtRecord.AccountAddr = action.fromaddr
debtRecord.DebtId = common.ToHex(action.txhash)
debtRecord.IssuId = issu.IssuanceId
debtRecord.CollateralValue = btyFrozen
debtRecord.StartTime = action.blocktime
debtRecord.CollateralPrice = lastPrice
......
......@@ -25,6 +25,7 @@ func (c *Issuance) Query_IssuanceInfoByID(req *pty.ReqIssuanceInfo) (types.Messa
CollateralValue: issu.CollateralValue,
DebtValue: issu.DebtValue,
Period: issu.Period,
IssuId: issu.IssuanceId,
}, nil
}
......@@ -46,6 +47,7 @@ func (c *Issuance) Query_IssuanceInfoByIDs(req *pty.ReqIssuanceInfos) (types.Mes
CollateralValue: issu.CollateralValue,
DebtValue: issu.DebtValue,
Period: issu.Period,
IssuId: issu.IssuanceId,
})
}
......
......@@ -2,19 +2,19 @@ syntax = "proto3";
package types;
// 借贷信息
// 发行信息
message Issuance {
string issuanceId = 1; //借贷ID,一期借贷对应一个ID
int64 totalBalance = 2; //当期可借贷的总金额(ccny)
string issuanceId = 1; //发行ID,一期发行对应一个ID
int64 totalBalance = 2; //当期发行的总金额(ccny)
int64 debtCeiling = 3; //单用户可借出的限额(ccny)
float liquidationRatio = 4; //清算比例
int64 collateralValue = 5; //抵押物总数量(bty)
int64 debtValue = 6; //产生的ccny数量
repeated DebtRecord debtRecords = 7; //大户抵押记录
repeated DebtRecord invalidRecords = 8; //大户抵押记录
int32 status = 9; //当期借贷的状态,是否关闭
float latestLiquidationPrice = 10; //最高清算价格
int64 period = 11;//借贷最大期限
int32 status = 9; //当期发行的状态,是否关闭
float latestLiquidationPrice = 10;//最高清算价格
int64 period = 11;//发行最大期限
int64 latestExpireTime = 12;//最近超期时间
int64 createTime = 13;//创建时间
int64 balance = 14;//剩余可发行ccny
......@@ -25,8 +25,8 @@ message Issuance {
// 抵押记录
message DebtRecord {
string accountAddr = 1; //借贷人地址
int64 startTime = 2; //借贷时间
string accountAddr = 1; //抵押人地址
int64 startTime = 2; //抵押时间
int64 collateralValue = 3; //抵押物价值(bty)
float collateralPrice = 4; //抵押物价格
int64 debtValue = 5; //债务价值(ccny)
......@@ -36,8 +36,9 @@ message DebtRecord {
int64 expireTime = 9; //超时清算时间
int32 preStatus = 10;//上一次抵押状态,用于告警恢复
string debtId = 11;//借贷id
int64 index = 12;//当前索引
int64 preIndex = 13;//上级索引
string issuId = 12;//发行id
int64 index = 13;//当前索引
int64 preIndex = 14;//上级索引
}
// 资产价格记录
......@@ -49,8 +50,8 @@ message IssuanceAssetPriceRecord {
// action
message IssuanceAction {
oneof value {
IssuanceCreate create = 1; //创建一期借贷
IssuanceDebt debt = 2; //借贷
IssuanceCreate create = 1; //创建一期发行
IssuanceDebt debt = 2; //抵押
IssuanceRepay repay = 3; //清算
IssuanceFeed feed = 4; //喂价
IssuanceClose close = 5; //关闭
......@@ -63,24 +64,24 @@ message IssuanceManage {
repeated string superAddrs = 1; //大户地址
}
// 创建借贷
// 创建发行
message IssuanceCreate {
int64 totalBalance = 1; //可借贷总金额
int64 totalBalance = 1; //发行总金额
int64 debtCeiling = 2; //单用户可借出的限额(ccny)
float liquidationRatio = 3; //清算比例
int64 period = 4;//借贷最大期限
int64 period = 4; //发行最大期限
}
// 质押借出
// 抵押
message IssuanceDebt {
string issuanceId = 1; //借贷期数ID
int64 value = 2; //借贷价值(ccny)
string issuanceId = 1; //发行ID
int64 value = 2; //借贷金额(ccny)
}
// 质押清算
message IssuanceRepay {
string issuanceId = 1; //借贷期数ID
string debtId = 2; //借贷ID
string issuanceId = 1; //发行ID
string debtId = 2; //抵押ID
}
// 喂价
......@@ -92,10 +93,10 @@ message IssuanceFeed {
// 借贷关闭
message IssuanceClose {
string issuanceId = 1; //借贷期数ID
string issuanceId = 1; //发行ID
}
// exec_local 借贷信息
// exec_local 发行信息
message ReceiptIssuance {
string issuanceId = 1;
string accountAddr = 2;
......@@ -108,7 +109,7 @@ message ReceiptIssuance {
float btyPrice = 9; //bty价格
}
// exec_local 借贷记录信息
// exec_local 抵押记录信息
message IssuanceRecord {
string issuanceId = 1;
string addr = 2;
......@@ -116,34 +117,35 @@ message IssuanceRecord {
int64 index = 4;
}
// exec_local 借贷记录信息列表
// exec_local 抵押记录信息列表
message IssuanceRecords {
repeated IssuanceRecord records = 1;
}
// 根据ID查询一期借贷信息
// 根据ID查询发行信息
message ReqIssuanceInfo {
string issuanceId = 1;
}
// 返回一期借贷信息
// 返回一期发行信息
message RepIssuanceCurrentInfo {
int32 status = 1;//当期借贷的状态,是否关闭
int64 totalBalance = 2; //当期可借贷的总金额(ccny)
int32 status = 1; //当期发行的状态,是否关闭
int64 totalBalance = 2; //当期发行总金额(ccny)
int64 debtCeiling = 3; //单用户可借出的限额(ccny)
float liquidationRatio = 4; //清算比例
int64 balance = 5; //剩余可借贷金额(ccny)
int64 collateralValue = 6; //抵押物总数量(bty)
int64 debtValue = 7; //产生的ccny数量
int64 period = 8;//借贷最大期限
int64 period = 8; //发行最大期限
string issuId = 9; //发行ID
}
// 根据ID列表查询多期借贷信息
// 根据ID列表查询多期发行信息
message ReqIssuanceInfos {
repeated string issuanceIds = 1;
}
// 返回多期借贷信息
// 返回多期发行信息
message RepIssuanceCurrentInfos {
repeated RepIssuanceCurrentInfo infos = 1;
}
......@@ -154,19 +156,19 @@ message ReqIssuanceByStatus {
int64 index = 2;
}
// 返回借贷ID列表
// 返回发行ID列表
message RepIssuanceIDs {
repeated string IDs = 1;
}
// 根据用户地址查询发行记录
// 根据用户地址查询抵押记录
message ReqIssuanceRecordsByAddr {
string issuanceId = 1;
string addr = 2;
int64 index = 3;
}
// 根据状态查询发行记录
// 根据状态查询抵押记录
message ReqIssuanceRecordsByStatus {
string issuanceId = 1;
int32 status = 2;
......@@ -178,7 +180,7 @@ message RepIssuanceRecords {
repeated DebtRecord records = 1;
}
// 精确查找发行记录
// 精确查找抵押记录
message ReqIssuanceDebtInfo {
string issuanceId = 1;
string debtId = 2;
......
......@@ -20,7 +20,7 @@ var _ = math.Inf
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// 借贷信息
// 发行信息
type Issuance struct {
IssuanceId string `protobuf:"bytes,1,opt,name=issuanceId,proto3" json:"issuanceId,omitempty"`
TotalBalance int64 `protobuf:"varint,2,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`
......@@ -201,8 +201,9 @@ type DebtRecord struct {
ExpireTime int64 `protobuf:"varint,9,opt,name=expireTime,proto3" json:"expireTime,omitempty"`
PreStatus int32 `protobuf:"varint,10,opt,name=preStatus,proto3" json:"preStatus,omitempty"`
DebtId string `protobuf:"bytes,11,opt,name=debtId,proto3" json:"debtId,omitempty"`
Index int64 `protobuf:"varint,12,opt,name=index,proto3" json:"index,omitempty"`
PreIndex int64 `protobuf:"varint,13,opt,name=preIndex,proto3" json:"preIndex,omitempty"`
IssuId string `protobuf:"bytes,12,opt,name=issuId,proto3" json:"issuId,omitempty"`
Index int64 `protobuf:"varint,13,opt,name=index,proto3" json:"index,omitempty"`
PreIndex int64 `protobuf:"varint,14,opt,name=preIndex,proto3" json:"preIndex,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
......@@ -310,6 +311,13 @@ func (m *DebtRecord) GetDebtId() string {
return ""
}
func (m *DebtRecord) GetIssuId() string {
if m != nil {
return m.IssuId
}
return ""
}
func (m *DebtRecord) GetIndex() int64 {
if m != nil {
return m.Index
......@@ -560,7 +568,7 @@ func (m *IssuanceManage) GetSuperAddrs() []string {
return nil
}
// 创建借贷
// 创建发行
type IssuanceCreate struct {
TotalBalance int64 `protobuf:"varint,1,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`
DebtCeiling int64 `protobuf:"varint,2,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"`
......@@ -624,7 +632,7 @@ func (m *IssuanceCreate) GetPeriod() int64 {
return 0
}
// 质押借出
// 抵押
type IssuanceDebt struct {
IssuanceId string `protobuf:"bytes,1,opt,name=issuanceId,proto3" json:"issuanceId,omitempty"`
Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
......@@ -816,7 +824,7 @@ func (m *IssuanceClose) GetIssuanceId() string {
return ""
}
// exec_local 借贷信息
// exec_local 发行信息
type ReceiptIssuance struct {
IssuanceId string `protobuf:"bytes,1,opt,name=issuanceId,proto3" json:"issuanceId,omitempty"`
AccountAddr string `protobuf:"bytes,2,opt,name=accountAddr,proto3" json:"accountAddr,omitempty"`
......@@ -920,7 +928,7 @@ func (m *ReceiptIssuance) GetBtyPrice() float32 {
return 0
}
// exec_local 借贷记录信息
// exec_local 抵押记录信息
type IssuanceRecord struct {
IssuanceId string `protobuf:"bytes,1,opt,name=issuanceId,proto3" json:"issuanceId,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
......@@ -984,7 +992,7 @@ func (m *IssuanceRecord) GetIndex() int64 {
return 0
}
// exec_local 借贷记录信息列表
// exec_local 抵押记录信息列表
type IssuanceRecords struct {
Records []*IssuanceRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -1024,7 +1032,7 @@ func (m *IssuanceRecords) GetRecords() []*IssuanceRecord {
return nil
}
// 根据ID查询一期借贷信息
// 根据ID查询发行信息
type ReqIssuanceInfo struct {
IssuanceId string `protobuf:"bytes,1,opt,name=issuanceId,proto3" json:"issuanceId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -1064,7 +1072,7 @@ func (m *ReqIssuanceInfo) GetIssuanceId() string {
return ""
}
// 返回一期借贷信息
// 返回一期发行信息
type RepIssuanceCurrentInfo struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
TotalBalance int64 `protobuf:"varint,2,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`
......@@ -1074,6 +1082,7 @@ type RepIssuanceCurrentInfo struct {
CollateralValue int64 `protobuf:"varint,6,opt,name=collateralValue,proto3" json:"collateralValue,omitempty"`
DebtValue int64 `protobuf:"varint,7,opt,name=debtValue,proto3" json:"debtValue,omitempty"`
Period int64 `protobuf:"varint,8,opt,name=period,proto3" json:"period,omitempty"`
IssuId string `protobuf:"bytes,9,opt,name=issuId,proto3" json:"issuId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
......@@ -1160,7 +1169,14 @@ func (m *RepIssuanceCurrentInfo) GetPeriod() int64 {
return 0
}
// 根据ID列表查询多期借贷信息
func (m *RepIssuanceCurrentInfo) GetIssuId() string {
if m != nil {
return m.IssuId
}
return ""
}
// 根据ID列表查询多期发行信息
type ReqIssuanceInfos struct {
IssuanceIds []string `protobuf:"bytes,1,rep,name=issuanceIds,proto3" json:"issuanceIds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -1200,7 +1216,7 @@ func (m *ReqIssuanceInfos) GetIssuanceIds() []string {
return nil
}
// 返回多期借贷信息
// 返回多期发行信息
type RepIssuanceCurrentInfos struct {
Infos []*RepIssuanceCurrentInfo `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -1288,7 +1304,7 @@ func (m *ReqIssuanceByStatus) GetIndex() int64 {
return 0
}
// 返回借贷ID列表
// 返回发行ID列表
type RepIssuanceIDs struct {
IDs []string `protobuf:"bytes,1,rep,name=IDs,proto3" json:"IDs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -1328,7 +1344,7 @@ func (m *RepIssuanceIDs) GetIDs() []string {
return nil
}
// 根据用户地址查询发行记录
// 根据用户地址查询抵押记录
type ReqIssuanceRecordsByAddr struct {
IssuanceId string `protobuf:"bytes,1,opt,name=issuanceId,proto3" json:"issuanceId,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
......@@ -1384,7 +1400,7 @@ func (m *ReqIssuanceRecordsByAddr) GetIndex() int64 {
return 0
}
// 根据状态查询发行记录
// 根据状态查询抵押记录
type ReqIssuanceRecordsByStatus struct {
IssuanceId string `protobuf:"bytes,1,opt,name=issuanceId,proto3" json:"issuanceId,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
......@@ -1480,7 +1496,7 @@ func (m *RepIssuanceRecords) GetRecords() []*DebtRecord {
return nil
}
// 精确查找发行记录
// 精确查找抵押记录
type ReqIssuanceDebtInfo struct {
IssuanceId string `protobuf:"bytes,1,opt,name=issuanceId,proto3" json:"issuanceId,omitempty"`
DebtId string `protobuf:"bytes,2,opt,name=debtId,proto3" json:"debtId,omitempty"`
......@@ -1598,73 +1614,74 @@ func init() {
func init() { proto.RegisterFile("issuance.proto", fileDescriptor_7110f4228953d675) }
var fileDescriptor_7110f4228953d675 = []byte{
// 1074 bytes of a gzipped FileDescriptorProto
// 1091 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xdd, 0x6e, 0xe3, 0x44,
0x14, 0xae, 0xed, 0x38, 0x3f, 0x27, 0x6d, 0xda, 0x9d, 0xed, 0x16, 0x6b, 0x05, 0xab, 0xc8, 0xe2,
0x22, 0x0b, 0xa8, 0x85, 0x16, 0x21, 0x71, 0x47, 0xd3, 0x02, 0x8d, 0xc4, 0x22, 0x64, 0x56, 0x2b,
0x6e, 0x5d, 0x7b, 0xba, 0x32, 0x72, 0x63, 0xaf, 0x3d, 0xa9, 0x36, 0x4f, 0xc1, 0x3d, 0xe2, 0x21,
0x78, 0x01, 0xde, 0x8a, 0x07, 0x40, 0xe7, 0xcc, 0xd8, 0xe3, 0xbf, 0x34, 0x11, 0x17, 0x7b, 0x53,
0x65, 0xce, 0x7c, 0x73, 0x7e, 0xbf, 0xf9, 0x3c, 0x85, 0x49, 0x94, 0xe7, 0x2b, 0x7f, 0x19, 0xf0,
0xd3, 0x34, 0x4b, 0x44, 0xc2, 0x6c, 0xb1, 0x4e, 0x79, 0xee, 0xfe, 0xdb, 0x83, 0xe1, 0x42, 0xed,
0xb0, 0x17, 0x00, 0x05, 0x6a, 0x11, 0x3a, 0xc6, 0xd4, 0x98, 0x8d, 0xbc, 0x8a, 0x85, 0xb9, 0xb0,
0x2f, 0x12, 0xe1, 0xc7, 0x73, 0x3f, 0x46, 0x8b, 0x63, 0x4e, 0x8d, 0x99, 0xe5, 0xd5, 0x6c, 0x6c,
0x0a, 0xe3, 0x90, 0xdf, 0x8a, 0x2b, 0x1e, 0xc5, 0xd1, 0xf2, 0xad, 0x63, 0x11, 0xa4, 0x6a, 0x62,
0x9f, 0xc1, 0x51, 0x1c, 0xbd, 0x5b, 0x45, 0xa1, 0x2f, 0xa2, 0x64, 0xe9, 0xe1, 0x5f, 0xa7, 0x37,
0x35, 0x66, 0xa6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e, 0x0a,
0xc0, 0x9f, 0x6e, 0x08, 0x4e, 0x25, 0x90, 0xe2, 0xe7, 0x7c, 0x4d, 0x07, 0xfd, 0xff, 0x1c, 0x8d,
0x32, 0x13, 0xab, 0x9a, 0xc9, 0xef, 0xf0, 0xbc, 0x2b, 0x8a, 0xaa, 0x6a, 0x07, 0xa5, 0x55, 0x55,
0x9b, 0xdd, 0x55, 0xd7, 0x62, 0x5d, 0x02, 0xab, 0x54, 0x5d, 0x9c, 0xb8, 0xcf, 0x9b, 0x27, 0xae,
0xe3, 0xa9, 0x5e, 0x9e, 0xb6, 0x57, 0xb5, 0xee, 0x23, 0x62, 0x97, 0x13, 0xb7, 0xf1, 0x46, 0xf8,
0x0e, 0xdd, 0xa5, 0x2d, 0x77, 0x2f, 0xa1, 0x2f, 0x03, 0xaa, 0x37, 0x4b, 0x47, 0x46, 0x0a, 0x70,
0xdb, 0xa7, 0xff, 0xcc, 0x2e, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x7d, 0x38, 0xd8, 0xb1, 0xab,
0x0d, 0x00, 0x00,
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment