Documentation ¶
Overview ¶
Package user is a generated protocol buffer package.
It is generated from these files:
user.proto
It has these top-level messages:
PushTxRequest PushTxResponse RegisterRequest AccountInfo UserInfo RegisterResponse LoginRequest LoginResponse GetBlockHeaderRequest GetBlockHeaderResponse BlockHeader GetAccountInfoRequest GetAccountInfoResponse AccountInfoData FavoriteRequest FavoriteResponse GetFavoriteRequest GetFavoriteResponse FavoriteArr FavoriteData GetBalanceRequest GetBalanceResponse GetBalanceRow Position QueryMyBuyRequest QueryMyBuyResponse BuyData Buy GetTransferRequest GetTransferResponse TransferListData Transfer
Package user is a generated protocol buffer package.
It is generated from these files:
user.proto
It has these top-level messages:
PushTxRequest PushTxResponse RegisterRequest AccountInfo UserInfo RegisterResponse LoginRequest LoginResponse GetBlockHeaderRequest GetBlockHeaderResponse BlockHeader GetAccountInfoRequest GetAccountInfoResponse AccountInfoData FavoriteRequest FavoriteResponse GetFavoriteRequest GetFavoriteResponse FavoriteArr FavoriteData GetBalanceRequest GetBalanceResponse GetBalanceRow Position QueryMyBuyRequest QueryMyBuyResponse BuyData Buy GetTransferRequest GetTransferResponse TransferListData Transfer
Index ¶
- func RegisterUserHandler(s server.Server, hdlr UserHandler, opts ...server.HandlerOption)
- type AccountInfo
- type AccountInfoData
- func (*AccountInfoData) Descriptor() ([]byte, []int)
- func (m *AccountInfoData) GetAccountName() string
- func (m *AccountInfoData) GetBalance() uint64
- func (m *AccountInfoData) GetPubkey() string
- func (m *AccountInfoData) GetStakedBalance() uint64
- func (*AccountInfoData) ProtoMessage()
- func (m *AccountInfoData) Reset()
- func (m *AccountInfoData) String() string
- type BlockHeader
- func (*BlockHeader) Descriptor() ([]byte, []int)
- func (m *BlockHeader) GetCursorLabel() uint32
- func (m *BlockHeader) GetHeadBlockDelegate() string
- func (m *BlockHeader) GetHeadBlockHash() string
- func (m *BlockHeader) GetHeadBlockNum() uint32
- func (m *BlockHeader) GetHeadBlockTime() uint64
- func (m *BlockHeader) GetLastConsensusBlockNum() uint32
- func (*BlockHeader) ProtoMessage()
- func (m *BlockHeader) Reset()
- func (m *BlockHeader) String() string
- type Buy
- func (*Buy) Descriptor() ([]byte, []int)
- func (m *Buy) GetAssetId() string
- func (m *Buy) GetAssetName() string
- func (m *Buy) GetAssetType() uint64
- func (m *Buy) GetExchangeId() string
- func (m *Buy) GetExpiretime() uint64
- func (m *Buy) GetFeatureTag() string
- func (m *Buy) GetPrice() uint64
- func (m *Buy) GetSampleHash() string
- func (m *Buy) GetStorageHash() string
- func (m *Buy) GetTimestamp() uint64
- func (m *Buy) GetTokenType() string
- func (m *Buy) GetUsername() string
- func (*Buy) ProtoMessage()
- func (m *Buy) Reset()
- func (m *Buy) String() string
- type BuyData
- type FavoriteArr
- type FavoriteData
- func (*FavoriteData) Descriptor() ([]byte, []int)
- func (m *FavoriteData) GetGoodsId() string
- func (m *FavoriteData) GetGoodsName() string
- func (m *FavoriteData) GetPrice() uint64
- func (m *FavoriteData) GetTime() uint64
- func (m *FavoriteData) GetUsername() string
- func (*FavoriteData) ProtoMessage()
- func (m *FavoriteData) Reset()
- func (m *FavoriteData) String() string
- type FavoriteRequest
- func (*FavoriteRequest) Descriptor() ([]byte, []int)
- func (m *FavoriteRequest) GetContract() string
- func (m *FavoriteRequest) GetCursorLabel() uint32
- func (m *FavoriteRequest) GetCursorNum() uint32
- func (m *FavoriteRequest) GetLifetime() uint64
- func (m *FavoriteRequest) GetMethod() string
- func (m *FavoriteRequest) GetParam() string
- func (m *FavoriteRequest) GetSender() string
- func (m *FavoriteRequest) GetSigAlg() uint32
- func (m *FavoriteRequest) GetSignature() string
- func (m *FavoriteRequest) GetVersion() uint32
- func (*FavoriteRequest) ProtoMessage()
- func (m *FavoriteRequest) Reset()
- func (m *FavoriteRequest) String() string
- type FavoriteResponse
- func (*FavoriteResponse) Descriptor() ([]byte, []int)
- func (m *FavoriteResponse) GetCode() uint32
- func (m *FavoriteResponse) GetData() string
- func (m *FavoriteResponse) GetMsg() string
- func (*FavoriteResponse) ProtoMessage()
- func (m *FavoriteResponse) Reset()
- func (m *FavoriteResponse) String() string
- type GetAccountInfoRequest
- type GetAccountInfoResponse
- func (*GetAccountInfoResponse) Descriptor() ([]byte, []int)
- func (m *GetAccountInfoResponse) GetCode() uint32
- func (m *GetAccountInfoResponse) GetData() *AccountInfoData
- func (m *GetAccountInfoResponse) GetMsg() string
- func (*GetAccountInfoResponse) ProtoMessage()
- func (m *GetAccountInfoResponse) Reset()
- func (m *GetAccountInfoResponse) String() string
- type GetBalanceRequest
- func (*GetBalanceRequest) Descriptor() ([]byte, []int)
- func (m *GetBalanceRequest) GetPageNum() uint32
- func (m *GetBalanceRequest) GetPageSize() uint32
- func (m *GetBalanceRequest) GetRandom() string
- func (m *GetBalanceRequest) GetTokenType() string
- func (m *GetBalanceRequest) GetUsername() string
- func (*GetBalanceRequest) ProtoMessage()
- func (m *GetBalanceRequest) Reset()
- func (m *GetBalanceRequest) String() string
- type GetBalanceResponse
- func (*GetBalanceResponse) Descriptor() ([]byte, []int)
- func (m *GetBalanceResponse) GetCode() uint32
- func (m *GetBalanceResponse) GetData() []*GetBalanceRow
- func (m *GetBalanceResponse) GetMsg() string
- func (*GetBalanceResponse) ProtoMessage()
- func (m *GetBalanceResponse) Reset()
- func (m *GetBalanceResponse) String() string
- type GetBalanceRow
- func (*GetBalanceRow) Descriptor() ([]byte, []int)
- func (m *GetBalanceRow) GetCny() float32
- func (m *GetBalanceRow) GetTokenType() string
- func (m *GetBalanceRow) GetUsd() float32
- func (m *GetBalanceRow) GetValue() uint64
- func (*GetBalanceRow) ProtoMessage()
- func (m *GetBalanceRow) Reset()
- func (m *GetBalanceRow) String() string
- type GetBlockHeaderRequest
- type GetBlockHeaderResponse
- func (*GetBlockHeaderResponse) Descriptor() ([]byte, []int)
- func (m *GetBlockHeaderResponse) GetCode() uint32
- func (m *GetBlockHeaderResponse) GetData() *BlockHeader
- func (m *GetBlockHeaderResponse) GetMsg() string
- func (*GetBlockHeaderResponse) ProtoMessage()
- func (m *GetBlockHeaderResponse) Reset()
- func (m *GetBlockHeaderResponse) String() string
- type GetFavoriteRequest
- func (*GetFavoriteRequest) Descriptor() ([]byte, []int)
- func (m *GetFavoriteRequest) GetGoodsType() string
- func (m *GetFavoriteRequest) GetPageNum() uint32
- func (m *GetFavoriteRequest) GetPageSize() uint32
- func (m *GetFavoriteRequest) GetUsername() string
- func (*GetFavoriteRequest) ProtoMessage()
- func (m *GetFavoriteRequest) Reset()
- func (m *GetFavoriteRequest) String() string
- type GetFavoriteResponse
- func (*GetFavoriteResponse) Descriptor() ([]byte, []int)
- func (m *GetFavoriteResponse) GetCode() uint32
- func (m *GetFavoriteResponse) GetData() *FavoriteArr
- func (m *GetFavoriteResponse) GetMsg() string
- func (*GetFavoriteResponse) ProtoMessage()
- func (m *GetFavoriteResponse) Reset()
- func (m *GetFavoriteResponse) String() string
- type GetTransferRequest
- func (*GetTransferRequest) Descriptor() ([]byte, []int)
- func (m *GetTransferRequest) GetPageNum() int32
- func (m *GetTransferRequest) GetPageSize() int32
- func (m *GetTransferRequest) GetRandom() string
- func (m *GetTransferRequest) GetSignature() string
- func (m *GetTransferRequest) GetTokenType() string
- func (m *GetTransferRequest) GetUsername() string
- func (*GetTransferRequest) ProtoMessage()
- func (m *GetTransferRequest) Reset()
- func (m *GetTransferRequest) String() string
- type GetTransferResponse
- func (*GetTransferResponse) Descriptor() ([]byte, []int)
- func (m *GetTransferResponse) GetCode() int32
- func (m *GetTransferResponse) GetData() *TransferListData
- func (m *GetTransferResponse) GetMsg() string
- func (*GetTransferResponse) ProtoMessage()
- func (m *GetTransferResponse) Reset()
- func (m *GetTransferResponse) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)
- func (m *LoginRequest) GetRandom() string
- func (m *LoginRequest) GetSignture() string
- func (m *LoginRequest) GetUsername() string
- func (m *LoginRequest) GetVerifyId() string
- func (m *LoginRequest) GetVerifyValue() string
- func (*LoginRequest) ProtoMessage()
- func (m *LoginRequest) Reset()
- func (m *LoginRequest) String() string
- type LoginResponse
- type Position
- type PushTxRequest
- func (*PushTxRequest) Descriptor() ([]byte, []int)
- func (m *PushTxRequest) GetContract() string
- func (m *PushTxRequest) GetCursorLabel() uint32
- func (m *PushTxRequest) GetCursorNum() uint32
- func (m *PushTxRequest) GetLifetime() uint64
- func (m *PushTxRequest) GetMethod() string
- func (m *PushTxRequest) GetParam() string
- func (m *PushTxRequest) GetSender() string
- func (m *PushTxRequest) GetSigAlg() uint32
- func (m *PushTxRequest) GetSignature() string
- func (m *PushTxRequest) GetVersion() uint32
- func (*PushTxRequest) ProtoMessage()
- func (m *PushTxRequest) Reset()
- func (m *PushTxRequest) String() string
- type PushTxResponse
- type QueryMyBuyRequest
- func (*QueryMyBuyRequest) Descriptor() ([]byte, []int)
- func (m *QueryMyBuyRequest) GetPageNum() int32
- func (m *QueryMyBuyRequest) GetPageSize() int32
- func (m *QueryMyBuyRequest) GetRandom() string
- func (m *QueryMyBuyRequest) GetSignature() string
- func (m *QueryMyBuyRequest) GetUsername() string
- func (*QueryMyBuyRequest) ProtoMessage()
- func (m *QueryMyBuyRequest) Reset()
- func (m *QueryMyBuyRequest) String() string
- type QueryMyBuyResponse
- func (*QueryMyBuyResponse) Descriptor() ([]byte, []int)
- func (m *QueryMyBuyResponse) GetCode() uint32
- func (m *QueryMyBuyResponse) GetData() *BuyData
- func (m *QueryMyBuyResponse) GetMsg() string
- func (*QueryMyBuyResponse) ProtoMessage()
- func (m *QueryMyBuyResponse) Reset()
- func (m *QueryMyBuyResponse) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)
- func (m *RegisterRequest) GetAccount() *AccountInfo
- func (m *RegisterRequest) GetUser() *UserInfo
- func (m *RegisterRequest) GetVerifyId() string
- func (m *RegisterRequest) GetVerifyValue() string
- func (*RegisterRequest) ProtoMessage()
- func (m *RegisterRequest) Reset()
- func (m *RegisterRequest) String() string
- type RegisterResponse
- type Transfer
- func (*Transfer) Descriptor() ([]byte, []int)
- func (m *Transfer) GetBlockNumber() uint32
- func (m *Transfer) GetFrom() string
- func (m *Transfer) GetTimestamp() uint64
- func (m *Transfer) GetTo() string
- func (m *Transfer) GetTokenType() string
- func (m *Transfer) GetTransactionId() string
- func (m *Transfer) GetValue() uint64
- func (*Transfer) ProtoMessage()
- func (m *Transfer) Reset()
- func (m *Transfer) String() string
- type TransferListData
- func (*TransferListData) Descriptor() ([]byte, []int)
- func (m *TransferListData) GetPageNum() int32
- func (m *TransferListData) GetRow() []*Transfer
- func (m *TransferListData) GetRowCount() int32
- func (*TransferListData) ProtoMessage()
- func (m *TransferListData) Reset()
- func (m *TransferListData) String() string
- type User
- func (h *User) Favorite(ctx context.Context, in *FavoriteRequest, out *FavoriteResponse) error
- func (h *User) GetAccountInfo(ctx context.Context, in *GetAccountInfoRequest, out *GetAccountInfoResponse) error
- func (h *User) GetBalance(ctx context.Context, in *GetBalanceRequest, out *GetBalanceResponse) error
- func (h *User) GetBlockHeader(ctx context.Context, in *GetBlockHeaderRequest, out *GetBlockHeaderResponse) error
- func (h *User) GetFavorite(ctx context.Context, in *GetFavoriteRequest, out *GetFavoriteResponse) error
- func (h *User) GetTransfer(ctx context.Context, in *GetTransferRequest, out *GetTransferResponse) error
- func (h *User) Login(ctx context.Context, in *LoginRequest, out *LoginResponse) error
- func (h *User) QueryMyBuy(ctx context.Context, in *QueryMyBuyRequest, out *QueryMyBuyResponse) error
- func (h *User) Register(ctx context.Context, in *RegisterRequest, out *RegisterResponse) error
- func (h *User) Transfer(ctx context.Context, in *PushTxRequest, out *PushTxResponse) error
- type UserClient
- type UserHandler
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)
- func (m *UserInfo) GetContract() string
- func (m *UserInfo) GetCursorLabel() uint32
- func (m *UserInfo) GetCursorNum() uint32
- func (m *UserInfo) GetLifetime() uint64
- func (m *UserInfo) GetMethod() string
- func (m *UserInfo) GetParam() string
- func (m *UserInfo) GetSender() string
- func (m *UserInfo) GetSigAlg() uint32
- func (m *UserInfo) GetSignature() string
- func (m *UserInfo) GetVersion() uint32
- func (*UserInfo) ProtoMessage()
- func (m *UserInfo) Reset()
- func (m *UserInfo) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserHandler ¶
func RegisterUserHandler(s server.Server, hdlr UserHandler, opts ...server.HandlerOption)
Types ¶
type AccountInfo ¶
type AccountInfo struct { Name string `protobuf:"bytes,2,opt,name=name" json:"name"` Pubkey string `protobuf:"bytes,3,opt,name=pubkey" json:"pubkey"` }
func (*AccountInfo) Descriptor ¶
func (*AccountInfo) Descriptor() ([]byte, []int)
func (*AccountInfo) GetName ¶
func (m *AccountInfo) GetName() string
func (*AccountInfo) GetPubkey ¶
func (m *AccountInfo) GetPubkey() string
func (*AccountInfo) ProtoMessage ¶
func (*AccountInfo) ProtoMessage()
func (*AccountInfo) Reset ¶
func (m *AccountInfo) Reset()
func (*AccountInfo) String ¶
func (m *AccountInfo) String() string
type AccountInfoData ¶
type AccountInfoData struct { AccountName string `protobuf:"bytes,1,opt,name=account_name,json=accountName" json:"account_name"` Pubkey string `protobuf:"bytes,2,opt,name=pubkey" json:"pubkey"` Balance uint64 `protobuf:"varint,3,opt,name=balance" json:"balance"` StakedBalance uint64 `protobuf:"varint,4,opt,name=staked_balance,json=stakedBalance" json:"staked_balance"` }
func (*AccountInfoData) Descriptor ¶
func (*AccountInfoData) Descriptor() ([]byte, []int)
func (*AccountInfoData) GetAccountName ¶
func (m *AccountInfoData) GetAccountName() string
func (*AccountInfoData) GetBalance ¶
func (m *AccountInfoData) GetBalance() uint64
func (*AccountInfoData) GetPubkey ¶
func (m *AccountInfoData) GetPubkey() string
func (*AccountInfoData) GetStakedBalance ¶
func (m *AccountInfoData) GetStakedBalance() uint64
func (*AccountInfoData) ProtoMessage ¶
func (*AccountInfoData) ProtoMessage()
func (*AccountInfoData) Reset ¶
func (m *AccountInfoData) Reset()
func (*AccountInfoData) String ¶
func (m *AccountInfoData) String() string
type BlockHeader ¶
type BlockHeader struct { HeadBlockNum uint32 `protobuf:"varint,1,opt,name=head_block_num,json=headBlockNum" json:"head_block_num"` HeadBlockHash string `protobuf:"bytes,2,opt,name=head_block_hash,json=headBlockHash" json:"head_block_hash"` HeadBlockTime uint64 `protobuf:"varint,3,opt,name=head_block_time,json=headBlockTime" json:"head_block_time"` HeadBlockDelegate string `protobuf:"bytes,4,opt,name=head_block_delegate,json=headBlockDelegate" json:"head_block_delegate"` CursorLabel uint32 `protobuf:"varint,5,opt,name=cursor_label,json=cursorLabel" json:"cursor_label"` LastConsensusBlockNum uint32 `protobuf:"varint,6,opt,name=last_consensus_block_num,json=lastConsensusBlockNum" json:"last_consensus_block_num"` }
func (*BlockHeader) Descriptor ¶
func (*BlockHeader) Descriptor() ([]byte, []int)
func (*BlockHeader) GetCursorLabel ¶
func (m *BlockHeader) GetCursorLabel() uint32
func (*BlockHeader) GetHeadBlockDelegate ¶
func (m *BlockHeader) GetHeadBlockDelegate() string
func (*BlockHeader) GetHeadBlockHash ¶
func (m *BlockHeader) GetHeadBlockHash() string
func (*BlockHeader) GetHeadBlockNum ¶
func (m *BlockHeader) GetHeadBlockNum() uint32
func (*BlockHeader) GetHeadBlockTime ¶
func (m *BlockHeader) GetHeadBlockTime() uint64
func (*BlockHeader) GetLastConsensusBlockNum ¶
func (m *BlockHeader) GetLastConsensusBlockNum() uint32
func (*BlockHeader) ProtoMessage ¶
func (*BlockHeader) ProtoMessage()
func (*BlockHeader) Reset ¶
func (m *BlockHeader) Reset()
func (*BlockHeader) String ¶
func (m *BlockHeader) String() string
type Buy ¶
type Buy struct { ExchangeId string `protobuf:"bytes,1,opt,name=exchange_id,json=exchangeId" json:"exchange_id"` Username string `protobuf:"bytes,2,opt,name=username" json:"username"` AssetId string `protobuf:"bytes,3,opt,name=asset_id,json=assetId" json:"asset_id"` AssetName string `protobuf:"bytes,4,opt,name=asset_name,json=assetName" json:"asset_name"` AssetType uint64 `protobuf:"varint,5,opt,name=asset_type,json=assetType" json:"asset_type"` FeatureTag string `protobuf:"bytes,6,opt,name=feature_tag,json=featureTag" json:"feature_tag"` TokenType string `protobuf:"bytes,7,opt,name=token_type,json=tokenType" json:"token_type"` Price uint64 `protobuf:"varint,8,opt,name=price" json:"price"` SampleHash string `protobuf:"bytes,9,opt,name=sample_hash,json=sampleHash" json:"sample_hash"` StorageHash string `protobuf:"bytes,10,opt,name=storage_hash,json=storageHash" json:"storage_hash"` Expiretime uint64 `protobuf:"varint,11,opt,name=expiretime" json:"expiretime"` Timestamp uint64 `protobuf:"varint,12,opt,name=timestamp" json:"timestamp"` }
func (*Buy) Descriptor ¶
func (*Buy) GetAssetId ¶
func (*Buy) GetAssetName ¶
func (*Buy) GetAssetType ¶
func (*Buy) GetExchangeId ¶
func (*Buy) GetExpiretime ¶
func (*Buy) GetFeatureTag ¶
func (*Buy) GetSampleHash ¶
func (*Buy) GetStorageHash ¶
func (*Buy) GetTimestamp ¶
func (*Buy) GetTokenType ¶
func (*Buy) GetUsername ¶
func (*Buy) ProtoMessage ¶
func (*Buy) ProtoMessage()
type BuyData ¶
type BuyData struct { PageNum int32 `protobuf:"varint,2,opt,name=page_num,json=pageNum" json:"page_num"` RowCount int32 `protobuf:"varint,1,opt,name=row_count,json=rowCount" json:"row_count"` Row []*Buy `protobuf:"bytes,3,rep,name=row" json:"row"` }
func (*BuyData) Descriptor ¶
func (*BuyData) GetPageNum ¶
func (*BuyData) GetRowCount ¶
func (*BuyData) ProtoMessage ¶
func (*BuyData) ProtoMessage()
type FavoriteArr ¶
type FavoriteArr struct { PageNum uint64 `protobuf:"varint,1,opt,name=page_num,json=pageNum" json:"page_num"` RowCount uint64 `protobuf:"varint,2,opt,name=row_count,json=rowCount" json:"row_count"` Row []*FavoriteData `protobuf:"bytes,3,rep,name=row" json:"row"` }
func (*FavoriteArr) Descriptor ¶
func (*FavoriteArr) Descriptor() ([]byte, []int)
func (*FavoriteArr) GetPageNum ¶
func (m *FavoriteArr) GetPageNum() uint64
func (*FavoriteArr) GetRow ¶
func (m *FavoriteArr) GetRow() []*FavoriteData
func (*FavoriteArr) GetRowCount ¶
func (m *FavoriteArr) GetRowCount() uint64
func (*FavoriteArr) ProtoMessage ¶
func (*FavoriteArr) ProtoMessage()
func (*FavoriteArr) Reset ¶
func (m *FavoriteArr) Reset()
func (*FavoriteArr) String ¶
func (m *FavoriteArr) String() string
type FavoriteData ¶
type FavoriteData struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username"` GoodsId string `protobuf:"bytes,2,opt,name=goods_id,json=goodsId" json:"goods_id"` GoodsName string `protobuf:"bytes,3,opt,name=goods_name,json=goodsName" json:"goods_name"` Price uint64 `protobuf:"varint,4,opt,name=price" json:"price"` Time uint64 `protobuf:"varint,5,opt,name=time" json:"time"` }
func (*FavoriteData) Descriptor ¶
func (*FavoriteData) Descriptor() ([]byte, []int)
func (*FavoriteData) GetGoodsId ¶
func (m *FavoriteData) GetGoodsId() string
func (*FavoriteData) GetGoodsName ¶
func (m *FavoriteData) GetGoodsName() string
func (*FavoriteData) GetPrice ¶
func (m *FavoriteData) GetPrice() uint64
func (*FavoriteData) GetTime ¶
func (m *FavoriteData) GetTime() uint64
func (*FavoriteData) GetUsername ¶
func (m *FavoriteData) GetUsername() string
func (*FavoriteData) ProtoMessage ¶
func (*FavoriteData) ProtoMessage()
func (*FavoriteData) Reset ¶
func (m *FavoriteData) Reset()
func (*FavoriteData) String ¶
func (m *FavoriteData) String() string
type FavoriteRequest ¶
type FavoriteRequest struct { Version uint32 `protobuf:"varint,1,opt,name=version" json:"version"` CursorNum uint32 `protobuf:"varint,2,opt,name=cursor_num,json=cursorNum" json:"cursor_num"` CursorLabel uint32 `protobuf:"varint,3,opt,name=cursor_label,json=cursorLabel" json:"cursor_label"` Lifetime uint64 `protobuf:"varint,4,opt,name=lifetime" json:"lifetime"` Sender string `protobuf:"bytes,5,opt,name=sender" json:"sender"` Contract string `protobuf:"bytes,6,opt,name=contract" json:"contract"` Method string `protobuf:"bytes,7,opt,name=method" json:"method"` Param string `protobuf:"bytes,8,opt,name=param" json:"param"` SigAlg uint32 `protobuf:"varint,9,opt,name=sig_alg,json=sigAlg" json:"sig_alg"` Signature string `protobuf:"bytes,10,opt,name=signature" json:"signature"` }
func (*FavoriteRequest) Descriptor ¶
func (*FavoriteRequest) Descriptor() ([]byte, []int)
func (*FavoriteRequest) GetContract ¶
func (m *FavoriteRequest) GetContract() string
func (*FavoriteRequest) GetCursorLabel ¶
func (m *FavoriteRequest) GetCursorLabel() uint32
func (*FavoriteRequest) GetCursorNum ¶
func (m *FavoriteRequest) GetCursorNum() uint32
func (*FavoriteRequest) GetLifetime ¶
func (m *FavoriteRequest) GetLifetime() uint64
func (*FavoriteRequest) GetMethod ¶
func (m *FavoriteRequest) GetMethod() string
func (*FavoriteRequest) GetParam ¶
func (m *FavoriteRequest) GetParam() string
func (*FavoriteRequest) GetSender ¶
func (m *FavoriteRequest) GetSender() string
func (*FavoriteRequest) GetSigAlg ¶
func (m *FavoriteRequest) GetSigAlg() uint32
func (*FavoriteRequest) GetSignature ¶
func (m *FavoriteRequest) GetSignature() string
func (*FavoriteRequest) GetVersion ¶
func (m *FavoriteRequest) GetVersion() uint32
func (*FavoriteRequest) ProtoMessage ¶
func (*FavoriteRequest) ProtoMessage()
func (*FavoriteRequest) Reset ¶
func (m *FavoriteRequest) Reset()
func (*FavoriteRequest) String ¶
func (m *FavoriteRequest) String() string
type FavoriteResponse ¶
type FavoriteResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"` Data string `protobuf:"bytes,2,opt,name=data" json:"data"` Msg string `protobuf:"bytes,3,opt,name=msg" json:"msg"` }
func (*FavoriteResponse) Descriptor ¶
func (*FavoriteResponse) Descriptor() ([]byte, []int)
func (*FavoriteResponse) GetCode ¶
func (m *FavoriteResponse) GetCode() uint32
func (*FavoriteResponse) GetData ¶
func (m *FavoriteResponse) GetData() string
func (*FavoriteResponse) GetMsg ¶
func (m *FavoriteResponse) GetMsg() string
func (*FavoriteResponse) ProtoMessage ¶
func (*FavoriteResponse) ProtoMessage()
func (*FavoriteResponse) Reset ¶
func (m *FavoriteResponse) Reset()
func (*FavoriteResponse) String ¶
func (m *FavoriteResponse) String() string
type GetAccountInfoRequest ¶
type GetAccountInfoRequest struct {
AccountName string `protobuf:"bytes,1,opt,name=account_name,json=accountName" json:"account_name"`
}
func (*GetAccountInfoRequest) Descriptor ¶
func (*GetAccountInfoRequest) Descriptor() ([]byte, []int)
func (*GetAccountInfoRequest) GetAccountName ¶
func (m *GetAccountInfoRequest) GetAccountName() string
func (*GetAccountInfoRequest) ProtoMessage ¶
func (*GetAccountInfoRequest) ProtoMessage()
func (*GetAccountInfoRequest) Reset ¶
func (m *GetAccountInfoRequest) Reset()
func (*GetAccountInfoRequest) String ¶
func (m *GetAccountInfoRequest) String() string
type GetAccountInfoResponse ¶
type GetAccountInfoResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"` Data *AccountInfoData `protobuf:"bytes,2,opt,name=data" json:"data"` Msg string `protobuf:"bytes,3,opt,name=msg" json:"msg"` }
func (*GetAccountInfoResponse) Descriptor ¶
func (*GetAccountInfoResponse) Descriptor() ([]byte, []int)
func (*GetAccountInfoResponse) GetCode ¶
func (m *GetAccountInfoResponse) GetCode() uint32
func (*GetAccountInfoResponse) GetData ¶
func (m *GetAccountInfoResponse) GetData() *AccountInfoData
func (*GetAccountInfoResponse) GetMsg ¶
func (m *GetAccountInfoResponse) GetMsg() string
func (*GetAccountInfoResponse) ProtoMessage ¶
func (*GetAccountInfoResponse) ProtoMessage()
func (*GetAccountInfoResponse) Reset ¶
func (m *GetAccountInfoResponse) Reset()
func (*GetAccountInfoResponse) String ¶
func (m *GetAccountInfoResponse) String() string
type GetBalanceRequest ¶
type GetBalanceRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username"` Random string `protobuf:"bytes,2,opt,name=random" json:"random"` TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType" json:"token_type"` PageNum uint32 `protobuf:"varint,4,opt,name=page_num,json=pageNum" json:"page_num"` PageSize uint32 `protobuf:"varint,5,opt,name=page_size,json=pageSize" json:"page_size"` }
func (*GetBalanceRequest) Descriptor ¶
func (*GetBalanceRequest) Descriptor() ([]byte, []int)
func (*GetBalanceRequest) GetPageNum ¶
func (m *GetBalanceRequest) GetPageNum() uint32
func (*GetBalanceRequest) GetPageSize ¶
func (m *GetBalanceRequest) GetPageSize() uint32
func (*GetBalanceRequest) GetRandom ¶
func (m *GetBalanceRequest) GetRandom() string
func (*GetBalanceRequest) GetTokenType ¶
func (m *GetBalanceRequest) GetTokenType() string
func (*GetBalanceRequest) GetUsername ¶
func (m *GetBalanceRequest) GetUsername() string
func (*GetBalanceRequest) ProtoMessage ¶
func (*GetBalanceRequest) ProtoMessage()
func (*GetBalanceRequest) Reset ¶
func (m *GetBalanceRequest) Reset()
func (*GetBalanceRequest) String ¶
func (m *GetBalanceRequest) String() string
type GetBalanceResponse ¶
type GetBalanceResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"` Data []*GetBalanceRow `protobuf:"bytes,2,rep,name=data" json:"data"` Msg string `protobuf:"bytes,3,opt,name=msg" json:"msg"` }
func (*GetBalanceResponse) Descriptor ¶
func (*GetBalanceResponse) Descriptor() ([]byte, []int)
func (*GetBalanceResponse) GetCode ¶
func (m *GetBalanceResponse) GetCode() uint32
func (*GetBalanceResponse) GetData ¶
func (m *GetBalanceResponse) GetData() []*GetBalanceRow
func (*GetBalanceResponse) GetMsg ¶
func (m *GetBalanceResponse) GetMsg() string
func (*GetBalanceResponse) ProtoMessage ¶
func (*GetBalanceResponse) ProtoMessage()
func (*GetBalanceResponse) Reset ¶
func (m *GetBalanceResponse) Reset()
func (*GetBalanceResponse) String ¶
func (m *GetBalanceResponse) String() string
type GetBalanceRow ¶
type GetBalanceRow struct { TokenType string `protobuf:"bytes,1,opt,name=token_type,json=tokenType" json:"token_type"` Value uint64 `protobuf:"varint,2,opt,name=value" json:"value"` Cny float32 `protobuf:"fixed32,3,opt,name=cny" json:"cny"` Usd float32 `protobuf:"fixed32,4,opt,name=usd" json:"usd"` }
func (*GetBalanceRow) Descriptor ¶
func (*GetBalanceRow) Descriptor() ([]byte, []int)
func (*GetBalanceRow) GetCny ¶
func (m *GetBalanceRow) GetCny() float32
func (*GetBalanceRow) GetTokenType ¶
func (m *GetBalanceRow) GetTokenType() string
func (*GetBalanceRow) GetUsd ¶
func (m *GetBalanceRow) GetUsd() float32
func (*GetBalanceRow) GetValue ¶
func (m *GetBalanceRow) GetValue() uint64
func (*GetBalanceRow) ProtoMessage ¶
func (*GetBalanceRow) ProtoMessage()
func (*GetBalanceRow) Reset ¶
func (m *GetBalanceRow) Reset()
func (*GetBalanceRow) String ¶
func (m *GetBalanceRow) String() string
type GetBlockHeaderRequest ¶
type GetBlockHeaderRequest struct { }
func (*GetBlockHeaderRequest) Descriptor ¶
func (*GetBlockHeaderRequest) Descriptor() ([]byte, []int)
func (*GetBlockHeaderRequest) ProtoMessage ¶
func (*GetBlockHeaderRequest) ProtoMessage()
func (*GetBlockHeaderRequest) Reset ¶
func (m *GetBlockHeaderRequest) Reset()
func (*GetBlockHeaderRequest) String ¶
func (m *GetBlockHeaderRequest) String() string
type GetBlockHeaderResponse ¶
type GetBlockHeaderResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"` Data *BlockHeader `protobuf:"bytes,2,opt,name=data" json:"data"` Msg string `protobuf:"bytes,3,opt,name=msg" json:"msg"` }
func (*GetBlockHeaderResponse) Descriptor ¶
func (*GetBlockHeaderResponse) Descriptor() ([]byte, []int)
func (*GetBlockHeaderResponse) GetCode ¶
func (m *GetBlockHeaderResponse) GetCode() uint32
func (*GetBlockHeaderResponse) GetData ¶
func (m *GetBlockHeaderResponse) GetData() *BlockHeader
func (*GetBlockHeaderResponse) GetMsg ¶
func (m *GetBlockHeaderResponse) GetMsg() string
func (*GetBlockHeaderResponse) ProtoMessage ¶
func (*GetBlockHeaderResponse) ProtoMessage()
func (*GetBlockHeaderResponse) Reset ¶
func (m *GetBlockHeaderResponse) Reset()
func (*GetBlockHeaderResponse) String ¶
func (m *GetBlockHeaderResponse) String() string
type GetFavoriteRequest ¶
type GetFavoriteRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username"` GoodsType string `protobuf:"bytes,2,opt,name=goods_type,json=goodsType" json:"goods_type"` PageSize uint32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size"` PageNum uint32 `protobuf:"varint,4,opt,name=page_num,json=pageNum" json:"page_num"` }
func (*GetFavoriteRequest) Descriptor ¶
func (*GetFavoriteRequest) Descriptor() ([]byte, []int)
func (*GetFavoriteRequest) GetGoodsType ¶
func (m *GetFavoriteRequest) GetGoodsType() string
func (*GetFavoriteRequest) GetPageNum ¶
func (m *GetFavoriteRequest) GetPageNum() uint32
func (*GetFavoriteRequest) GetPageSize ¶
func (m *GetFavoriteRequest) GetPageSize() uint32
func (*GetFavoriteRequest) GetUsername ¶
func (m *GetFavoriteRequest) GetUsername() string
func (*GetFavoriteRequest) ProtoMessage ¶
func (*GetFavoriteRequest) ProtoMessage()
func (*GetFavoriteRequest) Reset ¶
func (m *GetFavoriteRequest) Reset()
func (*GetFavoriteRequest) String ¶
func (m *GetFavoriteRequest) String() string
type GetFavoriteResponse ¶
type GetFavoriteResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"` Data *FavoriteArr `protobuf:"bytes,2,opt,name=data" json:"data"` Msg string `protobuf:"bytes,3,opt,name=msg" json:"msg"` }
func (*GetFavoriteResponse) Descriptor ¶
func (*GetFavoriteResponse) Descriptor() ([]byte, []int)
func (*GetFavoriteResponse) GetCode ¶
func (m *GetFavoriteResponse) GetCode() uint32
func (*GetFavoriteResponse) GetData ¶
func (m *GetFavoriteResponse) GetData() *FavoriteArr
func (*GetFavoriteResponse) GetMsg ¶
func (m *GetFavoriteResponse) GetMsg() string
func (*GetFavoriteResponse) ProtoMessage ¶
func (*GetFavoriteResponse) ProtoMessage()
func (*GetFavoriteResponse) Reset ¶
func (m *GetFavoriteResponse) Reset()
func (*GetFavoriteResponse) String ¶
func (m *GetFavoriteResponse) String() string
type GetTransferRequest ¶
type GetTransferRequest struct { PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize" json:"page_size"` PageNum int32 `protobuf:"varint,2,opt,name=page_num,json=pageNum" json:"page_num"` Username string `protobuf:"bytes,3,opt,name=username" json:"username"` Random string `protobuf:"bytes,4,opt,name=random" json:"random"` Signature string `protobuf:"bytes,5,opt,name=signature" json:"signature"` TokenType string `protobuf:"bytes,6,opt,name=token_type,json=tokenType" json:"token_type"` }
func (*GetTransferRequest) Descriptor ¶
func (*GetTransferRequest) Descriptor() ([]byte, []int)
func (*GetTransferRequest) GetPageNum ¶
func (m *GetTransferRequest) GetPageNum() int32
func (*GetTransferRequest) GetPageSize ¶
func (m *GetTransferRequest) GetPageSize() int32
func (*GetTransferRequest) GetRandom ¶
func (m *GetTransferRequest) GetRandom() string
func (*GetTransferRequest) GetSignature ¶
func (m *GetTransferRequest) GetSignature() string
func (*GetTransferRequest) GetTokenType ¶
func (m *GetTransferRequest) GetTokenType() string
func (*GetTransferRequest) GetUsername ¶
func (m *GetTransferRequest) GetUsername() string
func (*GetTransferRequest) ProtoMessage ¶
func (*GetTransferRequest) ProtoMessage()
func (*GetTransferRequest) Reset ¶
func (m *GetTransferRequest) Reset()
func (*GetTransferRequest) String ¶
func (m *GetTransferRequest) String() string
type GetTransferResponse ¶
type GetTransferResponse struct { Code int32 `protobuf:"varint,1,opt,name=code" json:"code"` Data *TransferListData `protobuf:"bytes,2,opt,name=data" json:"data"` Msg string `protobuf:"bytes,3,opt,name=msg" json:"msg"` }
func (*GetTransferResponse) Descriptor ¶
func (*GetTransferResponse) Descriptor() ([]byte, []int)
func (*GetTransferResponse) GetCode ¶
func (m *GetTransferResponse) GetCode() int32
func (*GetTransferResponse) GetData ¶
func (m *GetTransferResponse) GetData() *TransferListData
func (*GetTransferResponse) GetMsg ¶
func (m *GetTransferResponse) GetMsg() string
func (*GetTransferResponse) ProtoMessage ¶
func (*GetTransferResponse) ProtoMessage()
func (*GetTransferResponse) Reset ¶
func (m *GetTransferResponse) Reset()
func (*GetTransferResponse) String ¶
func (m *GetTransferResponse) String() string
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username"` Random string `protobuf:"bytes,2,opt,name=random" json:"random"` VerifyId string `protobuf:"bytes,3,opt,name=verify_id,json=verifyId" json:"verify_id"` VerifyValue string `protobuf:"bytes,4,opt,name=verify_value,json=verifyValue" json:"verify_value"` Signture string `protobuf:"bytes,5,opt,name=signture" json:"signture"` }
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) GetRandom ¶
func (m *LoginRequest) GetRandom() string
func (*LoginRequest) GetSignture ¶
func (m *LoginRequest) GetSignture() string
func (*LoginRequest) GetUsername ¶
func (m *LoginRequest) GetUsername() string
func (*LoginRequest) GetVerifyId ¶
func (m *LoginRequest) GetVerifyId() string
func (*LoginRequest) GetVerifyValue ¶
func (m *LoginRequest) GetVerifyValue() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"` Msg string `protobuf:"bytes,2,opt,name=msg" json:"msg"` }
func (*LoginResponse) Descriptor ¶
func (*LoginResponse) Descriptor() ([]byte, []int)
func (*LoginResponse) GetCode ¶
func (m *LoginResponse) GetCode() uint32
func (*LoginResponse) GetMsg ¶
func (m *LoginResponse) GetMsg() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) Reset ¶
func (m *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (m *LoginResponse) String() string
type Position ¶
type Position struct { Longitude string `protobuf:"bytes,1,opt,name=longitude" json:"longitude"` Latitude string `protobuf:"bytes,2,opt,name=latitude" json:"latitude"` }
func (*Position) Descriptor ¶
func (*Position) GetLatitude ¶
func (*Position) GetLongitude ¶
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
type PushTxRequest ¶
type PushTxRequest struct { Version uint32 `protobuf:"varint,1,opt,name=version" json:"version"` CursorNum uint32 `protobuf:"varint,2,opt,name=cursor_num,json=cursorNum" json:"cursor_num"` CursorLabel uint32 `protobuf:"varint,3,opt,name=cursor_label,json=cursorLabel" json:"cursor_label"` Lifetime uint64 `protobuf:"varint,4,opt,name=lifetime" json:"lifetime"` Sender string `protobuf:"bytes,5,opt,name=sender" json:"sender"` Contract string `protobuf:"bytes,6,opt,name=contract" json:"contract"` Method string `protobuf:"bytes,7,opt,name=method" json:"method"` Param string `protobuf:"bytes,8,opt,name=param" json:"param"` SigAlg uint32 `protobuf:"varint,9,opt,name=sig_alg,json=sigAlg" json:"sig_alg"` Signature string `protobuf:"bytes,10,opt,name=signature" json:"signature"` }
func (*PushTxRequest) Descriptor ¶
func (*PushTxRequest) Descriptor() ([]byte, []int)
func (*PushTxRequest) GetContract ¶
func (m *PushTxRequest) GetContract() string
func (*PushTxRequest) GetCursorLabel ¶
func (m *PushTxRequest) GetCursorLabel() uint32
func (*PushTxRequest) GetCursorNum ¶
func (m *PushTxRequest) GetCursorNum() uint32
func (*PushTxRequest) GetLifetime ¶
func (m *PushTxRequest) GetLifetime() uint64
func (*PushTxRequest) GetMethod ¶
func (m *PushTxRequest) GetMethod() string
func (*PushTxRequest) GetParam ¶
func (m *PushTxRequest) GetParam() string
func (*PushTxRequest) GetSender ¶
func (m *PushTxRequest) GetSender() string
func (*PushTxRequest) GetSigAlg ¶
func (m *PushTxRequest) GetSigAlg() uint32
func (*PushTxRequest) GetSignature ¶
func (m *PushTxRequest) GetSignature() string
func (*PushTxRequest) GetVersion ¶
func (m *PushTxRequest) GetVersion() uint32
func (*PushTxRequest) ProtoMessage ¶
func (*PushTxRequest) ProtoMessage()
func (*PushTxRequest) Reset ¶
func (m *PushTxRequest) Reset()
func (*PushTxRequest) String ¶
func (m *PushTxRequest) String() string
type PushTxResponse ¶
type PushTxResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"` Msg string `protobuf:"bytes,2,opt,name=msg" json:"msg"` }
func (*PushTxResponse) Descriptor ¶
func (*PushTxResponse) Descriptor() ([]byte, []int)
func (*PushTxResponse) GetCode ¶
func (m *PushTxResponse) GetCode() uint32
func (*PushTxResponse) GetMsg ¶
func (m *PushTxResponse) GetMsg() string
func (*PushTxResponse) ProtoMessage ¶
func (*PushTxResponse) ProtoMessage()
func (*PushTxResponse) Reset ¶
func (m *PushTxResponse) Reset()
func (*PushTxResponse) String ¶
func (m *PushTxResponse) String() string
type QueryMyBuyRequest ¶
type QueryMyBuyRequest struct { PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize" json:"page_size"` PageNum int32 `protobuf:"varint,2,opt,name=page_num,json=pageNum" json:"page_num"` Username string `protobuf:"bytes,3,opt,name=username" json:"username"` Random string `protobuf:"bytes,4,opt,name=random" json:"random"` Signature string `protobuf:"bytes,5,opt,name=signature" json:"signature"` }
func (*QueryMyBuyRequest) Descriptor ¶
func (*QueryMyBuyRequest) Descriptor() ([]byte, []int)
func (*QueryMyBuyRequest) GetPageNum ¶
func (m *QueryMyBuyRequest) GetPageNum() int32
func (*QueryMyBuyRequest) GetPageSize ¶
func (m *QueryMyBuyRequest) GetPageSize() int32
func (*QueryMyBuyRequest) GetRandom ¶
func (m *QueryMyBuyRequest) GetRandom() string
func (*QueryMyBuyRequest) GetSignature ¶
func (m *QueryMyBuyRequest) GetSignature() string
func (*QueryMyBuyRequest) GetUsername ¶
func (m *QueryMyBuyRequest) GetUsername() string
func (*QueryMyBuyRequest) ProtoMessage ¶
func (*QueryMyBuyRequest) ProtoMessage()
func (*QueryMyBuyRequest) Reset ¶
func (m *QueryMyBuyRequest) Reset()
func (*QueryMyBuyRequest) String ¶
func (m *QueryMyBuyRequest) String() string
type QueryMyBuyResponse ¶
type QueryMyBuyResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"` Data *BuyData `protobuf:"bytes,2,opt,name=data" json:"data"` Msg string `protobuf:"bytes,3,opt,name=msg" json:"msg"` }
func (*QueryMyBuyResponse) Descriptor ¶
func (*QueryMyBuyResponse) Descriptor() ([]byte, []int)
func (*QueryMyBuyResponse) GetCode ¶
func (m *QueryMyBuyResponse) GetCode() uint32
func (*QueryMyBuyResponse) GetData ¶
func (m *QueryMyBuyResponse) GetData() *BuyData
func (*QueryMyBuyResponse) GetMsg ¶
func (m *QueryMyBuyResponse) GetMsg() string
func (*QueryMyBuyResponse) ProtoMessage ¶
func (*QueryMyBuyResponse) ProtoMessage()
func (*QueryMyBuyResponse) Reset ¶
func (m *QueryMyBuyResponse) Reset()
func (*QueryMyBuyResponse) String ¶
func (m *QueryMyBuyResponse) String() string
type RegisterRequest ¶
type RegisterRequest struct { Account *AccountInfo `protobuf:"bytes,1,opt,name=account" json:"account"` User *UserInfo `protobuf:"bytes,2,opt,name=user" json:"user"` VerifyId string `protobuf:"bytes,3,opt,name=verify_id,json=verifyId" json:"verify_id"` VerifyValue string `protobuf:"bytes,4,opt,name=verify_value,json=verifyValue" json:"verify_value"` }
func (*RegisterRequest) Descriptor ¶
func (*RegisterRequest) Descriptor() ([]byte, []int)
func (*RegisterRequest) GetAccount ¶
func (m *RegisterRequest) GetAccount() *AccountInfo
func (*RegisterRequest) GetUser ¶
func (m *RegisterRequest) GetUser() *UserInfo
func (*RegisterRequest) GetVerifyId ¶
func (m *RegisterRequest) GetVerifyId() string
func (*RegisterRequest) GetVerifyValue ¶
func (m *RegisterRequest) GetVerifyValue() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) Reset ¶
func (m *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (m *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"` Msg string `protobuf:"bytes,2,opt,name=msg" json:"msg"` }
func (*RegisterResponse) Descriptor ¶
func (*RegisterResponse) Descriptor() ([]byte, []int)
func (*RegisterResponse) GetCode ¶
func (m *RegisterResponse) GetCode() uint32
func (*RegisterResponse) GetMsg ¶
func (m *RegisterResponse) GetMsg() string
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) Reset ¶
func (m *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (m *RegisterResponse) String() string
type Transfer ¶
type Transfer struct { TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId" json:"transaction_id"` From string `protobuf:"bytes,2,opt,name=from" json:"from"` To string `protobuf:"bytes,3,opt,name=to" json:"to"` TokenType string `protobuf:"bytes,4,opt,name=token_type,json=tokenType" json:"token_type"` Value uint64 `protobuf:"varint,5,opt,name=Value" json:"Value"` Timestamp uint64 `protobuf:"varint,6,opt,name=timestamp" json:"timestamp"` BlockNumber uint32 `protobuf:"varint,7,opt,name=block_number,json=blockNumber" json:"block_number"` }
func (*Transfer) Descriptor ¶
func (*Transfer) GetBlockNumber ¶
func (*Transfer) GetTimestamp ¶
func (*Transfer) GetTokenType ¶
func (*Transfer) GetTransactionId ¶
func (*Transfer) ProtoMessage ¶
func (*Transfer) ProtoMessage()
type TransferListData ¶
type TransferListData struct { PageNum int32 `protobuf:"varint,2,opt,name=page_num,json=pageNum" json:"page_num"` RowCount int32 `protobuf:"varint,1,opt,name=row_count,json=rowCount" json:"row_count"` Row []*Transfer `protobuf:"bytes,3,rep,name=row" json:"row"` }
func (*TransferListData) Descriptor ¶
func (*TransferListData) Descriptor() ([]byte, []int)
func (*TransferListData) GetPageNum ¶
func (m *TransferListData) GetPageNum() int32
func (*TransferListData) GetRow ¶
func (m *TransferListData) GetRow() []*Transfer
func (*TransferListData) GetRowCount ¶
func (m *TransferListData) GetRowCount() int32
func (*TransferListData) ProtoMessage ¶
func (*TransferListData) ProtoMessage()
func (*TransferListData) Reset ¶
func (m *TransferListData) Reset()
func (*TransferListData) String ¶
func (m *TransferListData) String() string
type User ¶
type User struct {
UserHandler
}
func (*User) Favorite ¶
func (h *User) Favorite(ctx context.Context, in *FavoriteRequest, out *FavoriteResponse) error
func (*User) GetAccountInfo ¶
func (h *User) GetAccountInfo(ctx context.Context, in *GetAccountInfoRequest, out *GetAccountInfoResponse) error
func (*User) GetBalance ¶
func (h *User) GetBalance(ctx context.Context, in *GetBalanceRequest, out *GetBalanceResponse) error
func (*User) GetBlockHeader ¶
func (h *User) GetBlockHeader(ctx context.Context, in *GetBlockHeaderRequest, out *GetBlockHeaderResponse) error
func (*User) GetFavorite ¶
func (h *User) GetFavorite(ctx context.Context, in *GetFavoriteRequest, out *GetFavoriteResponse) error
func (*User) GetTransfer ¶
func (h *User) GetTransfer(ctx context.Context, in *GetTransferRequest, out *GetTransferResponse) error
func (*User) Login ¶
func (h *User) Login(ctx context.Context, in *LoginRequest, out *LoginResponse) error
func (*User) QueryMyBuy ¶
func (h *User) QueryMyBuy(ctx context.Context, in *QueryMyBuyRequest, out *QueryMyBuyResponse) error
func (*User) Register ¶
func (h *User) Register(ctx context.Context, in *RegisterRequest, out *RegisterResponse) error
func (*User) Transfer ¶
func (h *User) Transfer(ctx context.Context, in *PushTxRequest, out *PushTxResponse) error
type UserClient ¶
type UserClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...client.CallOption) (*RegisterResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...client.CallOption) (*LoginResponse, error) GetBlockHeader(ctx context.Context, in *GetBlockHeaderRequest, opts ...client.CallOption) (*GetBlockHeaderResponse, error) GetAccountInfo(ctx context.Context, in *GetAccountInfoRequest, opts ...client.CallOption) (*GetAccountInfoResponse, error) Favorite(ctx context.Context, in *FavoriteRequest, opts ...client.CallOption) (*FavoriteResponse, error) GetFavorite(ctx context.Context, in *GetFavoriteRequest, opts ...client.CallOption) (*GetFavoriteResponse, error) Transfer(ctx context.Context, in *PushTxRequest, opts ...client.CallOption) (*PushTxResponse, error) GetTransfer(ctx context.Context, in *GetTransferRequest, opts ...client.CallOption) (*GetTransferResponse, error) QueryMyBuy(ctx context.Context, in *QueryMyBuyRequest, opts ...client.CallOption) (*QueryMyBuyResponse, error) GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...client.CallOption) (*GetBalanceResponse, error) }
func NewUserClient ¶
func NewUserClient(serviceName string, c client.Client) UserClient
type UserHandler ¶
type UserHandler interface { Register(context.Context, *RegisterRequest, *RegisterResponse) error Login(context.Context, *LoginRequest, *LoginResponse) error GetBlockHeader(context.Context, *GetBlockHeaderRequest, *GetBlockHeaderResponse) error GetAccountInfo(context.Context, *GetAccountInfoRequest, *GetAccountInfoResponse) error Favorite(context.Context, *FavoriteRequest, *FavoriteResponse) error GetFavorite(context.Context, *GetFavoriteRequest, *GetFavoriteResponse) error Transfer(context.Context, *PushTxRequest, *PushTxResponse) error GetTransfer(context.Context, *GetTransferRequest, *GetTransferResponse) error QueryMyBuy(context.Context, *QueryMyBuyRequest, *QueryMyBuyResponse) error GetBalance(context.Context, *GetBalanceRequest, *GetBalanceResponse) error }
type UserInfo ¶
type UserInfo struct { Version uint32 `protobuf:"varint,1,opt,name=version" json:"version"` CursorNum uint32 `protobuf:"varint,2,opt,name=cursor_num,json=cursorNum" json:"cursor_num"` CursorLabel uint32 `protobuf:"varint,3,opt,name=cursor_label,json=cursorLabel" json:"cursor_label"` Lifetime uint64 `protobuf:"varint,4,opt,name=lifetime" json:"lifetime"` Sender string `protobuf:"bytes,5,opt,name=sender" json:"sender"` Contract string `protobuf:"bytes,6,opt,name=contract" json:"contract"` Method string `protobuf:"bytes,7,opt,name=method" json:"method"` Param string `protobuf:"bytes,8,opt,name=param" json:"param"` SigAlg uint32 `protobuf:"varint,9,opt,name=sig_alg,json=sigAlg" json:"sig_alg"` Signature string `protobuf:"bytes,10,opt,name=signature" json:"signature"` }
func (*UserInfo) Descriptor ¶
func (*UserInfo) GetContract ¶
func (*UserInfo) GetCursorLabel ¶
func (*UserInfo) GetCursorNum ¶
func (*UserInfo) GetLifetime ¶
func (*UserInfo) GetSignature ¶
func (*UserInfo) GetVersion ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.