purchase

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CardAction_name = map[int32]string{
		0: "NOAction",
		1: "DailyReceived",
		2: "Buy",
		3: "Renew",
	}
	CardAction_value = map[string]int32{
		"NOAction":      0,
		"DailyReceived": 1,
		"Buy":           2,
		"Renew":         3,
	}
)

Enum value maps for CardAction.

View Source
var File_purchase_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CSCardAction added in v1.2.6

type CSCardAction struct {
	CardId uint32     `protobuf:"varint,1,opt,name=CardId,proto3" json:"CardId,omitempty"`
	Action CardAction `protobuf:"varint,2,opt,name=action,proto3,enum=purchase.CardAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*CSCardAction) Descriptor deprecated added in v1.2.6

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

Deprecated: Use CSCardAction.ProtoReflect.Descriptor instead.

func (*CSCardAction) GetAction added in v1.2.6

func (x *CSCardAction) GetAction() CardAction

func (*CSCardAction) GetCardId added in v1.2.6

func (x *CSCardAction) GetCardId() uint32

func (*CSCardAction) ProtoMessage added in v1.2.6

func (*CSCardAction) ProtoMessage()

func (*CSCardAction) ProtoReflect added in v1.2.6

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

func (*CSCardAction) Reset added in v1.2.6

func (x *CSCardAction) Reset()

func (*CSCardAction) String added in v1.2.6

func (x *CSCardAction) String() string

func (*CSCardAction) Validate added in v1.2.6

func (m *CSCardAction) Validate() error

Validate checks the field values on CSCardAction with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CSCardActionValidationError added in v1.2.6

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

CSCardActionValidationError is the validation error returned by CSCardAction.Validate if the designated constraints aren't met.

func (CSCardActionValidationError) Cause added in v1.2.6

Cause function returns cause value.

func (CSCardActionValidationError) Error added in v1.2.6

Error satisfies the builtin error interface

func (CSCardActionValidationError) ErrorName added in v1.2.6

func (e CSCardActionValidationError) ErrorName() string

ErrorName returns error name.

func (CSCardActionValidationError) Field added in v1.2.6

Field function returns field value.

func (CSCardActionValidationError) Key added in v1.2.6

Key function returns key value.

func (CSCardActionValidationError) Reason added in v1.2.6

Reason function returns reason value.

type CardAction

type CardAction int32
const (
	CardAction_NOAction      CardAction = 0
	CardAction_DailyReceived CardAction = 1
	CardAction_Buy           CardAction = 2
	CardAction_Renew         CardAction = 3
)

func (CardAction) Descriptor

func (CardAction) Descriptor() protoreflect.EnumDescriptor

func (CardAction) Enum

func (x CardAction) Enum() *CardAction

func (CardAction) EnumDescriptor deprecated

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

Deprecated: Use CardAction.Descriptor instead.

func (CardAction) Number

func (x CardAction) Number() protoreflect.EnumNumber

func (CardAction) String

func (x CardAction) String() string

func (CardAction) Type

type CardInfo added in v1.2.6

type CardInfo struct {
	ExpireTime       int64 `protobuf:"varint,1,opt,name=ExpireTime,proto3" json:"ExpireTime,omitempty"`
	CanReceivedTimes int32 `protobuf:"varint,2,opt,name=CanReceivedTimes,proto3" json:"CanReceivedTimes,omitempty"`
	// contains filtered or unexported fields
}

func (*CardInfo) Descriptor deprecated added in v1.2.6

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

Deprecated: Use CardInfo.ProtoReflect.Descriptor instead.

func (*CardInfo) GetCanReceivedTimes added in v1.2.6

func (x *CardInfo) GetCanReceivedTimes() int32

func (*CardInfo) GetExpireTime added in v1.2.6

func (x *CardInfo) GetExpireTime() int64

func (*CardInfo) ProtoMessage added in v1.2.6

func (*CardInfo) ProtoMessage()

func (*CardInfo) ProtoReflect added in v1.2.6

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

func (*CardInfo) Reset added in v1.2.6

func (x *CardInfo) Reset()

func (*CardInfo) String added in v1.2.6

func (x *CardInfo) String() string

func (*CardInfo) Validate added in v1.2.6

func (m *CardInfo) Validate() error

Validate checks the field values on CardInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CardInfoValidationError added in v1.2.6

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

CardInfoValidationError is the validation error returned by CardInfo.Validate if the designated constraints aren't met.

func (CardInfoValidationError) Cause added in v1.2.6

func (e CardInfoValidationError) Cause() error

Cause function returns cause value.

func (CardInfoValidationError) Error added in v1.2.6

func (e CardInfoValidationError) Error() string

Error satisfies the builtin error interface

func (CardInfoValidationError) ErrorName added in v1.2.6

func (e CardInfoValidationError) ErrorName() string

ErrorName returns error name.

func (CardInfoValidationError) Field added in v1.2.6

func (e CardInfoValidationError) Field() string

Field function returns field value.

func (CardInfoValidationError) Key added in v1.2.6

func (e CardInfoValidationError) Key() bool

Key function returns key value.

func (CardInfoValidationError) Reason added in v1.2.6

func (e CardInfoValidationError) Reason() string

Reason function returns reason value.

type SCCardAction added in v1.2.6

type SCCardAction struct {
	CardId uint32          `protobuf:"varint,1,opt,name=CardId,proto3" json:"CardId,omitempty"`
	Code   ErrCode.ErrCode `protobuf:"varint,2,opt,name=Code,proto3,enum=ErrCode.ErrCode" json:"Code,omitempty"`
	Action CardAction      `protobuf:"varint,3,opt,name=action,proto3,enum=purchase.CardAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*SCCardAction) Descriptor deprecated added in v1.2.6

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

Deprecated: Use SCCardAction.ProtoReflect.Descriptor instead.

func (*SCCardAction) GetAction added in v1.2.6

func (x *SCCardAction) GetAction() CardAction

func (*SCCardAction) GetCardId added in v1.2.6

func (x *SCCardAction) GetCardId() uint32

func (*SCCardAction) GetCode added in v1.2.6

func (x *SCCardAction) GetCode() ErrCode.ErrCode

func (*SCCardAction) ProtoMessage added in v1.2.6

func (*SCCardAction) ProtoMessage()

func (*SCCardAction) ProtoReflect added in v1.2.6

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

func (*SCCardAction) Reset added in v1.2.6

func (x *SCCardAction) Reset()

func (*SCCardAction) String added in v1.2.6

func (x *SCCardAction) String() string

func (*SCCardAction) Validate added in v1.2.6

func (m *SCCardAction) Validate() error

Validate checks the field values on SCCardAction with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SCCardActionValidationError added in v1.2.6

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

SCCardActionValidationError is the validation error returned by SCCardAction.Validate if the designated constraints aren't met.

func (SCCardActionValidationError) Cause added in v1.2.6

Cause function returns cause value.

func (SCCardActionValidationError) Error added in v1.2.6

Error satisfies the builtin error interface

func (SCCardActionValidationError) ErrorName added in v1.2.6

func (e SCCardActionValidationError) ErrorName() string

ErrorName returns error name.

func (SCCardActionValidationError) Field added in v1.2.6

Field function returns field value.

func (SCCardActionValidationError) Key added in v1.2.6

Key function returns key value.

func (SCCardActionValidationError) Reason added in v1.2.6

Reason function returns reason value.

type SCCards added in v1.2.6

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

func (*SCCards) Descriptor deprecated added in v1.2.6

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

Deprecated: Use SCCards.ProtoReflect.Descriptor instead.

func (*SCCards) GetInfos added in v1.2.6

func (x *SCCards) GetInfos() []*CardInfo

func (*SCCards) ProtoMessage added in v1.2.6

func (*SCCards) ProtoMessage()

func (*SCCards) ProtoReflect added in v1.2.6

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

func (*SCCards) Reset added in v1.2.6

func (x *SCCards) Reset()

func (*SCCards) String added in v1.2.6

func (x *SCCards) String() string

func (*SCCards) Validate added in v1.2.6

func (m *SCCards) Validate() error

Validate checks the field values on SCCards with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SCCardsValidationError added in v1.2.6

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

SCCardsValidationError is the validation error returned by SCCards.Validate if the designated constraints aren't met.

func (SCCardsValidationError) Cause added in v1.2.6

func (e SCCardsValidationError) Cause() error

Cause function returns cause value.

func (SCCardsValidationError) Error added in v1.2.6

func (e SCCardsValidationError) Error() string

Error satisfies the builtin error interface

func (SCCardsValidationError) ErrorName added in v1.2.6

func (e SCCardsValidationError) ErrorName() string

ErrorName returns error name.

func (SCCardsValidationError) Field added in v1.2.6

func (e SCCardsValidationError) Field() string

Field function returns field value.

func (SCCardsValidationError) Key added in v1.2.6

func (e SCCardsValidationError) Key() bool

Key function returns key value.

func (SCCardsValidationError) Reason added in v1.2.6

func (e SCCardsValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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