Documentation ¶
Index ¶
- Variables
- type CSCardAction
- func (*CSCardAction) Descriptor() ([]byte, []int)deprecated
- func (x *CSCardAction) GetAction() CardAction
- func (x *CSCardAction) GetCardId() uint32
- func (*CSCardAction) ProtoMessage()
- func (x *CSCardAction) ProtoReflect() protoreflect.Message
- func (x *CSCardAction) Reset()
- func (x *CSCardAction) String() string
- func (m *CSCardAction) Validate() error
- type CSCardActionValidationError
- func (e CSCardActionValidationError) Cause() error
- func (e CSCardActionValidationError) Error() string
- func (e CSCardActionValidationError) ErrorName() string
- func (e CSCardActionValidationError) Field() string
- func (e CSCardActionValidationError) Key() bool
- func (e CSCardActionValidationError) Reason() string
- type CardAction
- type CardInfo
- func (*CardInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CardInfo) GetCanReceivedTimes() int32
- func (x *CardInfo) GetExpireTime() int64
- func (*CardInfo) ProtoMessage()
- func (x *CardInfo) ProtoReflect() protoreflect.Message
- func (x *CardInfo) Reset()
- func (x *CardInfo) String() string
- func (m *CardInfo) Validate() error
- type CardInfoValidationError
- type SCCardAction
- func (*SCCardAction) Descriptor() ([]byte, []int)deprecated
- func (x *SCCardAction) GetAction() CardAction
- func (x *SCCardAction) GetCardId() uint32
- func (x *SCCardAction) GetCode() ErrCode.ErrCode
- func (*SCCardAction) ProtoMessage()
- func (x *SCCardAction) ProtoReflect() protoreflect.Message
- func (x *SCCardAction) Reset()
- func (x *SCCardAction) String() string
- func (m *SCCardAction) Validate() error
- type SCCardActionValidationError
- func (e SCCardActionValidationError) Cause() error
- func (e SCCardActionValidationError) Error() string
- func (e SCCardActionValidationError) ErrorName() string
- func (e SCCardActionValidationError) Field() string
- func (e SCCardActionValidationError) Key() bool
- func (e SCCardActionValidationError) Reason() string
- type SCCards
- type SCCardsValidationError
Constants ¶
This section is empty.
Variables ¶
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.
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
func (e CSCardActionValidationError) Cause() error
Cause function returns cause value.
func (CSCardActionValidationError) Error ¶ added in v1.2.6
func (e CSCardActionValidationError) Error() string
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
func (e CSCardActionValidationError) Field() string
Field function returns field value.
func (CSCardActionValidationError) Key ¶ added in v1.2.6
func (e CSCardActionValidationError) Key() bool
Key function returns key value.
func (CSCardActionValidationError) Reason ¶ added in v1.2.6
func (e CSCardActionValidationError) Reason() string
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 ¶
func (CardAction) Type() protoreflect.EnumType
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) GetCanReceivedTimes ¶ added in v1.2.6
func (*CardInfo) GetExpireTime ¶ added in v1.2.6
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
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
func (e SCCardActionValidationError) Cause() error
Cause function returns cause value.
func (SCCardActionValidationError) Error ¶ added in v1.2.6
func (e SCCardActionValidationError) Error() string
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
func (e SCCardActionValidationError) Field() string
Field function returns field value.
func (SCCardActionValidationError) Key ¶ added in v1.2.6
func (e SCCardActionValidationError) Key() bool
Key function returns key value.
func (SCCardActionValidationError) Reason ¶ added in v1.2.6
func (e SCCardActionValidationError) Reason() string
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) ProtoMessage ¶ added in v1.2.6
func (*SCCards) ProtoMessage()
func (*SCCards) ProtoReflect ¶ added in v1.2.6
func (x *SCCards) ProtoReflect() protoreflect.Message
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.