types

package
v1.67.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollateralizeActionCreate = 1 + iota
	CollateralizeActionBorrow
	CollateralizeActionRepay
	CollateralizeActionAppend
	CollateralizeActionFeed
	CollateralizeActionRetrieve
	CollateralizeActionManage

	//log for Collateralize
	TyLogCollateralizeCreate   = 731
	TyLogCollateralizeBorrow   = 732
	TyLogCollateralizeRepay    = 733
	TyLogCollateralizeAppend   = 734
	TyLogCollateralizeFeed     = 735
	TyLogCollateralizeRetrieve = 736
)

Collateralize op

View Source
const (
	CollateralizeX                   = "collateralize"
	CCNYTokenName                    = "CCNY"
	CollateralizePreLiquidationRatio = 1.1 * 1e4 //TODO 预清算比例,抵押物价值跌到借出ccny价值110%的时候开始清算
)

Collateralize name

View Source
const (
	CollateralizeStatusCreated = 1 + iota
	CollateralizeStatusClose
)

Collateralize status

View Source
const (
	CollateralizeUserStatusCreate = 1 + iota
	CollateralizeUserStatusWarning
	CollateralizeUserStatusSystemLiquidate
	CollateralizeUserStatusExpire
	CollateralizeUserStatusExpireLiquidate
	CollateralizeUserStatusClose
)

collater ...

Variables

View Source
var (
	ErrRiskParam                      = errors.New("ErrRiskParam")
	ErrCollateralizeStatus            = errors.New("ErrCollateralizeStatus")
	ErrCollateralizeExceedDebtCeiling = errors.New("ErrCollateralizeExceedDebtCeiling")
	ErrPriceInvalid                   = errors.New("ErrPriceInvalid")
	ErrAssetType                      = errors.New("ErrAssetType")
	ErrRecordNotExist                 = errors.New("ErrRecordNotExist")
	ErrCollateralizeErrCloser         = errors.New("ErrCollateralizeErrCloser")
	ErrRepayValueInsufficient         = errors.New("ErrRepayValueInsufficient")
	ErrCollateralizeAccountExist      = errors.New("ErrCollateralizeAccountExist")
	ErrCollateralizeLowBalance        = errors.New("ErrCollateralizeLowBalance")
	ErrCollateralizeBalanceInvalid    = errors.New("ErrCollateralizeBalanceInvalid")
	ErrPermissionDeny                 = errors.New("ErrPermissionDeny")
	ErrCollateralizeRecordNotEmpty    = errors.New("ErrCollateralizeRecordNotEmpty")
)

Errors for lottery

View Source
var (
	ForkCollateralizeTableUpdate = "ForkCollateralizeTableUpdate"
	ForkCollateralizePrecision   = "ForkCollateralizePrecision"
)

fork ...

View Source
var File_collateralize_proto protoreflect.FileDescriptor

Functions

func CreateRawCollateralizeAppendTx

func CreateRawCollateralizeAppendTx(cfg *types.Chain33Config, parm *CollateralizeAppendTx) (*types.Transaction, error)

CreateRawCollateralizeAppendTx method

func CreateRawCollateralizeBorrowTx

func CreateRawCollateralizeBorrowTx(cfg *types.Chain33Config, parm *CollateralizeBorrowTx) (*types.Transaction, error)

CreateRawCollateralizeBorrowTx method

func CreateRawCollateralizeCreateTx

func CreateRawCollateralizeCreateTx(cfg *types.Chain33Config, parm *CollateralizeCreateTx) (*types.Transaction, error)

CreateRawCollateralizeCreateTx method

func CreateRawCollateralizeFeedTx

func CreateRawCollateralizeFeedTx(cfg *types.Chain33Config, parm *CollateralizeFeedTx) (*types.Transaction, error)

CreateRawCollateralizeFeedTx method

func CreateRawCollateralizeManageTx

func CreateRawCollateralizeManageTx(cfg *types.Chain33Config, parm *CollateralizeManageTx) (*types.Transaction, error)

CreateRawCollateralizeManageTx method

func CreateRawCollateralizeRepayTx

func CreateRawCollateralizeRepayTx(cfg *types.Chain33Config, parm *CollateralizeRepayTx) (*types.Transaction, error)

CreateRawCollateralizeRepayTx method

func CreateRawCollateralizeRetrieveTx

func CreateRawCollateralizeRetrieveTx(cfg *types.Chain33Config, parm *CollateralizeRetrieveTx) (*types.Transaction, error)

CreateRawCollateralizeRetrieveTx method

func InitExecutor

func InitExecutor(cfg *types.Chain33Config)

InitExecutor ...

func InitFork

func InitFork(cfg *types.Chain33Config)

InitFork ...

func NewCollateralizeTable

func NewCollateralizeTable(kvdb db.KV) *table.Table

NewCollateralizeTable 新建表

func NewRecordTable

func NewRecordTable(kvdb db.KV) *table.Table

NewRecordTable 借贷记录表

Types

type AssetPriceRecord

type AssetPriceRecord struct {
	RecordTime int64 `protobuf:"varint,1,opt,name=recordTime,proto3" json:"recordTime,omitempty"` //价格记录时间
	BtyPrice   int64 `protobuf:"varint,2,opt,name=btyPrice,proto3" json:"btyPrice,omitempty"`     // bty价格
	BtcPrice   int64 `protobuf:"varint,3,opt,name=btcPrice,proto3" json:"btcPrice,omitempty"`     // btc价格
	EthPrice   int64 `protobuf:"varint,4,opt,name=ethPrice,proto3" json:"ethPrice,omitempty"`     // eth价格
	// contains filtered or unexported fields
}

资产价格记录

func (*AssetPriceRecord) Descriptor deprecated

func (*AssetPriceRecord) Descriptor() ([]byte, []int)

Deprecated: Use AssetPriceRecord.ProtoReflect.Descriptor instead.

func (*AssetPriceRecord) GetBtcPrice

func (x *AssetPriceRecord) GetBtcPrice() int64

func (*AssetPriceRecord) GetBtyPrice

func (x *AssetPriceRecord) GetBtyPrice() int64

func (*AssetPriceRecord) GetEthPrice

func (x *AssetPriceRecord) GetEthPrice() int64

func (*AssetPriceRecord) GetRecordTime

func (x *AssetPriceRecord) GetRecordTime() int64

func (*AssetPriceRecord) ProtoMessage

func (*AssetPriceRecord) ProtoMessage()

func (*AssetPriceRecord) ProtoReflect added in v1.65.3

func (x *AssetPriceRecord) ProtoReflect() protoreflect.Message

func (*AssetPriceRecord) Reset

func (x *AssetPriceRecord) Reset()

func (*AssetPriceRecord) String

func (x *AssetPriceRecord) String() string

type BorrowRecord

type BorrowRecord struct {
	AccountAddr      string `protobuf:"bytes,1,opt,name=accountAddr,proto3" json:"accountAddr,omitempty"`            //借贷人地址
	StartTime        int64  `protobuf:"varint,2,opt,name=startTime,proto3" json:"startTime,omitempty"`               //借贷时间
	CollateralValue  int64  `protobuf:"varint,3,opt,name=collateralValue,proto3" json:"collateralValue,omitempty"`   //抵押物价值(bty)
	CollateralPrice  int64  `protobuf:"varint,4,opt,name=collateralPrice,proto3" json:"collateralPrice,omitempty"`   //抵押物价格
	DebtValue        int64  `protobuf:"varint,5,opt,name=debtValue,proto3" json:"debtValue,omitempty"`               //债务价值(ccny)
	LiquidationPrice int64  `protobuf:"varint,6,opt,name=liquidationPrice,proto3" json:"liquidationPrice,omitempty"` //抵押物清算价格
	Status           int32  `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`                     //抵押状态,是否被清算
	LiquidateTime    int64  `protobuf:"varint,8,opt,name=liquidateTime,proto3" json:"liquidateTime,omitempty"`       //清算时间
	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"`                 //借贷id,标识一次借出记录
	CollateralizeId  string `protobuf:"bytes,12,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`   //放贷id
	// contains filtered or unexported fields
}

借出记录

func (*BorrowRecord) Descriptor deprecated

func (*BorrowRecord) Descriptor() ([]byte, []int)

Deprecated: Use BorrowRecord.ProtoReflect.Descriptor instead.

func (*BorrowRecord) GetAccountAddr

func (x *BorrowRecord) GetAccountAddr() string

func (*BorrowRecord) GetCollateralPrice

func (x *BorrowRecord) GetCollateralPrice() int64

func (*BorrowRecord) GetCollateralValue

func (x *BorrowRecord) GetCollateralValue() int64

func (*BorrowRecord) GetCollateralizeId

func (x *BorrowRecord) GetCollateralizeId() string

func (*BorrowRecord) GetDebtValue

func (x *BorrowRecord) GetDebtValue() int64

func (*BorrowRecord) GetExpireTime

func (x *BorrowRecord) GetExpireTime() int64

func (*BorrowRecord) GetLiquidateTime

func (x *BorrowRecord) GetLiquidateTime() int64

func (*BorrowRecord) GetLiquidationPrice

func (x *BorrowRecord) GetLiquidationPrice() int64

func (*BorrowRecord) GetPreStatus

func (x *BorrowRecord) GetPreStatus() int32

func (*BorrowRecord) GetRecordId

func (x *BorrowRecord) GetRecordId() string

func (*BorrowRecord) GetStartTime

func (x *BorrowRecord) GetStartTime() int64

func (*BorrowRecord) GetStatus

func (x *BorrowRecord) GetStatus() int32

func (*BorrowRecord) ProtoMessage

func (*BorrowRecord) ProtoMessage()

func (*BorrowRecord) ProtoReflect added in v1.65.3

func (x *BorrowRecord) ProtoReflect() protoreflect.Message

func (*BorrowRecord) Reset

func (x *BorrowRecord) Reset()

func (*BorrowRecord) String

func (x *BorrowRecord) String() string

type Collateralize

type Collateralize struct {
	CollateralizeId        string          `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`                 //放贷ID,一期放贷对应一个ID
	TotalBalance           int64           `protobuf:"varint,2,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`                      //当期放贷的总金额(ccny)
	DebtCeiling            int64           `protobuf:"varint,3,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"`                        //单用户可借出的限额(ccny)
	LiquidationRatio       int64           `protobuf:"varint,4,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"`              //清算比例
	StabilityFeeRatio      int64           `protobuf:"varint,5,opt,name=stabilityFeeRatio,proto3" json:"stabilityFeeRatio,omitempty"`            //稳定费率
	CreateAddr             string          `protobuf:"bytes,6,opt,name=createAddr,proto3" json:"createAddr,omitempty"`                           //创建人地址
	Balance                int64           `protobuf:"varint,7,opt,name=balance,proto3" json:"balance,omitempty"`                                //放贷剩余金额(ccny)
	BorrowRecords          []*BorrowRecord `protobuf:"bytes,8,rep,name=borrowRecords,proto3" json:"borrowRecords,omitempty"`                     //借贷记录
	InvalidRecords         []*BorrowRecord `protobuf:"bytes,9,rep,name=InvalidRecords,proto3" json:"InvalidRecords,omitempty"`                   //失效的借贷记录
	Status                 int32           `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"`                                 //当期借贷的状态,是否关闭
	LatestLiquidationPrice int64           `protobuf:"varint,11,opt,name=latestLiquidationPrice,proto3" json:"latestLiquidationPrice,omitempty"` //最高清算价格
	Period                 int64           `protobuf:"varint,12,opt,name=period,proto3" json:"period,omitempty"`                                 //借贷最大期限
	LatestExpireTime       int64           `protobuf:"varint,13,opt,name=latestExpireTime,proto3" json:"latestExpireTime,omitempty"`             //最近超期时间
	CollBalance            int64           `protobuf:"varint,14,opt,name=collBalance,proto3" json:"collBalance,omitempty"`                       //抵押bty
	PreStatus              int32           `protobuf:"varint,15,opt,name=preStatus,proto3" json:"preStatus,omitempty"`                           //上一个状态
	// contains filtered or unexported fields
}

放贷信息

func (*Collateralize) Descriptor deprecated

func (*Collateralize) Descriptor() ([]byte, []int)

Deprecated: Use Collateralize.ProtoReflect.Descriptor instead.

func (*Collateralize) GetBalance

func (x *Collateralize) GetBalance() int64

func (*Collateralize) GetBorrowRecords

func (x *Collateralize) GetBorrowRecords() []*BorrowRecord

func (*Collateralize) GetCollBalance

func (x *Collateralize) GetCollBalance() int64

func (*Collateralize) GetCollateralizeId

func (x *Collateralize) GetCollateralizeId() string

func (*Collateralize) GetCreateAddr

func (x *Collateralize) GetCreateAddr() string

func (*Collateralize) GetDebtCeiling

func (x *Collateralize) GetDebtCeiling() int64

func (*Collateralize) GetInvalidRecords

func (x *Collateralize) GetInvalidRecords() []*BorrowRecord

func (*Collateralize) GetLatestExpireTime

func (x *Collateralize) GetLatestExpireTime() int64

func (*Collateralize) GetLatestLiquidationPrice

func (x *Collateralize) GetLatestLiquidationPrice() int64

func (*Collateralize) GetLiquidationRatio

func (x *Collateralize) GetLiquidationRatio() int64

func (*Collateralize) GetPeriod

func (x *Collateralize) GetPeriod() int64

func (*Collateralize) GetPreStatus

func (x *Collateralize) GetPreStatus() int32

func (*Collateralize) GetStabilityFeeRatio

func (x *Collateralize) GetStabilityFeeRatio() int64

func (*Collateralize) GetStatus

func (x *Collateralize) GetStatus() int32

func (*Collateralize) GetTotalBalance

func (x *Collateralize) GetTotalBalance() int64

func (*Collateralize) ProtoMessage

func (*Collateralize) ProtoMessage()

func (*Collateralize) ProtoReflect added in v1.65.3

func (x *Collateralize) ProtoReflect() protoreflect.Message

func (*Collateralize) Reset

func (x *Collateralize) Reset()

func (*Collateralize) String

func (x *Collateralize) String() string

type CollateralizeAction

type CollateralizeAction struct {

	// Types that are assignable to Value:
	//	*CollateralizeAction_Create
	//	*CollateralizeAction_Borrow
	//	*CollateralizeAction_Repay
	//	*CollateralizeAction_Append
	//	*CollateralizeAction_Feed
	//	*CollateralizeAction_Retrieve
	//	*CollateralizeAction_Manage
	Value isCollateralizeAction_Value `protobuf_oneof:"value"`
	Ty    int32                       `protobuf:"varint,10,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

action

func (*CollateralizeAction) Descriptor deprecated

func (*CollateralizeAction) Descriptor() ([]byte, []int)

Deprecated: Use CollateralizeAction.ProtoReflect.Descriptor instead.

func (*CollateralizeAction) GetAppend

func (x *CollateralizeAction) GetAppend() *CollateralizeAppend

func (*CollateralizeAction) GetBorrow

func (x *CollateralizeAction) GetBorrow() *CollateralizeBorrow

func (*CollateralizeAction) GetCreate

func (x *CollateralizeAction) GetCreate() *CollateralizeCreate

func (*CollateralizeAction) GetFeed

func (x *CollateralizeAction) GetFeed() *CollateralizeFeed

func (*CollateralizeAction) GetManage

func (x *CollateralizeAction) GetManage() *CollateralizeManage

func (*CollateralizeAction) GetRepay

func (x *CollateralizeAction) GetRepay() *CollateralizeRepay

func (*CollateralizeAction) GetRetrieve

func (x *CollateralizeAction) GetRetrieve() *CollateralizeRetrieve

func (*CollateralizeAction) GetTy

func (x *CollateralizeAction) GetTy() int32

func (*CollateralizeAction) GetValue

func (m *CollateralizeAction) GetValue() isCollateralizeAction_Value

func (*CollateralizeAction) ProtoMessage

func (*CollateralizeAction) ProtoMessage()

func (*CollateralizeAction) ProtoReflect added in v1.65.3

func (x *CollateralizeAction) ProtoReflect() protoreflect.Message

func (*CollateralizeAction) Reset

func (x *CollateralizeAction) Reset()

func (*CollateralizeAction) String

func (x *CollateralizeAction) String() string

type CollateralizeAction_Append

type CollateralizeAction_Append struct {
	Append *CollateralizeAppend `protobuf:"bytes,4,opt,name=append,proto3,oneof"` //追加
}

type CollateralizeAction_Borrow

type CollateralizeAction_Borrow struct {
	Borrow *CollateralizeBorrow `protobuf:"bytes,2,opt,name=borrow,proto3,oneof"` //借贷
}

type CollateralizeAction_Create

type CollateralizeAction_Create struct {
	Create *CollateralizeCreate `protobuf:"bytes,1,opt,name=create,proto3,oneof"` //创建一期借贷
}

type CollateralizeAction_Feed

type CollateralizeAction_Feed struct {
	Feed *CollateralizeFeed `protobuf:"bytes,5,opt,name=feed,proto3,oneof"` //喂价
}

type CollateralizeAction_Manage

type CollateralizeAction_Manage struct {
	Manage *CollateralizeManage `protobuf:"bytes,7,opt,name=manage,proto3,oneof"` //全局配置
}

type CollateralizeAction_Repay

type CollateralizeAction_Repay struct {
	Repay *CollateralizeRepay `protobuf:"bytes,3,opt,name=repay,proto3,oneof"` //清算
}

type CollateralizeAction_Retrieve

type CollateralizeAction_Retrieve struct {
	Retrieve *CollateralizeRetrieve `protobuf:"bytes,6,opt,name=retrieve,proto3,oneof"` //收回
}

type CollateralizeAddr

type CollateralizeAddr struct {
	SuperAddrs []string `protobuf:"bytes,1,rep,name=superAddrs,proto3" json:"superAddrs,omitempty"` //大户地址
	// contains filtered or unexported fields
}

func (*CollateralizeAddr) Descriptor deprecated

func (*CollateralizeAddr) Descriptor() ([]byte, []int)

Deprecated: Use CollateralizeAddr.ProtoReflect.Descriptor instead.

func (*CollateralizeAddr) GetSuperAddrs

func (x *CollateralizeAddr) GetSuperAddrs() []string

func (*CollateralizeAddr) ProtoMessage

func (*CollateralizeAddr) ProtoMessage()

func (*CollateralizeAddr) ProtoReflect added in v1.65.3

func (x *CollateralizeAddr) ProtoReflect() protoreflect.Message

func (*CollateralizeAddr) Reset

func (x *CollateralizeAddr) Reset()

func (*CollateralizeAddr) String

func (x *CollateralizeAddr) String() string

type CollateralizeAppend

type CollateralizeAppend struct {
	CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`  //借贷期数ID
	RecordId        string `protobuf:"bytes,2,opt,name=recordId,proto3" json:"recordId,omitempty"`                //借贷ID
	CollateralValue int64  `protobuf:"varint,3,opt,name=collateralValue,proto3" json:"collateralValue,omitempty"` //追加价值(bty)
	// contains filtered or unexported fields
}

追加抵押物

func (*CollateralizeAppend) Descriptor deprecated

func (*CollateralizeAppend) Descriptor() ([]byte, []int)

Deprecated: Use CollateralizeAppend.ProtoReflect.Descriptor instead.

func (*CollateralizeAppend) GetCollateralValue

func (x *CollateralizeAppend) GetCollateralValue() int64

func (*CollateralizeAppend) GetCollateralizeId

func (x *CollateralizeAppend) GetCollateralizeId() string

func (*CollateralizeAppend) GetRecordId

func (x *CollateralizeAppend) GetRecordId() string

func (*CollateralizeAppend) ProtoMessage

func (*CollateralizeAppend) ProtoMessage()

func (*CollateralizeAppend) ProtoReflect added in v1.65.3

func (x *CollateralizeAppend) ProtoReflect() protoreflect.Message

func (*CollateralizeAppend) Reset

func (x *CollateralizeAppend) Reset()

func (*CollateralizeAppend) String

func (x *CollateralizeAppend) String() string

type CollateralizeAppendTx

type CollateralizeAppendTx struct {
	CollateralizeID string  `json:"collateralizeId"`
	RecordID        string  `json:"recordID"`
	Value           float64 `json:"value"`
	Fee             int64   `json:"fee"`
}

CollateralizeAppendTx for construction

type CollateralizeBorrow

type CollateralizeBorrow struct {
	CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"` //借贷期数ID
	Value           int64  `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`                    //借贷价值(ccny)
	// contains filtered or unexported fields
}

质押借出

func (*CollateralizeBorrow) Descriptor deprecated

func (*CollateralizeBorrow) Descriptor() ([]byte, []int)

Deprecated: Use CollateralizeBorrow.ProtoReflect.Descriptor instead.

func (*CollateralizeBorrow) GetCollateralizeId

func (x *CollateralizeBorrow) GetCollateralizeId() string

func (*CollateralizeBorrow) GetValue

func (x *CollateralizeBorrow) GetValue() int64

func (*CollateralizeBorrow) ProtoMessage

func (*CollateralizeBorrow) ProtoMessage()

func (*CollateralizeBorrow) ProtoReflect added in v1.65.3

func (x *CollateralizeBorrow) ProtoReflect() protoreflect.Message

func (*CollateralizeBorrow) Reset

func (x *CollateralizeBorrow) Reset()

func (*CollateralizeBorrow) String

func (x *CollateralizeBorrow) String() string

type CollateralizeBorrowTx

type CollateralizeBorrowTx struct {
	CollateralizeID string  `json:"collateralizeId"`
	Value           float64 `json:"value"`
	Fee             int64   `json:"fee"`
}

CollateralizeBorrowTx for construction

type CollateralizeCreate

type CollateralizeCreate struct {
	TotalBalance int64 `protobuf:"varint,1,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"` //可借贷总金额
	// contains filtered or unexported fields
}

创建放贷

func (*CollateralizeCreate) Descriptor deprecated

func (*CollateralizeCreate) Descriptor() ([]byte, []int)

Deprecated: Use CollateralizeCreate.ProtoReflect.Descriptor instead.

func (*CollateralizeCreate) GetTotalBalance

func (x *CollateralizeCreate) GetTotalBalance() int64

func (*CollateralizeCreate) ProtoMessage

func (*CollateralizeCreate) ProtoMessage()

func (*CollateralizeCreate) ProtoReflect added in v1.65.3

func (x *CollateralizeCreate) ProtoReflect() protoreflect.Message

func (*CollateralizeCreate) Reset

func (x *CollateralizeCreate) Reset()

func (*CollateralizeCreate) String

func (x *CollateralizeCreate) String() string

type CollateralizeCreateTx

type CollateralizeCreateTx struct {
	TotalBalance float64 `json:"totalBalance"`
	Fee          int64   `json:"fee"`
}

CollateralizeCreateTx for construction

type CollateralizeFeed

type CollateralizeFeed struct {
	CollType int32   `protobuf:"varint,1,opt,name=collType,proto3" json:"collType,omitempty"`    //抵押物价格类型(1,bty,2,btc,3,eth...)
	Price    []int64 `protobuf:"varint,2,rep,packed,name=price,proto3" json:"price,omitempty"`   //喂价
	Volume   []int64 `protobuf:"varint,3,rep,packed,name=volume,proto3" json:"volume,omitempty"` //成交量
	// contains filtered or unexported fields
}

喂价

func (*CollateralizeFeed) Descriptor deprecated

func (*CollateralizeFeed) Descriptor() ([]byte, []int)

Deprecated: Use CollateralizeFeed.ProtoReflect.Descriptor instead.

func (*CollateralizeFeed) GetCollType

func (x *CollateralizeFeed) GetCollType() int32

func (*CollateralizeFeed) GetPrice

func (x *CollateralizeFeed) GetPrice() []int64

func (*CollateralizeFeed) GetVolume

func (x *CollateralizeFeed) GetVolume() []int64

func (*CollateralizeFeed) ProtoMessage

func (*CollateralizeFeed) ProtoMessage()

func (*CollateralizeFeed) ProtoReflect added in v1.65.3

func (x *CollateralizeFeed) ProtoReflect() protoreflect.Message

func (*CollateralizeFeed) Reset

func (x *CollateralizeFeed) Reset()

func (*CollateralizeFeed) String

func (x *CollateralizeFeed) String() string

type CollateralizeFeedTx

type CollateralizeFeedTx struct {
	Price  []float64 `json:"price"`
	Volume []int64   `json:"volume"`
	Fee    int64     `json:"fee"`
}

CollateralizeFeedTx for construction

type CollateralizeManage

type CollateralizeManage struct {
	DebtCeiling       int64 `protobuf:"varint,1,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"`             //单用户可借出的限额(ccny)
	LiquidationRatio  int64 `protobuf:"varint,2,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"`   //清算比例
	StabilityFeeRatio int64 `protobuf:"varint,3,opt,name=stabilityFeeRatio,proto3" json:"stabilityFeeRatio,omitempty"` //稳定费
	Period            int64 `protobuf:"varint,4,opt,name=period,proto3" json:"period,omitempty"`                       //合约期限
	TotalBalance      int64 `protobuf:"varint,5,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`           //放贷总量
	CurrentTime       int64 `protobuf:"varint,6,opt,name=currentTime,proto3" json:"currentTime,omitempty"`             //设置时间
	// contains filtered or unexported fields
}

func (*CollateralizeManage) Descriptor deprecated

func (*CollateralizeManage) Descriptor() ([]byte, []int)

Deprecated: Use CollateralizeManage.ProtoReflect.Descriptor instead.

func (*CollateralizeManage) GetCurrentTime

func (x *CollateralizeManage) GetCurrentTime() int64

func (*CollateralizeManage) GetDebtCeiling

func (x *CollateralizeManage) GetDebtCeiling() int64

func (*CollateralizeManage) GetLiquidationRatio

func (x *CollateralizeManage) GetLiquidationRatio() int64

func (*CollateralizeManage) GetPeriod

func (x *CollateralizeManage) GetPeriod() int64

func (*CollateralizeManage) GetStabilityFeeRatio

func (x *CollateralizeManage) GetStabilityFeeRatio() int64

func (*CollateralizeManage) GetTotalBalance

func (x *CollateralizeManage) GetTotalBalance() int64

func (*CollateralizeManage) ProtoMessage

func (*CollateralizeManage) ProtoMessage()

func (*CollateralizeManage) ProtoReflect added in v1.65.3

func (x *CollateralizeManage) ProtoReflect() protoreflect.Message

func (*CollateralizeManage) Reset

func (x *CollateralizeManage) Reset()

func (*CollateralizeManage) String

func (x *CollateralizeManage) String() string

type CollateralizeManageTx

type CollateralizeManageTx struct {
	DebtCeiling       float64 `json:"debtCeiling"`
	LiquidationRatio  float64 `json:"liquidationRatio"`
	StabilityFeeRatio float64 `json:"stabilityFeeRatio"`
	Period            int64   `json:"period"`
	TotalBalance      float64 `json:"totalBalance"`
	Fee               int64   `json:"fee"`
}

CollateralizeManageTx for construction

type CollateralizeRecordRow

type CollateralizeRecordRow struct {
	*ReceiptCollateralize
}

CollateralizeRecordRow table meta 结构

func NewRecordRow

func NewRecordRow() *CollateralizeRecordRow

NewRecordRow 新建一个meta 结构

func (*CollateralizeRecordRow) CreateRow

func (tx *CollateralizeRecordRow) CreateRow() *table.Row

CreateRow 新建数据行

func (*CollateralizeRecordRow) Get

func (tx *CollateralizeRecordRow) Get(key string) ([]byte, error)

Get 按照indexName 查询 indexValue

func (*CollateralizeRecordRow) SetPayload

func (tx *CollateralizeRecordRow) SetPayload(data types.Message) error

SetPayload 设置数据

type CollateralizeRecords

type CollateralizeRecords struct {
	Records []*ReceiptCollateralize `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

exec_local 放贷记录信息列表

func (*CollateralizeRecords) Descriptor deprecated

func (*CollateralizeRecords) Descriptor() ([]byte, []int)

Deprecated: Use CollateralizeRecords.ProtoReflect.Descriptor instead.

func (*CollateralizeRecords) GetRecords

func (x *CollateralizeRecords) GetRecords() []*ReceiptCollateralize

func (*CollateralizeRecords) ProtoMessage

func (*CollateralizeRecords) ProtoMessage()

func (*CollateralizeRecords) ProtoReflect added in v1.65.3

func (x *CollateralizeRecords) ProtoReflect() protoreflect.Message

func (*CollateralizeRecords) Reset

func (x *CollateralizeRecords) Reset()

func (*CollateralizeRecords) String

func (x *CollateralizeRecords) String() string

type CollateralizeRepay

type CollateralizeRepay struct {
	CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"` //借贷期数ID
	RecordId        string `protobuf:"bytes,2,opt,name=recordId,proto3" json:"recordId,omitempty"`               //借贷ID
	// contains filtered or unexported fields
}

质押清算

func (*CollateralizeRepay) Descriptor deprecated

func (*CollateralizeRepay) Descriptor() ([]byte, []int)

Deprecated: Use CollateralizeRepay.ProtoReflect.Descriptor instead.

func (*CollateralizeRepay) GetCollateralizeId

func (x *CollateralizeRepay) GetCollateralizeId() string

func (*CollateralizeRepay) GetRecordId

func (x *CollateralizeRepay) GetRecordId() string

func (*CollateralizeRepay) ProtoMessage

func (*CollateralizeRepay) ProtoMessage()

func (*CollateralizeRepay) ProtoReflect added in v1.65.3

func (x *CollateralizeRepay) ProtoReflect() protoreflect.Message

func (*CollateralizeRepay) Reset

func (x *CollateralizeRepay) Reset()

func (*CollateralizeRepay) String

func (x *CollateralizeRepay) String() string

type CollateralizeRepayTx

type CollateralizeRepayTx struct {
	CollateralizeID string `json:"collateralizeId"`
	RecordID        string `json:"recordID"`
	Fee             int64  `json:"fee"`
}

CollateralizeRepayTx for construction

type CollateralizeRetrieve

type CollateralizeRetrieve struct {
	CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"` //借贷期数ID
	Balance         int64  `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`                //收回金额
	// contains filtered or unexported fields
}

收回

func (*CollateralizeRetrieve) Descriptor deprecated

func (*CollateralizeRetrieve) Descriptor() ([]byte, []int)

Deprecated: Use CollateralizeRetrieve.ProtoReflect.Descriptor instead.

func (*CollateralizeRetrieve) GetBalance

func (x *CollateralizeRetrieve) GetBalance() int64

func (*CollateralizeRetrieve) GetCollateralizeId

func (x *CollateralizeRetrieve) GetCollateralizeId() string

func (*CollateralizeRetrieve) ProtoMessage

func (*CollateralizeRetrieve) ProtoMessage()

func (*CollateralizeRetrieve) ProtoReflect added in v1.65.3

func (x *CollateralizeRetrieve) ProtoReflect() protoreflect.Message

func (*CollateralizeRetrieve) Reset

func (x *CollateralizeRetrieve) Reset()

func (*CollateralizeRetrieve) String

func (x *CollateralizeRetrieve) String() string

type CollateralizeRetrieveTx

type CollateralizeRetrieveTx struct {
	CollateralizeID string  `json:"collateralizeId"`
	Balance         float64 `json:"Balance"`
	Fee             int64   `json:"fee"`
}

CollateralizeRetrieveTx for construction

type CollateralizeType

type CollateralizeType struct {
	types.ExecTypeBase
}

CollateralizeType def

func NewType

func NewType(cfg *types.Chain33Config) *CollateralizeType

NewType method

func (CollateralizeType) CreateTx

func (collateralize CollateralizeType) CreateTx(action string, message json.RawMessage) (*types.Transaction, error)

CreateTx method

func (*CollateralizeType) GetLogMap

func (collateralize *CollateralizeType) GetLogMap() map[int64]*types.LogInfo

GetLogMap method

func (*CollateralizeType) GetName

func (collateralize *CollateralizeType) GetName() string

GetName 获取执行器名称

func (*CollateralizeType) GetPayload

func (collateralize *CollateralizeType) GetPayload() types.Message

GetPayload method

func (CollateralizeType) GetTypeMap

func (collateralize CollateralizeType) GetTypeMap() map[string]int32

GetTypeMap method

type CollatetalizeRow

type CollatetalizeRow struct {
	*ReceiptCollateralize
}

CollatetalizeRow table meta 结构

func NewCollatetalizeRow

func NewCollatetalizeRow() *CollatetalizeRow

NewCollatetalizeRow 新建一个meta 结构

func (*CollatetalizeRow) CreateRow

func (tx *CollatetalizeRow) CreateRow() *table.Row

CreateRow 新建数据行

func (*CollatetalizeRow) Get

func (tx *CollatetalizeRow) Get(key string) ([]byte, error)

Get 按照indexName 查询 indexValue

func (*CollatetalizeRow) SetPayload

func (tx *CollatetalizeRow) SetPayload(data types.Message) error

SetPayload 设置数据

type ReceiptCollateralize

type ReceiptCollateralize struct {
	CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`
	AccountAddr     string `protobuf:"bytes,3,opt,name=accountAddr,proto3" json:"accountAddr,omitempty"`
	RecordId        string `protobuf:"bytes,4,opt,name=recordId,proto3" json:"recordId,omitempty"`
	Status          int32  `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

exec_local 放贷信息

func (*ReceiptCollateralize) Descriptor deprecated

func (*ReceiptCollateralize) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptCollateralize.ProtoReflect.Descriptor instead.

func (*ReceiptCollateralize) GetAccountAddr

func (x *ReceiptCollateralize) GetAccountAddr() string

func (*ReceiptCollateralize) GetCollateralizeId

func (x *ReceiptCollateralize) GetCollateralizeId() string

func (*ReceiptCollateralize) GetRecordId

func (x *ReceiptCollateralize) GetRecordId() string

func (*ReceiptCollateralize) GetStatus

func (x *ReceiptCollateralize) GetStatus() int32

func (*ReceiptCollateralize) ProtoMessage

func (*ReceiptCollateralize) ProtoMessage()

func (*ReceiptCollateralize) ProtoReflect added in v1.65.3

func (x *ReceiptCollateralize) ProtoReflect() protoreflect.Message

func (*ReceiptCollateralize) Reset

func (x *ReceiptCollateralize) Reset()

func (*ReceiptCollateralize) String

func (x *ReceiptCollateralize) String() string

type RepCollateralizeConfig

type RepCollateralizeConfig struct {
	DebtCeiling       int64 `protobuf:"varint,1,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"`             //单用户可借出的限额(ccny)
	LiquidationRatio  int64 `protobuf:"varint,2,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"`   //清算比例
	StabilityFeeRatio int64 `protobuf:"varint,3,opt,name=stabilityFeeRatio,proto3" json:"stabilityFeeRatio,omitempty"` //稳定费
	Period            int64 `protobuf:"varint,4,opt,name=period,proto3" json:"period,omitempty"`                       //合约期限
	TotalBalance      int64 `protobuf:"varint,5,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`           //放贷总量
	Balance           int64 `protobuf:"varint,6,opt,name=balance,proto3" json:"balance,omitempty"`                     //剩余放贷额度
	CurrentTime       int64 `protobuf:"varint,7,opt,name=currentTime,proto3" json:"currentTime,omitempty"`             //设置时间
	// contains filtered or unexported fields
}

返回放贷配置

func (*RepCollateralizeConfig) Descriptor deprecated

func (*RepCollateralizeConfig) Descriptor() ([]byte, []int)

Deprecated: Use RepCollateralizeConfig.ProtoReflect.Descriptor instead.

func (*RepCollateralizeConfig) GetBalance

func (x *RepCollateralizeConfig) GetBalance() int64

func (*RepCollateralizeConfig) GetCurrentTime

func (x *RepCollateralizeConfig) GetCurrentTime() int64

func (*RepCollateralizeConfig) GetDebtCeiling

func (x *RepCollateralizeConfig) GetDebtCeiling() int64

func (*RepCollateralizeConfig) GetLiquidationRatio

func (x *RepCollateralizeConfig) GetLiquidationRatio() int64

func (*RepCollateralizeConfig) GetPeriod

func (x *RepCollateralizeConfig) GetPeriod() int64

func (*RepCollateralizeConfig) GetStabilityFeeRatio

func (x *RepCollateralizeConfig) GetStabilityFeeRatio() int64

func (*RepCollateralizeConfig) GetTotalBalance

func (x *RepCollateralizeConfig) GetTotalBalance() int64

func (*RepCollateralizeConfig) ProtoMessage

func (*RepCollateralizeConfig) ProtoMessage()

func (*RepCollateralizeConfig) ProtoReflect added in v1.65.3

func (x *RepCollateralizeConfig) ProtoReflect() protoreflect.Message

func (*RepCollateralizeConfig) Reset

func (x *RepCollateralizeConfig) Reset()

func (*RepCollateralizeConfig) String

func (x *RepCollateralizeConfig) String() string

type RepCollateralizeCurrentInfo

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"`           //当期可借贷的总金额(ccny)
	DebtCeiling       int64           `protobuf:"varint,3,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"`             //单用户可借出的限额(ccny)
	LiquidationRatio  int64           `protobuf:"varint,4,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"`   //清算比例
	StabilityFeeRatio int64           `protobuf:"varint,5,opt,name=stabilityFeeRatio,proto3" json:"stabilityFeeRatio,omitempty"` //稳定费
	CreateAddr        string          `protobuf:"bytes,6,opt,name=createAddr,proto3" json:"createAddr,omitempty"`                //创建人地址
	Balance           int64           `protobuf:"varint,7,opt,name=balance,proto3" json:"balance,omitempty"`                     //剩余可借贷金额(ccny)
	Period            int64           `protobuf:"varint,8,opt,name=period,proto3" json:"period,omitempty"`                       //合约期限
	CollateralizeId   string          `protobuf:"bytes,9,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`      //放贷ID
	CollBalance       int64           `protobuf:"varint,10,opt,name=collBalance,proto3" json:"collBalance,omitempty"`            //抵押bty
	BorrowRecords     []*BorrowRecord `protobuf:"bytes,11,rep,name=borrowRecords,proto3" json:"borrowRecords,omitempty"`         //借贷记录
	// contains filtered or unexported fields
}

返回一期放贷信息

func (*RepCollateralizeCurrentInfo) Descriptor deprecated

func (*RepCollateralizeCurrentInfo) Descriptor() ([]byte, []int)

Deprecated: Use RepCollateralizeCurrentInfo.ProtoReflect.Descriptor instead.

func (*RepCollateralizeCurrentInfo) GetBalance

func (x *RepCollateralizeCurrentInfo) GetBalance() int64

func (*RepCollateralizeCurrentInfo) GetBorrowRecords

func (x *RepCollateralizeCurrentInfo) GetBorrowRecords() []*BorrowRecord

func (*RepCollateralizeCurrentInfo) GetCollBalance

func (x *RepCollateralizeCurrentInfo) GetCollBalance() int64

func (*RepCollateralizeCurrentInfo) GetCollateralizeId

func (x *RepCollateralizeCurrentInfo) GetCollateralizeId() string

func (*RepCollateralizeCurrentInfo) GetCreateAddr

func (x *RepCollateralizeCurrentInfo) GetCreateAddr() string

func (*RepCollateralizeCurrentInfo) GetDebtCeiling

func (x *RepCollateralizeCurrentInfo) GetDebtCeiling() int64

func (*RepCollateralizeCurrentInfo) GetLiquidationRatio

func (x *RepCollateralizeCurrentInfo) GetLiquidationRatio() int64

func (*RepCollateralizeCurrentInfo) GetPeriod

func (x *RepCollateralizeCurrentInfo) GetPeriod() int64

func (*RepCollateralizeCurrentInfo) GetStabilityFeeRatio

func (x *RepCollateralizeCurrentInfo) GetStabilityFeeRatio() int64

func (*RepCollateralizeCurrentInfo) GetStatus

func (x *RepCollateralizeCurrentInfo) GetStatus() int32

func (*RepCollateralizeCurrentInfo) GetTotalBalance

func (x *RepCollateralizeCurrentInfo) GetTotalBalance() int64

func (*RepCollateralizeCurrentInfo) ProtoMessage

func (*RepCollateralizeCurrentInfo) ProtoMessage()

func (*RepCollateralizeCurrentInfo) ProtoReflect added in v1.65.3

func (*RepCollateralizeCurrentInfo) Reset

func (x *RepCollateralizeCurrentInfo) Reset()

func (*RepCollateralizeCurrentInfo) String

func (x *RepCollateralizeCurrentInfo) String() string

type RepCollateralizeCurrentInfos

type RepCollateralizeCurrentInfos struct {
	Infos []*RepCollateralizeCurrentInfo `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"`
	// contains filtered or unexported fields
}

返回多期放贷信息

func (*RepCollateralizeCurrentInfos) Descriptor deprecated

func (*RepCollateralizeCurrentInfos) Descriptor() ([]byte, []int)

Deprecated: Use RepCollateralizeCurrentInfos.ProtoReflect.Descriptor instead.

func (*RepCollateralizeCurrentInfos) GetInfos

func (*RepCollateralizeCurrentInfos) ProtoMessage

func (*RepCollateralizeCurrentInfos) ProtoMessage()

func (*RepCollateralizeCurrentInfos) ProtoReflect added in v1.65.3

func (*RepCollateralizeCurrentInfos) Reset

func (x *RepCollateralizeCurrentInfos) Reset()

func (*RepCollateralizeCurrentInfos) String

type RepCollateralizeIDs

type RepCollateralizeIDs struct {
	IDs []string `protobuf:"bytes,1,rep,name=IDs,proto3" json:"IDs,omitempty"`
	// contains filtered or unexported fields
}

返回放贷ID列表

func (*RepCollateralizeIDs) Descriptor deprecated

func (*RepCollateralizeIDs) Descriptor() ([]byte, []int)

Deprecated: Use RepCollateralizeIDs.ProtoReflect.Descriptor instead.

func (*RepCollateralizeIDs) GetIDs

func (x *RepCollateralizeIDs) GetIDs() []string

func (*RepCollateralizeIDs) ProtoMessage

func (*RepCollateralizeIDs) ProtoMessage()

func (*RepCollateralizeIDs) ProtoReflect added in v1.65.3

func (x *RepCollateralizeIDs) ProtoReflect() protoreflect.Message

func (*RepCollateralizeIDs) Reset

func (x *RepCollateralizeIDs) Reset()

func (*RepCollateralizeIDs) String

func (x *RepCollateralizeIDs) String() string

type RepCollateralizePrice

type RepCollateralizePrice struct {
	Price int64 `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"` //当前抵押物最新价格
	// contains filtered or unexported fields
}

返回最新抵押物价格

func (*RepCollateralizePrice) Descriptor deprecated

func (*RepCollateralizePrice) Descriptor() ([]byte, []int)

Deprecated: Use RepCollateralizePrice.ProtoReflect.Descriptor instead.

func (*RepCollateralizePrice) GetPrice

func (x *RepCollateralizePrice) GetPrice() int64

func (*RepCollateralizePrice) ProtoMessage

func (*RepCollateralizePrice) ProtoMessage()

func (*RepCollateralizePrice) ProtoReflect added in v1.65.3

func (x *RepCollateralizePrice) ProtoReflect() protoreflect.Message

func (*RepCollateralizePrice) Reset

func (x *RepCollateralizePrice) Reset()

func (*RepCollateralizePrice) String

func (x *RepCollateralizePrice) String() string

type RepCollateralizeRecord

type RepCollateralizeRecord struct {
	Record *BorrowRecord `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	// contains filtered or unexported fields
}

返回借贷记录

func (*RepCollateralizeRecord) Descriptor deprecated

func (*RepCollateralizeRecord) Descriptor() ([]byte, []int)

Deprecated: Use RepCollateralizeRecord.ProtoReflect.Descriptor instead.

func (*RepCollateralizeRecord) GetRecord

func (x *RepCollateralizeRecord) GetRecord() *BorrowRecord

func (*RepCollateralizeRecord) ProtoMessage

func (*RepCollateralizeRecord) ProtoMessage()

func (*RepCollateralizeRecord) ProtoReflect added in v1.65.3

func (x *RepCollateralizeRecord) ProtoReflect() protoreflect.Message

func (*RepCollateralizeRecord) Reset

func (x *RepCollateralizeRecord) Reset()

func (*RepCollateralizeRecord) String

func (x *RepCollateralizeRecord) String() string

type RepCollateralizeRecords

type RepCollateralizeRecords struct {
	Records []*BorrowRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

返回借贷记录

func (*RepCollateralizeRecords) Descriptor deprecated

func (*RepCollateralizeRecords) Descriptor() ([]byte, []int)

Deprecated: Use RepCollateralizeRecords.ProtoReflect.Descriptor instead.

func (*RepCollateralizeRecords) GetRecords

func (x *RepCollateralizeRecords) GetRecords() []*BorrowRecord

func (*RepCollateralizeRecords) ProtoMessage

func (*RepCollateralizeRecords) ProtoMessage()

func (*RepCollateralizeRecords) ProtoReflect added in v1.65.3

func (x *RepCollateralizeRecords) ProtoReflect() protoreflect.Message

func (*RepCollateralizeRecords) Reset

func (x *RepCollateralizeRecords) Reset()

func (*RepCollateralizeRecords) String

func (x *RepCollateralizeRecords) String() string

type RepCollateralizeUserBalance

type RepCollateralizeUserBalance struct {
	Balance int64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"` //返回用户借贷总额
	// contains filtered or unexported fields
}

返回用户借贷总额

func (*RepCollateralizeUserBalance) Descriptor deprecated

func (*RepCollateralizeUserBalance) Descriptor() ([]byte, []int)

Deprecated: Use RepCollateralizeUserBalance.ProtoReflect.Descriptor instead.

func (*RepCollateralizeUserBalance) GetBalance

func (x *RepCollateralizeUserBalance) GetBalance() int64

func (*RepCollateralizeUserBalance) ProtoMessage

func (*RepCollateralizeUserBalance) ProtoMessage()

func (*RepCollateralizeUserBalance) ProtoReflect added in v1.65.3

func (*RepCollateralizeUserBalance) Reset

func (x *RepCollateralizeUserBalance) Reset()

func (*RepCollateralizeUserBalance) String

func (x *RepCollateralizeUserBalance) String() string

type ReqCollateralizeByAddr

type ReqCollateralizeByAddr struct {
	Addr   string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Status int32  `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	CollID string `protobuf:"bytes,3,opt,name=collID,proto3" json:"collID,omitempty"`
	// contains filtered or unexported fields
}

根据用户地址查询

func (*ReqCollateralizeByAddr) Descriptor deprecated

func (*ReqCollateralizeByAddr) Descriptor() ([]byte, []int)

Deprecated: Use ReqCollateralizeByAddr.ProtoReflect.Descriptor instead.

func (*ReqCollateralizeByAddr) GetAddr

func (x *ReqCollateralizeByAddr) GetAddr() string

func (*ReqCollateralizeByAddr) GetCollID

func (x *ReqCollateralizeByAddr) GetCollID() string

func (*ReqCollateralizeByAddr) GetStatus

func (x *ReqCollateralizeByAddr) GetStatus() int32

func (*ReqCollateralizeByAddr) ProtoMessage

func (*ReqCollateralizeByAddr) ProtoMessage()

func (*ReqCollateralizeByAddr) ProtoReflect added in v1.65.3

func (x *ReqCollateralizeByAddr) ProtoReflect() protoreflect.Message

func (*ReqCollateralizeByAddr) Reset

func (x *ReqCollateralizeByAddr) Reset()

func (*ReqCollateralizeByAddr) String

func (x *ReqCollateralizeByAddr) String() string

type ReqCollateralizeByStatus

type ReqCollateralizeByStatus struct {
	Status int32  `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	CollID string `protobuf:"bytes,2,opt,name=collID,proto3" json:"collID,omitempty"`
	// contains filtered or unexported fields
}

根据放贷状态查询

func (*ReqCollateralizeByStatus) Descriptor deprecated

func (*ReqCollateralizeByStatus) Descriptor() ([]byte, []int)

Deprecated: Use ReqCollateralizeByStatus.ProtoReflect.Descriptor instead.

func (*ReqCollateralizeByStatus) GetCollID

func (x *ReqCollateralizeByStatus) GetCollID() string

func (*ReqCollateralizeByStatus) GetStatus

func (x *ReqCollateralizeByStatus) GetStatus() int32

func (*ReqCollateralizeByStatus) ProtoMessage

func (*ReqCollateralizeByStatus) ProtoMessage()

func (*ReqCollateralizeByStatus) ProtoReflect added in v1.65.3

func (x *ReqCollateralizeByStatus) ProtoReflect() protoreflect.Message

func (*ReqCollateralizeByStatus) Reset

func (x *ReqCollateralizeByStatus) Reset()

func (*ReqCollateralizeByStatus) String

func (x *ReqCollateralizeByStatus) String() string

type ReqCollateralizeInfo

type ReqCollateralizeInfo struct {
	CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`
	// contains filtered or unexported fields
}

根据ID查询一期放贷信息

func (*ReqCollateralizeInfo) Descriptor deprecated

func (*ReqCollateralizeInfo) Descriptor() ([]byte, []int)

Deprecated: Use ReqCollateralizeInfo.ProtoReflect.Descriptor instead.

func (*ReqCollateralizeInfo) GetCollateralizeId

func (x *ReqCollateralizeInfo) GetCollateralizeId() string

func (*ReqCollateralizeInfo) ProtoMessage

func (*ReqCollateralizeInfo) ProtoMessage()

func (*ReqCollateralizeInfo) ProtoReflect added in v1.65.3

func (x *ReqCollateralizeInfo) ProtoReflect() protoreflect.Message

func (*ReqCollateralizeInfo) Reset

func (x *ReqCollateralizeInfo) Reset()

func (*ReqCollateralizeInfo) String

func (x *ReqCollateralizeInfo) String() string

type ReqCollateralizeInfos

type ReqCollateralizeInfos struct {
	CollateralizeIds []string `protobuf:"bytes,1,rep,name=collateralizeIds,proto3" json:"collateralizeIds,omitempty"`
	// contains filtered or unexported fields
}

根据ID列表查询多期放贷信息

func (*ReqCollateralizeInfos) Descriptor deprecated

func (*ReqCollateralizeInfos) Descriptor() ([]byte, []int)

Deprecated: Use ReqCollateralizeInfos.ProtoReflect.Descriptor instead.

func (*ReqCollateralizeInfos) GetCollateralizeIds

func (x *ReqCollateralizeInfos) GetCollateralizeIds() []string

func (*ReqCollateralizeInfos) ProtoMessage

func (*ReqCollateralizeInfos) ProtoMessage()

func (*ReqCollateralizeInfos) ProtoReflect added in v1.65.3

func (x *ReqCollateralizeInfos) ProtoReflect() protoreflect.Message

func (*ReqCollateralizeInfos) Reset

func (x *ReqCollateralizeInfos) Reset()

func (*ReqCollateralizeInfos) String

func (x *ReqCollateralizeInfos) String() string

type ReqCollateralizeRecord

type ReqCollateralizeRecord struct {
	CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`
	RecordId        string `protobuf:"bytes,2,opt,name=recordId,proto3" json:"recordId,omitempty"`
	// contains filtered or unexported fields
}

精确查找借贷记录

func (*ReqCollateralizeRecord) Descriptor deprecated

func (*ReqCollateralizeRecord) Descriptor() ([]byte, []int)

Deprecated: Use ReqCollateralizeRecord.ProtoReflect.Descriptor instead.

func (*ReqCollateralizeRecord) GetCollateralizeId

func (x *ReqCollateralizeRecord) GetCollateralizeId() string

func (*ReqCollateralizeRecord) GetRecordId

func (x *ReqCollateralizeRecord) GetRecordId() string

func (*ReqCollateralizeRecord) ProtoMessage

func (*ReqCollateralizeRecord) ProtoMessage()

func (*ReqCollateralizeRecord) ProtoReflect added in v1.65.3

func (x *ReqCollateralizeRecord) ProtoReflect() protoreflect.Message

func (*ReqCollateralizeRecord) Reset

func (x *ReqCollateralizeRecord) Reset()

func (*ReqCollateralizeRecord) String

func (x *ReqCollateralizeRecord) String() string

type ReqCollateralizeRecordByAddr

type ReqCollateralizeRecordByAddr 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"`
	Status          int32  `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	RecordId        string `protobuf:"bytes,4,opt,name=recordId,proto3" json:"recordId,omitempty"`
	// contains filtered or unexported fields
}

根据地址和借贷ID混合查询具体借贷记录

func (*ReqCollateralizeRecordByAddr) Descriptor deprecated

func (*ReqCollateralizeRecordByAddr) Descriptor() ([]byte, []int)

Deprecated: Use ReqCollateralizeRecordByAddr.ProtoReflect.Descriptor instead.

func (*ReqCollateralizeRecordByAddr) GetAddr

func (x *ReqCollateralizeRecordByAddr) GetAddr() string

func (*ReqCollateralizeRecordByAddr) GetCollateralizeId

func (x *ReqCollateralizeRecordByAddr) GetCollateralizeId() string

func (*ReqCollateralizeRecordByAddr) GetRecordId

func (x *ReqCollateralizeRecordByAddr) GetRecordId() string

func (*ReqCollateralizeRecordByAddr) GetStatus

func (x *ReqCollateralizeRecordByAddr) GetStatus() int32

func (*ReqCollateralizeRecordByAddr) ProtoMessage

func (*ReqCollateralizeRecordByAddr) ProtoMessage()

func (*ReqCollateralizeRecordByAddr) ProtoReflect added in v1.65.3

func (*ReqCollateralizeRecordByAddr) Reset

func (x *ReqCollateralizeRecordByAddr) Reset()

func (*ReqCollateralizeRecordByAddr) String

type ReqCollateralizeRecordByStatus

type ReqCollateralizeRecordByStatus struct {
	CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`
	Status          int32  `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	RecordId        string `protobuf:"bytes,3,opt,name=recordId,proto3" json:"recordId,omitempty"`
	// contains filtered or unexported fields
}

根据状态和借贷ID混合查询具体借贷记录

func (*ReqCollateralizeRecordByStatus) Descriptor deprecated

func (*ReqCollateralizeRecordByStatus) Descriptor() ([]byte, []int)

Deprecated: Use ReqCollateralizeRecordByStatus.ProtoReflect.Descriptor instead.

func (*ReqCollateralizeRecordByStatus) GetCollateralizeId

func (x *ReqCollateralizeRecordByStatus) GetCollateralizeId() string

func (*ReqCollateralizeRecordByStatus) GetRecordId

func (x *ReqCollateralizeRecordByStatus) GetRecordId() string

func (*ReqCollateralizeRecordByStatus) GetStatus

func (x *ReqCollateralizeRecordByStatus) GetStatus() int32

func (*ReqCollateralizeRecordByStatus) ProtoMessage

func (*ReqCollateralizeRecordByStatus) ProtoMessage()

func (*ReqCollateralizeRecordByStatus) ProtoReflect added in v1.65.3

func (*ReqCollateralizeRecordByStatus) Reset

func (x *ReqCollateralizeRecordByStatus) Reset()

func (*ReqCollateralizeRecordByStatus) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL