v1

package
v0.0.0-...-5b7c39b Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionService_ChargeFee_FullMethodName               = "/wallet.v1.TransactionService/ChargeFee"
	TransactionService_Deposit_FullMethodName                 = "/wallet.v1.TransactionService/Deposit"
	TransactionService_BuyICO_FullMethodName                  = "/wallet.v1.TransactionService/BuyICO"
	TransactionService_Subscription_FullMethodName            = "/wallet.v1.TransactionService/Subscription"
	TransactionService_ReferralReward_FullMethodName          = "/wallet.v1.TransactionService/ReferralReward"
	TransactionService_CalcChargeFee_FullMethodName           = "/wallet.v1.TransactionService/CalcChargeFee"
	TransactionService_MarketingRewardInternal_FullMethodName = "/wallet.v1.TransactionService/MarketingRewardInternal"
)
View Source
const (
	UserWalletService_GetWalletByUserId_FullMethodName      = "/wallet.v1.UserWalletService/GetWalletByUserId"
	UserWalletService_GetWalletHistories_FullMethodName     = "/wallet.v1.UserWalletService/GetWalletHistories"
	UserWalletService_GetCurrentRateBySymbol_FullMethodName = "/wallet.v1.UserWalletService/GetCurrentRateBySymbol"
)
View Source
const OperationTransactionServiceBuyICO = "/wallet.v1.TransactionService/BuyICO"
View Source
const OperationTransactionServiceChargeFee = "/wallet.v1.TransactionService/ChargeFee"
View Source
const OperationTransactionServiceDeposit = "/wallet.v1.TransactionService/Deposit"
View Source
const OperationTransactionServiceReferralReward = "/wallet.v1.TransactionService/ReferralReward"
View Source
const OperationTransactionServiceSubscription = "/wallet.v1.TransactionService/Subscription"
View Source
const OperationUserWalletServiceGetWalletByUserId = "/wallet.v1.UserWalletService/GetWalletByUserId"
View Source
const OperationUserWalletServiceGetWalletHistories = "/wallet.v1.UserWalletService/GetWalletHistories"

Variables

View Source
var (
	SymbolType_name = map[int32]string{
		0: "IND",
		1: "VND",
		2: "USDT",
	}
	SymbolType_value = map[string]int32{
		"IND":  0,
		"VND":  1,
		"USDT": 2,
	}
)

Enum value maps for SymbolType.

View Source
var (
	WalletType_name = map[int32]string{
		0: "USER",
		1: "REWARD",
	}
	WalletType_value = map[string]int32{
		"USER":   0,
		"REWARD": 1,
	}
)

Enum value maps for WalletType.

View Source
var (
	UsdtType_name = map[int32]string{
		0: "USDT_TYPE",
	}
	UsdtType_value = map[string]int32{
		"USDT_TYPE": 0,
	}
)

Enum value maps for UsdtType.

View Source
var File_wallet_v1_model_proto protoreflect.FileDescriptor
View Source
var File_wallet_v1_transaction_service_proto protoreflect.FileDescriptor
View Source
var File_wallet_v1_user_wallet_service_proto protoreflect.FileDescriptor
View Source
var TransactionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wallet.v1.TransactionService",
	HandlerType: (*TransactionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ChargeFee",
			Handler:    _TransactionService_ChargeFee_Handler,
		},
		{
			MethodName: "Deposit",
			Handler:    _TransactionService_Deposit_Handler,
		},
		{
			MethodName: "BuyICO",
			Handler:    _TransactionService_BuyICO_Handler,
		},
		{
			MethodName: "Subscription",
			Handler:    _TransactionService_Subscription_Handler,
		},
		{
			MethodName: "ReferralReward",
			Handler:    _TransactionService_ReferralReward_Handler,
		},
		{
			MethodName: "CalcChargeFee",
			Handler:    _TransactionService_CalcChargeFee_Handler,
		},
		{
			MethodName: "MarketingRewardInternal",
			Handler:    _TransactionService_MarketingRewardInternal_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "wallet/v1/transaction_service.proto",
}

TransactionService_ServiceDesc is the grpc.ServiceDesc for TransactionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UserWalletService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wallet.v1.UserWalletService",
	HandlerType: (*UserWalletServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetWalletByUserId",
			Handler:    _UserWalletService_GetWalletByUserId_Handler,
		},
		{
			MethodName: "GetWalletHistories",
			Handler:    _UserWalletService_GetWalletHistories_Handler,
		},
		{
			MethodName: "GetCurrentRateBySymbol",
			Handler:    _UserWalletService_GetCurrentRateBySymbol_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "wallet/v1/user_wallet_service.proto",
}

UserWalletService_ServiceDesc is the grpc.ServiceDesc for UserWalletService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTransactionServiceHTTPServer

func RegisterTransactionServiceHTTPServer(s *http.Server, srv TransactionServiceHTTPServer)

func RegisterTransactionServiceServer

func RegisterTransactionServiceServer(s grpc.ServiceRegistrar, srv TransactionServiceServer)

func RegisterUserWalletServiceHTTPServer

func RegisterUserWalletServiceHTTPServer(s *http.Server, srv UserWalletServiceHTTPServer)

func RegisterUserWalletServiceServer

func RegisterUserWalletServiceServer(s grpc.ServiceRegistrar, srv UserWalletServiceServer)

Types

type BuyICORequest

type BuyICORequest struct {
	Symbol   SymbolType `protobuf:"varint,1,opt,name=symbol,proto3,enum=wallet.v1.SymbolType" json:"symbol,omitempty"`
	Amount   string     `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	SourceId string     `protobuf:"bytes,3,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
	Coupon   string     `protobuf:"bytes,4,opt,name=coupon,proto3" json:"coupon,omitempty"`
	// contains filtered or unexported fields
}

func (*BuyICORequest) Descriptor deprecated

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

Deprecated: Use BuyICORequest.ProtoReflect.Descriptor instead.

func (*BuyICORequest) GetAmount

func (x *BuyICORequest) GetAmount() string

func (*BuyICORequest) GetCoupon

func (x *BuyICORequest) GetCoupon() string

func (*BuyICORequest) GetSourceId

func (x *BuyICORequest) GetSourceId() string

func (*BuyICORequest) GetSymbol

func (x *BuyICORequest) GetSymbol() SymbolType

func (*BuyICORequest) ProtoMessage

func (*BuyICORequest) ProtoMessage()

func (*BuyICORequest) ProtoReflect

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

func (*BuyICORequest) Reset

func (x *BuyICORequest) Reset()

func (*BuyICORequest) String

func (x *BuyICORequest) String() string

type BuyICOResponse

type BuyICOResponse struct {
	Code   int64                `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg    string               `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	MsgKey string               `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"`
	Data   *BuyICOResponse_Data `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BuyICOResponse) Descriptor deprecated

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

Deprecated: Use BuyICOResponse.ProtoReflect.Descriptor instead.

func (*BuyICOResponse) GetCode

func (x *BuyICOResponse) GetCode() int64

func (*BuyICOResponse) GetData

func (x *BuyICOResponse) GetData() *BuyICOResponse_Data

func (*BuyICOResponse) GetMsg

func (x *BuyICOResponse) GetMsg() string

func (*BuyICOResponse) GetMsgKey

func (x *BuyICOResponse) GetMsgKey() string

func (*BuyICOResponse) ProtoMessage

func (*BuyICOResponse) ProtoMessage()

func (*BuyICOResponse) ProtoReflect

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

func (*BuyICOResponse) Reset

func (x *BuyICOResponse) Reset()

func (*BuyICOResponse) String

func (x *BuyICOResponse) String() string

type BuyICOResponse_Data

type BuyICOResponse_Data struct {
	Amount string     `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Symbol SymbolType `protobuf:"varint,2,opt,name=symbol,proto3,enum=wallet.v1.SymbolType" json:"symbol,omitempty"`
	Rate   string     `protobuf:"bytes,3,opt,name=rate,proto3" json:"rate,omitempty"`
	// contains filtered or unexported fields
}

func (*BuyICOResponse_Data) Descriptor deprecated

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

Deprecated: Use BuyICOResponse_Data.ProtoReflect.Descriptor instead.

func (*BuyICOResponse_Data) GetAmount

func (x *BuyICOResponse_Data) GetAmount() string

func (*BuyICOResponse_Data) GetRate

func (x *BuyICOResponse_Data) GetRate() string

func (*BuyICOResponse_Data) GetSymbol

func (x *BuyICOResponse_Data) GetSymbol() SymbolType

func (*BuyICOResponse_Data) ProtoMessage

func (*BuyICOResponse_Data) ProtoMessage()

func (*BuyICOResponse_Data) ProtoReflect

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

func (*BuyICOResponse_Data) Reset

func (x *BuyICOResponse_Data) Reset()

func (*BuyICOResponse_Data) String

func (x *BuyICOResponse_Data) String() string

type CalcChargeFeeRequest

type CalcChargeFeeRequest struct {
	Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*CalcChargeFeeRequest) Descriptor deprecated

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

Deprecated: Use CalcChargeFeeRequest.ProtoReflect.Descriptor instead.

func (*CalcChargeFeeRequest) GetAmount

func (x *CalcChargeFeeRequest) GetAmount() string

func (*CalcChargeFeeRequest) GetSymbol

func (x *CalcChargeFeeRequest) GetSymbol() string

func (*CalcChargeFeeRequest) ProtoMessage

func (*CalcChargeFeeRequest) ProtoMessage()

func (*CalcChargeFeeRequest) ProtoReflect

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

func (*CalcChargeFeeRequest) Reset

func (x *CalcChargeFeeRequest) Reset()

func (*CalcChargeFeeRequest) String

func (x *CalcChargeFeeRequest) String() string

type CalcChargeFeeResponse

type CalcChargeFeeResponse struct {
	Code     int64  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg      string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	MsgKey   string `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"`
	IsEnough bool   `protobuf:"varint,4,opt,name=is_enough,json=isEnough,proto3" json:"is_enough,omitempty"`
	// contains filtered or unexported fields
}

func (*CalcChargeFeeResponse) Descriptor deprecated

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

Deprecated: Use CalcChargeFeeResponse.ProtoReflect.Descriptor instead.

func (*CalcChargeFeeResponse) GetCode

func (x *CalcChargeFeeResponse) GetCode() int64

func (*CalcChargeFeeResponse) GetIsEnough

func (x *CalcChargeFeeResponse) GetIsEnough() bool

func (*CalcChargeFeeResponse) GetMsg

func (x *CalcChargeFeeResponse) GetMsg() string

func (*CalcChargeFeeResponse) GetMsgKey

func (x *CalcChargeFeeResponse) GetMsgKey() string

func (*CalcChargeFeeResponse) ProtoMessage

func (*CalcChargeFeeResponse) ProtoMessage()

func (*CalcChargeFeeResponse) ProtoReflect

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

func (*CalcChargeFeeResponse) Reset

func (x *CalcChargeFeeResponse) Reset()

func (*CalcChargeFeeResponse) String

func (x *CalcChargeFeeResponse) String() string

type ChargeFeeRequest

type ChargeFeeRequest struct {
	Symbol   SymbolType `protobuf:"varint,1,opt,name=symbol,proto3,enum=wallet.v1.SymbolType" json:"symbol,omitempty"`
	Amount   string     `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	SourceId string     `protobuf:"bytes,3,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
	TypeFee  UsdtType   `protobuf:"varint,4,opt,name=type_fee,json=typeFee,proto3,enum=wallet.v1.UsdtType" json:"type_fee,omitempty"`
	// contains filtered or unexported fields
}

func (*ChargeFeeRequest) Descriptor deprecated

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

Deprecated: Use ChargeFeeRequest.ProtoReflect.Descriptor instead.

func (*ChargeFeeRequest) GetAmount

func (x *ChargeFeeRequest) GetAmount() string

func (*ChargeFeeRequest) GetSourceId

func (x *ChargeFeeRequest) GetSourceId() string

func (*ChargeFeeRequest) GetSymbol

func (x *ChargeFeeRequest) GetSymbol() SymbolType

func (*ChargeFeeRequest) GetTypeFee

func (x *ChargeFeeRequest) GetTypeFee() UsdtType

func (*ChargeFeeRequest) ProtoMessage

func (*ChargeFeeRequest) ProtoMessage()

func (*ChargeFeeRequest) ProtoReflect

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

func (*ChargeFeeRequest) Reset

func (x *ChargeFeeRequest) Reset()

func (*ChargeFeeRequest) String

func (x *ChargeFeeRequest) String() string

type ChargeFeeResponse

type ChargeFeeResponse struct {
	Code   int64  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg    string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	MsgKey string `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"`
	Fee    string `protobuf:"bytes,4,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

func (*ChargeFeeResponse) Descriptor deprecated

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

Deprecated: Use ChargeFeeResponse.ProtoReflect.Descriptor instead.

func (*ChargeFeeResponse) GetCode

func (x *ChargeFeeResponse) GetCode() int64

func (*ChargeFeeResponse) GetFee

func (x *ChargeFeeResponse) GetFee() string

func (*ChargeFeeResponse) GetMsg

func (x *ChargeFeeResponse) GetMsg() string

func (*ChargeFeeResponse) GetMsgKey

func (x *ChargeFeeResponse) GetMsgKey() string

func (*ChargeFeeResponse) ProtoMessage

func (*ChargeFeeResponse) ProtoMessage()

func (*ChargeFeeResponse) ProtoReflect

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

func (*ChargeFeeResponse) Reset

func (x *ChargeFeeResponse) Reset()

func (*ChargeFeeResponse) String

func (x *ChargeFeeResponse) String() string

type CurrentRate

type CurrentRate struct {
	Code   int64             `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg    string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	MsgKey string            `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"`
	Data   *CurrentRate_Data `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CurrentRate) Descriptor deprecated

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

Deprecated: Use CurrentRate.ProtoReflect.Descriptor instead.

func (*CurrentRate) GetCode

func (x *CurrentRate) GetCode() int64

func (*CurrentRate) GetData

func (x *CurrentRate) GetData() *CurrentRate_Data

func (*CurrentRate) GetMsg

func (x *CurrentRate) GetMsg() string

func (*CurrentRate) GetMsgKey

func (x *CurrentRate) GetMsgKey() string

func (*CurrentRate) ProtoMessage

func (*CurrentRate) ProtoMessage()

func (*CurrentRate) ProtoReflect

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

func (*CurrentRate) Reset

func (x *CurrentRate) Reset()

func (*CurrentRate) String

func (x *CurrentRate) String() string

type CurrentRateRequest

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

func (*CurrentRateRequest) Descriptor deprecated

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

Deprecated: Use CurrentRateRequest.ProtoReflect.Descriptor instead.

func (*CurrentRateRequest) GetSymbol

func (x *CurrentRateRequest) GetSymbol() string

func (*CurrentRateRequest) ProtoMessage

func (*CurrentRateRequest) ProtoMessage()

func (*CurrentRateRequest) ProtoReflect

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

func (*CurrentRateRequest) Reset

func (x *CurrentRateRequest) Reset()

func (*CurrentRateRequest) String

func (x *CurrentRateRequest) String() string

type CurrentRate_Data

type CurrentRate_Data struct {
	Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Rate   string `protobuf:"bytes,2,opt,name=rate,proto3" json:"rate,omitempty"`
	// contains filtered or unexported fields
}

func (*CurrentRate_Data) Descriptor deprecated

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

Deprecated: Use CurrentRate_Data.ProtoReflect.Descriptor instead.

func (*CurrentRate_Data) GetRate

func (x *CurrentRate_Data) GetRate() string

func (*CurrentRate_Data) GetSymbol

func (x *CurrentRate_Data) GetSymbol() string

func (*CurrentRate_Data) ProtoMessage

func (*CurrentRate_Data) ProtoMessage()

func (*CurrentRate_Data) ProtoReflect

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

func (*CurrentRate_Data) Reset

func (x *CurrentRate_Data) Reset()

func (*CurrentRate_Data) String

func (x *CurrentRate_Data) String() string

type DepositRequest

type DepositRequest struct {
	Symbol   SymbolType `protobuf:"varint,1,opt,name=symbol,proto3,enum=wallet.v1.SymbolType" json:"symbol,omitempty"`
	Amount   string     `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	SourceId string     `protobuf:"bytes,3,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
	IcoType  string     `protobuf:"bytes,4,opt,name=ico_type,json=icoType,proto3" json:"ico_type,omitempty"`
	// contains filtered or unexported fields
}

func (*DepositRequest) Descriptor deprecated

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

Deprecated: Use DepositRequest.ProtoReflect.Descriptor instead.

func (*DepositRequest) GetAmount

func (x *DepositRequest) GetAmount() string

func (*DepositRequest) GetIcoType

func (x *DepositRequest) GetIcoType() string

func (*DepositRequest) GetSourceId

func (x *DepositRequest) GetSourceId() string

func (*DepositRequest) GetSymbol

func (x *DepositRequest) GetSymbol() SymbolType

func (*DepositRequest) ProtoMessage

func (*DepositRequest) ProtoMessage()

func (*DepositRequest) ProtoReflect

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

func (*DepositRequest) Reset

func (x *DepositRequest) Reset()

func (*DepositRequest) String

func (x *DepositRequest) String() string

type DepositResponse

type DepositResponse struct {
	Code   int64                 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg    string                `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	MsgKey string                `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"`
	Data   *DepositResponse_Data `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DepositResponse) Descriptor deprecated

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

Deprecated: Use DepositResponse.ProtoReflect.Descriptor instead.

func (*DepositResponse) GetCode

func (x *DepositResponse) GetCode() int64

func (*DepositResponse) GetData

func (x *DepositResponse) GetData() *DepositResponse_Data

func (*DepositResponse) GetMsg

func (x *DepositResponse) GetMsg() string

func (*DepositResponse) GetMsgKey

func (x *DepositResponse) GetMsgKey() string

func (*DepositResponse) ProtoMessage

func (*DepositResponse) ProtoMessage()

func (*DepositResponse) ProtoReflect

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

func (*DepositResponse) Reset

func (x *DepositResponse) Reset()

func (*DepositResponse) String

func (x *DepositResponse) String() string

type DepositResponse_Data

type DepositResponse_Data struct {
	Amount string     `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Symbol SymbolType `protobuf:"varint,2,opt,name=symbol,proto3,enum=wallet.v1.SymbolType" json:"symbol,omitempty"`
	Rate   string     `protobuf:"bytes,3,opt,name=rate,proto3" json:"rate,omitempty"`
	// contains filtered or unexported fields
}

func (*DepositResponse_Data) Descriptor deprecated

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

Deprecated: Use DepositResponse_Data.ProtoReflect.Descriptor instead.

func (*DepositResponse_Data) GetAmount

func (x *DepositResponse_Data) GetAmount() string

func (*DepositResponse_Data) GetRate

func (x *DepositResponse_Data) GetRate() string

func (*DepositResponse_Data) GetSymbol

func (x *DepositResponse_Data) GetSymbol() SymbolType

func (*DepositResponse_Data) ProtoMessage

func (*DepositResponse_Data) ProtoMessage()

func (*DepositResponse_Data) ProtoReflect

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

func (*DepositResponse_Data) Reset

func (x *DepositResponse_Data) Reset()

func (*DepositResponse_Data) String

func (x *DepositResponse_Data) String() string

type GetWalletHistoryRequest

type GetWalletHistoryRequest struct {
	Next  string `protobuf:"bytes,1,opt,name=next,proto3" json:"next,omitempty"`
	Limit int32  `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*GetWalletHistoryRequest) Descriptor deprecated

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

Deprecated: Use GetWalletHistoryRequest.ProtoReflect.Descriptor instead.

func (*GetWalletHistoryRequest) GetLimit

func (x *GetWalletHistoryRequest) GetLimit() int32

func (*GetWalletHistoryRequest) GetNext

func (x *GetWalletHistoryRequest) GetNext() string

func (*GetWalletHistoryRequest) ProtoMessage

func (*GetWalletHistoryRequest) ProtoMessage()

func (*GetWalletHistoryRequest) ProtoReflect

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

func (*GetWalletHistoryRequest) Reset

func (x *GetWalletHistoryRequest) Reset()

func (*GetWalletHistoryRequest) String

func (x *GetWalletHistoryRequest) String() string

type GetWalletHistoryResponse

type GetWalletHistoryResponse struct {
	Code   int64                          `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg    string                         `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	MsgKey string                         `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"`
	Data   *GetWalletHistoryResponse_Data `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetWalletHistoryResponse) Descriptor deprecated

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

Deprecated: Use GetWalletHistoryResponse.ProtoReflect.Descriptor instead.

func (*GetWalletHistoryResponse) GetCode

func (x *GetWalletHistoryResponse) GetCode() int64

func (*GetWalletHistoryResponse) GetData

func (*GetWalletHistoryResponse) GetMsg

func (x *GetWalletHistoryResponse) GetMsg() string

func (*GetWalletHistoryResponse) GetMsgKey

func (x *GetWalletHistoryResponse) GetMsgKey() string

func (*GetWalletHistoryResponse) ProtoMessage

func (*GetWalletHistoryResponse) ProtoMessage()

func (*GetWalletHistoryResponse) ProtoReflect

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

func (*GetWalletHistoryResponse) Reset

func (x *GetWalletHistoryResponse) Reset()

func (*GetWalletHistoryResponse) String

func (x *GetWalletHistoryResponse) String() string

type GetWalletHistoryResponse_Data

type GetWalletHistoryResponse_Data struct {
	Histories []*Transaction `protobuf:"bytes,1,rep,name=histories,proto3" json:"histories,omitempty"`
	Next      string         `protobuf:"bytes,2,opt,name=next,proto3" json:"next,omitempty"`
	// contains filtered or unexported fields
}

func (*GetWalletHistoryResponse_Data) Descriptor deprecated

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

Deprecated: Use GetWalletHistoryResponse_Data.ProtoReflect.Descriptor instead.

func (*GetWalletHistoryResponse_Data) GetHistories

func (x *GetWalletHistoryResponse_Data) GetHistories() []*Transaction

func (*GetWalletHistoryResponse_Data) GetNext

func (*GetWalletHistoryResponse_Data) ProtoMessage

func (*GetWalletHistoryResponse_Data) ProtoMessage()

func (*GetWalletHistoryResponse_Data) ProtoReflect

func (*GetWalletHistoryResponse_Data) Reset

func (x *GetWalletHistoryResponse_Data) Reset()

func (*GetWalletHistoryResponse_Data) String

type MarketingRewardRequest

type MarketingRewardRequest struct {
	Symbol   SymbolType `protobuf:"varint,1,opt,name=symbol,proto3,enum=wallet.v1.SymbolType" json:"symbol,omitempty"`
	Amount   string     `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	SourceId string     `protobuf:"bytes,3,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MarketingRewardRequest) Descriptor deprecated

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

Deprecated: Use MarketingRewardRequest.ProtoReflect.Descriptor instead.

func (*MarketingRewardRequest) GetAmount

func (x *MarketingRewardRequest) GetAmount() string

func (*MarketingRewardRequest) GetSourceId

func (x *MarketingRewardRequest) GetSourceId() string

func (*MarketingRewardRequest) GetSymbol

func (x *MarketingRewardRequest) GetSymbol() SymbolType

func (*MarketingRewardRequest) ProtoMessage

func (*MarketingRewardRequest) ProtoMessage()

func (*MarketingRewardRequest) ProtoReflect

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

func (*MarketingRewardRequest) Reset

func (x *MarketingRewardRequest) Reset()

func (*MarketingRewardRequest) String

func (x *MarketingRewardRequest) String() string

type MarketingRewardResponse

type MarketingRewardResponse struct {
	Code   int64                         `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg    string                        `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	MsgKey string                        `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"`
	Data   *MarketingRewardResponse_Data `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*MarketingRewardResponse) Descriptor deprecated

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

Deprecated: Use MarketingRewardResponse.ProtoReflect.Descriptor instead.

func (*MarketingRewardResponse) GetCode

func (x *MarketingRewardResponse) GetCode() int64

func (*MarketingRewardResponse) GetData

func (*MarketingRewardResponse) GetMsg

func (x *MarketingRewardResponse) GetMsg() string

func (*MarketingRewardResponse) GetMsgKey

func (x *MarketingRewardResponse) GetMsgKey() string

func (*MarketingRewardResponse) ProtoMessage

func (*MarketingRewardResponse) ProtoMessage()

func (*MarketingRewardResponse) ProtoReflect

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

func (*MarketingRewardResponse) Reset

func (x *MarketingRewardResponse) Reset()

func (*MarketingRewardResponse) String

func (x *MarketingRewardResponse) String() string

type MarketingRewardResponse_Data

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

func (*MarketingRewardResponse_Data) Descriptor deprecated

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

Deprecated: Use MarketingRewardResponse_Data.ProtoReflect.Descriptor instead.

func (*MarketingRewardResponse_Data) GetId

func (*MarketingRewardResponse_Data) ProtoMessage

func (*MarketingRewardResponse_Data) ProtoMessage()

func (*MarketingRewardResponse_Data) ProtoReflect

func (*MarketingRewardResponse_Data) Reset

func (x *MarketingRewardResponse_Data) Reset()

func (*MarketingRewardResponse_Data) String

type ReferralRewardRequest

type ReferralRewardRequest struct {
	Symbol   SymbolType `protobuf:"varint,1,opt,name=symbol,proto3,enum=wallet.v1.SymbolType" json:"symbol,omitempty"`
	Amount   string     `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	SourceId string     `protobuf:"bytes,3,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ReferralRewardRequest) Descriptor deprecated

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

Deprecated: Use ReferralRewardRequest.ProtoReflect.Descriptor instead.

func (*ReferralRewardRequest) GetAmount

func (x *ReferralRewardRequest) GetAmount() string

func (*ReferralRewardRequest) GetSourceId

func (x *ReferralRewardRequest) GetSourceId() string

func (*ReferralRewardRequest) GetSymbol

func (x *ReferralRewardRequest) GetSymbol() SymbolType

func (*ReferralRewardRequest) ProtoMessage

func (*ReferralRewardRequest) ProtoMessage()

func (*ReferralRewardRequest) ProtoReflect

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

func (*ReferralRewardRequest) Reset

func (x *ReferralRewardRequest) Reset()

func (*ReferralRewardRequest) String

func (x *ReferralRewardRequest) String() string

type ReferralRewardResponse

type ReferralRewardResponse struct {
	Code   int64  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg    string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	MsgKey string `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"`
	// contains filtered or unexported fields
}

func (*ReferralRewardResponse) Descriptor deprecated

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

Deprecated: Use ReferralRewardResponse.ProtoReflect.Descriptor instead.

func (*ReferralRewardResponse) GetCode

func (x *ReferralRewardResponse) GetCode() int64

func (*ReferralRewardResponse) GetMsg

func (x *ReferralRewardResponse) GetMsg() string

func (*ReferralRewardResponse) GetMsgKey

func (x *ReferralRewardResponse) GetMsgKey() string

func (*ReferralRewardResponse) ProtoMessage

func (*ReferralRewardResponse) ProtoMessage()

func (*ReferralRewardResponse) ProtoReflect

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

func (*ReferralRewardResponse) Reset

func (x *ReferralRewardResponse) Reset()

func (*ReferralRewardResponse) String

func (x *ReferralRewardResponse) String() string

type SubsciptionRequest

type SubsciptionRequest struct {
	Symbol   SymbolType `protobuf:"varint,1,opt,name=symbol,proto3,enum=wallet.v1.SymbolType" json:"symbol,omitempty"`
	Amount   string     `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	SourceId string     `protobuf:"bytes,3,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SubsciptionRequest) Descriptor deprecated

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

Deprecated: Use SubsciptionRequest.ProtoReflect.Descriptor instead.

func (*SubsciptionRequest) GetAmount

func (x *SubsciptionRequest) GetAmount() string

func (*SubsciptionRequest) GetSourceId

func (x *SubsciptionRequest) GetSourceId() string

func (*SubsciptionRequest) GetSymbol

func (x *SubsciptionRequest) GetSymbol() SymbolType

func (*SubsciptionRequest) ProtoMessage

func (*SubsciptionRequest) ProtoMessage()

func (*SubsciptionRequest) ProtoReflect

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

func (*SubsciptionRequest) Reset

func (x *SubsciptionRequest) Reset()

func (*SubsciptionRequest) String

func (x *SubsciptionRequest) String() string

type SubsciptionResponse

type SubsciptionResponse struct {
	Code   int64  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg    string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	MsgKey string `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"`
	// contains filtered or unexported fields
}

func (*SubsciptionResponse) Descriptor deprecated

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

Deprecated: Use SubsciptionResponse.ProtoReflect.Descriptor instead.

func (*SubsciptionResponse) GetCode

func (x *SubsciptionResponse) GetCode() int64

func (*SubsciptionResponse) GetMsg

func (x *SubsciptionResponse) GetMsg() string

func (*SubsciptionResponse) GetMsgKey

func (x *SubsciptionResponse) GetMsgKey() string

func (*SubsciptionResponse) ProtoMessage

func (*SubsciptionResponse) ProtoMessage()

func (*SubsciptionResponse) ProtoReflect

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

func (*SubsciptionResponse) Reset

func (x *SubsciptionResponse) Reset()

func (*SubsciptionResponse) String

func (x *SubsciptionResponse) String() string

type SymbolType

type SymbolType int32
const (
	SymbolType_IND  SymbolType = 0
	SymbolType_VND  SymbolType = 1
	SymbolType_USDT SymbolType = 2
)

func (SymbolType) Descriptor

func (SymbolType) Descriptor() protoreflect.EnumDescriptor

func (SymbolType) Enum

func (x SymbolType) Enum() *SymbolType

func (SymbolType) EnumDescriptor deprecated

func (SymbolType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SymbolType.Descriptor instead.

func (SymbolType) Number

func (x SymbolType) Number() protoreflect.EnumNumber

func (SymbolType) String

func (x SymbolType) String() string

func (SymbolType) Type

type Transaction

type Transaction struct {
	Id         string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId     string     `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Type       string     `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Symbol     SymbolType `protobuf:"varint,4,opt,name=symbol,proto3,enum=wallet.v1.SymbolType" json:"symbol,omitempty"`
	Amount     string     `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"`
	CreatedAt  int32      `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Status     string     `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
	TransInOut string     `protobuf:"bytes,8,opt,name=trans_in_out,json=transInOut,proto3" json:"trans_in_out,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetAmount

func (x *Transaction) GetAmount() string

func (*Transaction) GetCreatedAt

func (x *Transaction) GetCreatedAt() int32

func (*Transaction) GetId

func (x *Transaction) GetId() string

func (*Transaction) GetStatus

func (x *Transaction) GetStatus() string

func (*Transaction) GetSymbol

func (x *Transaction) GetSymbol() SymbolType

func (*Transaction) GetTransInOut

func (x *Transaction) GetTransInOut() string

func (*Transaction) GetType

func (x *Transaction) GetType() string

func (*Transaction) GetUserId

func (x *Transaction) GetUserId() string

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

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

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type TransactionServiceClient

type TransactionServiceClient interface {
	ChargeFee(ctx context.Context, in *ChargeFeeRequest, opts ...grpc.CallOption) (*ChargeFeeResponse, error)
	Deposit(ctx context.Context, in *DepositRequest, opts ...grpc.CallOption) (*DepositResponse, error)
	BuyICO(ctx context.Context, in *BuyICORequest, opts ...grpc.CallOption) (*BuyICOResponse, error)
	Subscription(ctx context.Context, in *SubsciptionRequest, opts ...grpc.CallOption) (*SubsciptionResponse, error)
	ReferralReward(ctx context.Context, in *ReferralRewardRequest, opts ...grpc.CallOption) (*ReferralRewardResponse, error)
	CalcChargeFee(ctx context.Context, in *CalcChargeFeeRequest, opts ...grpc.CallOption) (*CalcChargeFeeResponse, error)
	MarketingRewardInternal(ctx context.Context, in *MarketingRewardRequest, opts ...grpc.CallOption) (*MarketingRewardResponse, error)
}

TransactionServiceClient is the client API for TransactionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type TransactionServiceHTTPClient

type TransactionServiceHTTPClient interface {
	BuyICO(ctx context.Context, req *BuyICORequest, opts ...http.CallOption) (rsp *BuyICOResponse, err error)
	ChargeFee(ctx context.Context, req *ChargeFeeRequest, opts ...http.CallOption) (rsp *ChargeFeeResponse, err error)
	Deposit(ctx context.Context, req *DepositRequest, opts ...http.CallOption) (rsp *DepositResponse, err error)
	ReferralReward(ctx context.Context, req *ReferralRewardRequest, opts ...http.CallOption) (rsp *ReferralRewardResponse, err error)
	Subscription(ctx context.Context, req *SubsciptionRequest, opts ...http.CallOption) (rsp *SubsciptionResponse, err error)
}

func NewTransactionServiceHTTPClient

func NewTransactionServiceHTTPClient(client *http.Client) TransactionServiceHTTPClient

type TransactionServiceHTTPClientImpl

type TransactionServiceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*TransactionServiceHTTPClientImpl) BuyICO

func (*TransactionServiceHTTPClientImpl) ChargeFee

func (*TransactionServiceHTTPClientImpl) Deposit

func (*TransactionServiceHTTPClientImpl) ReferralReward

func (*TransactionServiceHTTPClientImpl) Subscription

type TransactionServiceServer

type TransactionServiceServer interface {
	ChargeFee(context.Context, *ChargeFeeRequest) (*ChargeFeeResponse, error)
	Deposit(context.Context, *DepositRequest) (*DepositResponse, error)
	BuyICO(context.Context, *BuyICORequest) (*BuyICOResponse, error)
	Subscription(context.Context, *SubsciptionRequest) (*SubsciptionResponse, error)
	ReferralReward(context.Context, *ReferralRewardRequest) (*ReferralRewardResponse, error)
	CalcChargeFee(context.Context, *CalcChargeFeeRequest) (*CalcChargeFeeResponse, error)
	MarketingRewardInternal(context.Context, *MarketingRewardRequest) (*MarketingRewardResponse, error)
	// contains filtered or unexported methods
}

TransactionServiceServer is the server API for TransactionService service. All implementations must embed UnimplementedTransactionServiceServer for forward compatibility

type UnimplementedTransactionServiceServer

type UnimplementedTransactionServiceServer struct {
}

UnimplementedTransactionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTransactionServiceServer) BuyICO

func (UnimplementedTransactionServiceServer) CalcChargeFee

func (UnimplementedTransactionServiceServer) ChargeFee

func (UnimplementedTransactionServiceServer) Deposit

func (UnimplementedTransactionServiceServer) MarketingRewardInternal

func (UnimplementedTransactionServiceServer) ReferralReward

func (UnimplementedTransactionServiceServer) Subscription

type UnimplementedUserWalletServiceServer

type UnimplementedUserWalletServiceServer struct {
}

UnimplementedUserWalletServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserWalletServiceServer) GetCurrentRateBySymbol

func (UnimplementedUserWalletServiceServer) GetWalletByUserId

func (UnimplementedUserWalletServiceServer) GetWalletHistories

type UnsafeTransactionServiceServer

type UnsafeTransactionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTransactionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransactionServiceServer will result in compilation errors.

type UnsafeUserWalletServiceServer

type UnsafeUserWalletServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserWalletServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserWalletServiceServer will result in compilation errors.

type UsdtType

type UsdtType int32
const (
	UsdtType_USDT_TYPE UsdtType = 0
)

func (UsdtType) Descriptor

func (UsdtType) Descriptor() protoreflect.EnumDescriptor

func (UsdtType) Enum

func (x UsdtType) Enum() *UsdtType

func (UsdtType) EnumDescriptor deprecated

func (UsdtType) EnumDescriptor() ([]byte, []int)

Deprecated: Use UsdtType.Descriptor instead.

func (UsdtType) Number

func (x UsdtType) Number() protoreflect.EnumNumber

func (UsdtType) String

func (x UsdtType) String() string

func (UsdtType) Type

type UserWallet

type UserWallet struct {
	Symbol     SymbolType `protobuf:"varint,1,opt,name=symbol,proto3,enum=wallet.v1.SymbolType" json:"symbol,omitempty"`
	Balance    string     `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
	WalletType WalletType `protobuf:"varint,3,opt,name=wallet_type,json=walletType,proto3,enum=wallet.v1.WalletType" json:"wallet_type,omitempty"`
	// contains filtered or unexported fields
}

func (*UserWallet) Descriptor deprecated

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

Deprecated: Use UserWallet.ProtoReflect.Descriptor instead.

func (*UserWallet) GetBalance

func (x *UserWallet) GetBalance() string

func (*UserWallet) GetSymbol

func (x *UserWallet) GetSymbol() SymbolType

func (*UserWallet) GetWalletType

func (x *UserWallet) GetWalletType() WalletType

func (*UserWallet) ProtoMessage

func (*UserWallet) ProtoMessage()

func (*UserWallet) ProtoReflect

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

func (*UserWallet) Reset

func (x *UserWallet) Reset()

func (*UserWallet) String

func (x *UserWallet) String() string

type UserWalletResponse

type UserWalletResponse struct {
	Code   int64         `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg    string        `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	MsgKey string        `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"`
	Data   []*UserWallet `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UserWalletResponse) Descriptor deprecated

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

Deprecated: Use UserWalletResponse.ProtoReflect.Descriptor instead.

func (*UserWalletResponse) GetCode

func (x *UserWalletResponse) GetCode() int64

func (*UserWalletResponse) GetData

func (x *UserWalletResponse) GetData() []*UserWallet

func (*UserWalletResponse) GetMsg

func (x *UserWalletResponse) GetMsg() string

func (*UserWalletResponse) GetMsgKey

func (x *UserWalletResponse) GetMsgKey() string

func (*UserWalletResponse) ProtoMessage

func (*UserWalletResponse) ProtoMessage()

func (*UserWalletResponse) ProtoReflect

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

func (*UserWalletResponse) Reset

func (x *UserWalletResponse) Reset()

func (*UserWalletResponse) String

func (x *UserWalletResponse) String() string

type UserWalletServiceClient

type UserWalletServiceClient interface {
	GetWalletByUserId(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserWalletResponse, error)
	GetWalletHistories(ctx context.Context, in *GetWalletHistoryRequest, opts ...grpc.CallOption) (*GetWalletHistoryResponse, error)
	GetCurrentRateBySymbol(ctx context.Context, in *CurrentRateRequest, opts ...grpc.CallOption) (*CurrentRate, error)
}

UserWalletServiceClient is the client API for UserWalletService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UserWalletServiceHTTPClient

type UserWalletServiceHTTPClient interface {
	GetWalletByUserId(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserWalletResponse, err error)
	GetWalletHistories(ctx context.Context, req *GetWalletHistoryRequest, opts ...http.CallOption) (rsp *GetWalletHistoryResponse, err error)
}

func NewUserWalletServiceHTTPClient

func NewUserWalletServiceHTTPClient(client *http.Client) UserWalletServiceHTTPClient

type UserWalletServiceHTTPClientImpl

type UserWalletServiceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*UserWalletServiceHTTPClientImpl) GetWalletByUserId

func (*UserWalletServiceHTTPClientImpl) GetWalletHistories

type UserWalletServiceHTTPServer

type UserWalletServiceHTTPServer interface {
	GetWalletByUserId(context.Context, *emptypb.Empty) (*UserWalletResponse, error)
	GetWalletHistories(context.Context, *GetWalletHistoryRequest) (*GetWalletHistoryResponse, error)
}

type UserWalletServiceServer

type UserWalletServiceServer interface {
	GetWalletByUserId(context.Context, *emptypb.Empty) (*UserWalletResponse, error)
	GetWalletHistories(context.Context, *GetWalletHistoryRequest) (*GetWalletHistoryResponse, error)
	GetCurrentRateBySymbol(context.Context, *CurrentRateRequest) (*CurrentRate, error)
	// contains filtered or unexported methods
}

UserWalletServiceServer is the server API for UserWalletService service. All implementations must embed UnimplementedUserWalletServiceServer for forward compatibility

type WalletType

type WalletType int32
const (
	WalletType_USER   WalletType = 0
	WalletType_REWARD WalletType = 1
)

func (WalletType) Descriptor

func (WalletType) Descriptor() protoreflect.EnumDescriptor

func (WalletType) Enum

func (x WalletType) Enum() *WalletType

func (WalletType) EnumDescriptor deprecated

func (WalletType) EnumDescriptor() ([]byte, []int)

Deprecated: Use WalletType.Descriptor instead.

func (WalletType) Number

func (x WalletType) Number() protoreflect.EnumNumber

func (WalletType) String

func (x WalletType) String() string

func (WalletType) Type

Jump to

Keyboard shortcuts

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