686 lines
21 KiB
Go
686 lines
21 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.34.1
|
|
// source: proto/wallet.proto
|
|
|
|
package walletpb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type ReserveRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
|
|
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
GameId string `protobuf:"bytes,3,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"`
|
|
RoundId string `protobuf:"bytes,4,opt,name=round_id,json=roundId,proto3" json:"round_id,omitempty"`
|
|
Amount int64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` // в минорных единицах, например cents
|
|
Currency string `protobuf:"bytes,6,opt,name=currency,proto3" json:"currency,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ReserveRequest) Reset() {
|
|
*x = ReserveRequest{}
|
|
mi := &file_proto_wallet_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ReserveRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ReserveRequest) ProtoMessage() {}
|
|
|
|
func (x *ReserveRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_wallet_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ReserveRequest.ProtoReflect.Descriptor instead.
|
|
func (*ReserveRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_wallet_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ReserveRequest) GetRequestId() string {
|
|
if x != nil {
|
|
return x.RequestId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ReserveRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ReserveRequest) GetGameId() string {
|
|
if x != nil {
|
|
return x.GameId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ReserveRequest) GetRoundId() string {
|
|
if x != nil {
|
|
return x.RoundId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ReserveRequest) GetAmount() int64 {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ReserveRequest) GetCurrency() string {
|
|
if x != nil {
|
|
return x.Currency
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ReserveResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // reserved / rejected
|
|
AvailableBalance int64 `protobuf:"varint,3,opt,name=available_balance,json=availableBalance,proto3" json:"available_balance,omitempty"`
|
|
ReservedBalance int64 `protobuf:"varint,4,opt,name=reserved_balance,json=reservedBalance,proto3" json:"reserved_balance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ReserveResponse) Reset() {
|
|
*x = ReserveResponse{}
|
|
mi := &file_proto_wallet_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ReserveResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ReserveResponse) ProtoMessage() {}
|
|
|
|
func (x *ReserveResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_wallet_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ReserveResponse.ProtoReflect.Descriptor instead.
|
|
func (*ReserveResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_wallet_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ReserveResponse) GetTransactionId() string {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ReserveResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ReserveResponse) GetAvailableBalance() int64 {
|
|
if x != nil {
|
|
return x.AvailableBalance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ReserveResponse) GetReservedBalance() int64 {
|
|
if x != nil {
|
|
return x.ReservedBalance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ConfirmRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
|
|
TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
RoundId string `protobuf:"bytes,3,opt,name=round_id,json=roundId,proto3" json:"round_id,omitempty"`
|
|
WinAmount int64 `protobuf:"varint,4,opt,name=win_amount,json=winAmount,proto3" json:"win_amount,omitempty"` // 0 если проигрыш
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ConfirmRequest) Reset() {
|
|
*x = ConfirmRequest{}
|
|
mi := &file_proto_wallet_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ConfirmRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConfirmRequest) ProtoMessage() {}
|
|
|
|
func (x *ConfirmRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_wallet_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ConfirmRequest.ProtoReflect.Descriptor instead.
|
|
func (*ConfirmRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_wallet_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ConfirmRequest) GetRequestId() string {
|
|
if x != nil {
|
|
return x.RequestId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConfirmRequest) GetTransactionId() string {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConfirmRequest) GetRoundId() string {
|
|
if x != nil {
|
|
return x.RoundId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConfirmRequest) GetWinAmount() int64 {
|
|
if x != nil {
|
|
return x.WinAmount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ConfirmResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // confirmed / already_confirmed
|
|
AvailableBalance int64 `protobuf:"varint,3,opt,name=available_balance,json=availableBalance,proto3" json:"available_balance,omitempty"`
|
|
ReservedBalance int64 `protobuf:"varint,4,opt,name=reserved_balance,json=reservedBalance,proto3" json:"reserved_balance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ConfirmResponse) Reset() {
|
|
*x = ConfirmResponse{}
|
|
mi := &file_proto_wallet_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ConfirmResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConfirmResponse) ProtoMessage() {}
|
|
|
|
func (x *ConfirmResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_wallet_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ConfirmResponse.ProtoReflect.Descriptor instead.
|
|
func (*ConfirmResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_wallet_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *ConfirmResponse) GetTransactionId() string {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConfirmResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConfirmResponse) GetAvailableBalance() int64 {
|
|
if x != nil {
|
|
return x.AvailableBalance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ConfirmResponse) GetReservedBalance() int64 {
|
|
if x != nil {
|
|
return x.ReservedBalance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CancelRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
|
|
TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CancelRequest) Reset() {
|
|
*x = CancelRequest{}
|
|
mi := &file_proto_wallet_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CancelRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CancelRequest) ProtoMessage() {}
|
|
|
|
func (x *CancelRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_wallet_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CancelRequest.ProtoReflect.Descriptor instead.
|
|
func (*CancelRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_wallet_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *CancelRequest) GetRequestId() string {
|
|
if x != nil {
|
|
return x.RequestId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CancelRequest) GetTransactionId() string {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CancelRequest) GetReason() string {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CancelResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // canceled / already_canceled
|
|
AvailableBalance int64 `protobuf:"varint,3,opt,name=available_balance,json=availableBalance,proto3" json:"available_balance,omitempty"`
|
|
ReservedBalance int64 `protobuf:"varint,4,opt,name=reserved_balance,json=reservedBalance,proto3" json:"reserved_balance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CancelResponse) Reset() {
|
|
*x = CancelResponse{}
|
|
mi := &file_proto_wallet_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CancelResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CancelResponse) ProtoMessage() {}
|
|
|
|
func (x *CancelResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_wallet_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CancelResponse.ProtoReflect.Descriptor instead.
|
|
func (*CancelResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_wallet_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *CancelResponse) GetTransactionId() string {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CancelResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CancelResponse) GetAvailableBalance() int64 {
|
|
if x != nil {
|
|
return x.AvailableBalance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CancelResponse) GetReservedBalance() int64 {
|
|
if x != nil {
|
|
return x.ReservedBalance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTransactionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetTransactionRequest) Reset() {
|
|
*x = GetTransactionRequest{}
|
|
mi := &file_proto_wallet_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetTransactionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetTransactionRequest) ProtoMessage() {}
|
|
|
|
func (x *GetTransactionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_wallet_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetTransactionRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetTransactionRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_wallet_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *GetTransactionRequest) GetTransactionId() string {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetTransactionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
RoundId string `protobuf:"bytes,3,opt,name=round_id,json=roundId,proto3" json:"round_id,omitempty"`
|
|
Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
|
|
WinAmount int64 `protobuf:"varint,5,opt,name=win_amount,json=winAmount,proto3" json:"win_amount,omitempty"`
|
|
Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` // reserved / confirmed / canceled
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetTransactionResponse) Reset() {
|
|
*x = GetTransactionResponse{}
|
|
mi := &file_proto_wallet_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetTransactionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetTransactionResponse) ProtoMessage() {}
|
|
|
|
func (x *GetTransactionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_wallet_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetTransactionResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetTransactionResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_wallet_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *GetTransactionResponse) GetTransactionId() string {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetTransactionResponse) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetTransactionResponse) GetRoundId() string {
|
|
if x != nil {
|
|
return x.RoundId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetTransactionResponse) GetAmount() int64 {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetTransactionResponse) GetWinAmount() int64 {
|
|
if x != nil {
|
|
return x.WinAmount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetTransactionResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_proto_wallet_proto protoreflect.FileDescriptor
|
|
|
|
const file_proto_wallet_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x12proto/wallet.proto\x12\x06wallet\"\xb0\x01\n" +
|
|
"\x0eReserveRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"request_id\x18\x01 \x01(\tR\trequestId\x12\x17\n" +
|
|
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x17\n" +
|
|
"\agame_id\x18\x03 \x01(\tR\x06gameId\x12\x19\n" +
|
|
"\bround_id\x18\x04 \x01(\tR\aroundId\x12\x16\n" +
|
|
"\x06amount\x18\x05 \x01(\x03R\x06amount\x12\x1a\n" +
|
|
"\bcurrency\x18\x06 \x01(\tR\bcurrency\"\xa8\x01\n" +
|
|
"\x0fReserveResponse\x12%\n" +
|
|
"\x0etransaction_id\x18\x01 \x01(\tR\rtransactionId\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\tR\x06status\x12+\n" +
|
|
"\x11available_balance\x18\x03 \x01(\x03R\x10availableBalance\x12)\n" +
|
|
"\x10reserved_balance\x18\x04 \x01(\x03R\x0freservedBalance\"\x90\x01\n" +
|
|
"\x0eConfirmRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"request_id\x18\x01 \x01(\tR\trequestId\x12%\n" +
|
|
"\x0etransaction_id\x18\x02 \x01(\tR\rtransactionId\x12\x19\n" +
|
|
"\bround_id\x18\x03 \x01(\tR\aroundId\x12\x1d\n" +
|
|
"\n" +
|
|
"win_amount\x18\x04 \x01(\x03R\twinAmount\"\xa8\x01\n" +
|
|
"\x0fConfirmResponse\x12%\n" +
|
|
"\x0etransaction_id\x18\x01 \x01(\tR\rtransactionId\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\tR\x06status\x12+\n" +
|
|
"\x11available_balance\x18\x03 \x01(\x03R\x10availableBalance\x12)\n" +
|
|
"\x10reserved_balance\x18\x04 \x01(\x03R\x0freservedBalance\"m\n" +
|
|
"\rCancelRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"request_id\x18\x01 \x01(\tR\trequestId\x12%\n" +
|
|
"\x0etransaction_id\x18\x02 \x01(\tR\rtransactionId\x12\x16\n" +
|
|
"\x06reason\x18\x03 \x01(\tR\x06reason\"\xa7\x01\n" +
|
|
"\x0eCancelResponse\x12%\n" +
|
|
"\x0etransaction_id\x18\x01 \x01(\tR\rtransactionId\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\tR\x06status\x12+\n" +
|
|
"\x11available_balance\x18\x03 \x01(\x03R\x10availableBalance\x12)\n" +
|
|
"\x10reserved_balance\x18\x04 \x01(\x03R\x0freservedBalance\">\n" +
|
|
"\x15GetTransactionRequest\x12%\n" +
|
|
"\x0etransaction_id\x18\x01 \x01(\tR\rtransactionId\"\xc2\x01\n" +
|
|
"\x16GetTransactionResponse\x12%\n" +
|
|
"\x0etransaction_id\x18\x01 \x01(\tR\rtransactionId\x12\x17\n" +
|
|
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x19\n" +
|
|
"\bround_id\x18\x03 \x01(\tR\aroundId\x12\x16\n" +
|
|
"\x06amount\x18\x04 \x01(\x03R\x06amount\x12\x1d\n" +
|
|
"\n" +
|
|
"win_amount\x18\x05 \x01(\x03R\twinAmount\x12\x16\n" +
|
|
"\x06status\x18\x06 \x01(\tR\x06status2\x91\x02\n" +
|
|
"\rWalletService\x12:\n" +
|
|
"\aReserve\x12\x16.wallet.ReserveRequest\x1a\x17.wallet.ReserveResponse\x12:\n" +
|
|
"\aConfirm\x12\x16.wallet.ConfirmRequest\x1a\x17.wallet.ConfirmResponse\x127\n" +
|
|
"\x06Cancel\x12\x15.wallet.CancelRequest\x1a\x16.wallet.CancelResponse\x12O\n" +
|
|
"\x0eGetTransaction\x12\x1d.wallet.GetTransactionRequest\x1a\x1e.wallet.GetTransactionResponseB\x0fZ\rgen/;walletpbb\x06proto3"
|
|
|
|
var (
|
|
file_proto_wallet_proto_rawDescOnce sync.Once
|
|
file_proto_wallet_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_proto_wallet_proto_rawDescGZIP() []byte {
|
|
file_proto_wallet_proto_rawDescOnce.Do(func() {
|
|
file_proto_wallet_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_wallet_proto_rawDesc), len(file_proto_wallet_proto_rawDesc)))
|
|
})
|
|
return file_proto_wallet_proto_rawDescData
|
|
}
|
|
|
|
var file_proto_wallet_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
var file_proto_wallet_proto_goTypes = []any{
|
|
(*ReserveRequest)(nil), // 0: wallet.ReserveRequest
|
|
(*ReserveResponse)(nil), // 1: wallet.ReserveResponse
|
|
(*ConfirmRequest)(nil), // 2: wallet.ConfirmRequest
|
|
(*ConfirmResponse)(nil), // 3: wallet.ConfirmResponse
|
|
(*CancelRequest)(nil), // 4: wallet.CancelRequest
|
|
(*CancelResponse)(nil), // 5: wallet.CancelResponse
|
|
(*GetTransactionRequest)(nil), // 6: wallet.GetTransactionRequest
|
|
(*GetTransactionResponse)(nil), // 7: wallet.GetTransactionResponse
|
|
}
|
|
var file_proto_wallet_proto_depIdxs = []int32{
|
|
0, // 0: wallet.WalletService.Reserve:input_type -> wallet.ReserveRequest
|
|
2, // 1: wallet.WalletService.Confirm:input_type -> wallet.ConfirmRequest
|
|
4, // 2: wallet.WalletService.Cancel:input_type -> wallet.CancelRequest
|
|
6, // 3: wallet.WalletService.GetTransaction:input_type -> wallet.GetTransactionRequest
|
|
1, // 4: wallet.WalletService.Reserve:output_type -> wallet.ReserveResponse
|
|
3, // 5: wallet.WalletService.Confirm:output_type -> wallet.ConfirmResponse
|
|
5, // 6: wallet.WalletService.Cancel:output_type -> wallet.CancelResponse
|
|
7, // 7: wallet.WalletService.GetTransaction:output_type -> wallet.GetTransactionResponse
|
|
4, // [4:8] is the sub-list for method output_type
|
|
0, // [0:4] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proto_wallet_proto_init() }
|
|
func file_proto_wallet_proto_init() {
|
|
if File_proto_wallet_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_wallet_proto_rawDesc), len(file_proto_wallet_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 8,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_proto_wallet_proto_goTypes,
|
|
DependencyIndexes: file_proto_wallet_proto_depIdxs,
|
|
MessageInfos: file_proto_wallet_proto_msgTypes,
|
|
}.Build()
|
|
File_proto_wallet_proto = out.File
|
|
file_proto_wallet_proto_goTypes = nil
|
|
file_proto_wallet_proto_depIdxs = nil
|
|
}
|