Documentation
¶
Index ¶
- Variables
- type ActivityItemInfo
- func (*ActivityItemInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ActivityItemInfo) GetActId() uint32
- func (x *ActivityItemInfo) GetInfo() []*GoodsInfo
- func (*ActivityItemInfo) ProtoMessage()
- func (x *ActivityItemInfo) ProtoReflect() protoreflect.Message
- func (x *ActivityItemInfo) Reset()
- func (x *ActivityItemInfo) String() string
- func (m *ActivityItemInfo) Validate() error
- type ActivityItemInfoValidationError
- func (e ActivityItemInfoValidationError) Cause() error
- func (e ActivityItemInfoValidationError) Error() string
- func (e ActivityItemInfoValidationError) ErrorName() string
- func (e ActivityItemInfoValidationError) Field() string
- func (e ActivityItemInfoValidationError) Key() bool
- func (e ActivityItemInfoValidationError) Reason() string
- type ActivityType
- func (ActivityType) Descriptor() protoreflect.EnumDescriptor
- func (x ActivityType) Enum() *ActivityType
- func (ActivityType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ActivityType) Number() protoreflect.EnumNumber
- func (x ActivityType) String() string
- func (ActivityType) Type() protoreflect.EnumType
- type GoodsInfo
- func (*GoodsInfo) Descriptor() ([]byte, []int)deprecated
- func (x *GoodsInfo) GetExpire() int64
- func (x *GoodsInfo) GetItemId() uint32
- func (x *GoodsInfo) GetNum() int32
- func (*GoodsInfo) ProtoMessage()
- func (x *GoodsInfo) ProtoReflect() protoreflect.Message
- func (x *GoodsInfo) Reset()
- func (x *GoodsInfo) String() string
- func (m *GoodsInfo) Validate() error
- type GoodsInfoValidationError
Constants ¶
This section is empty.
Variables ¶
var ( ActivityType_name = map[int32]string{ 0: "otherNone", 1: "newCitizen", 2: "firstRecharge", 3: "fourteenSign", 4: "celebrityRollDraw", 5: "dragonBoatFestival", } ActivityType_value = map[string]int32{ "otherNone": 0, "newCitizen": 1, "firstRecharge": 2, "fourteenSign": 3, "celebrityRollDraw": 4, "dragonBoatFestival": 5, } )
Enum value maps for ActivityType.
var File_activity_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ActivityItemInfo ¶
type ActivityItemInfo struct { ActId uint32 `protobuf:"varint,1,opt,name=actId,proto3" json:"actId,omitempty"` // 活动id Info []*GoodsInfo `protobuf:"bytes,2,rep,name=info,proto3" json:"info,omitempty"` // 物品信息 // contains filtered or unexported fields }
func (*ActivityItemInfo) Descriptor
deprecated
func (*ActivityItemInfo) Descriptor() ([]byte, []int)
Deprecated: Use ActivityItemInfo.ProtoReflect.Descriptor instead.
func (*ActivityItemInfo) GetActId ¶
func (x *ActivityItemInfo) GetActId() uint32
func (*ActivityItemInfo) GetInfo ¶
func (x *ActivityItemInfo) GetInfo() []*GoodsInfo
func (*ActivityItemInfo) ProtoMessage ¶
func (*ActivityItemInfo) ProtoMessage()
func (*ActivityItemInfo) ProtoReflect ¶
func (x *ActivityItemInfo) ProtoReflect() protoreflect.Message
func (*ActivityItemInfo) Reset ¶
func (x *ActivityItemInfo) Reset()
func (*ActivityItemInfo) String ¶
func (x *ActivityItemInfo) String() string
func (*ActivityItemInfo) Validate ¶
func (m *ActivityItemInfo) Validate() error
Validate checks the field values on ActivityItemInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ActivityItemInfoValidationError ¶
type ActivityItemInfoValidationError struct {
// contains filtered or unexported fields
}
ActivityItemInfoValidationError is the validation error returned by ActivityItemInfo.Validate if the designated constraints aren't met.
func (ActivityItemInfoValidationError) Cause ¶
func (e ActivityItemInfoValidationError) Cause() error
Cause function returns cause value.
func (ActivityItemInfoValidationError) Error ¶
func (e ActivityItemInfoValidationError) Error() string
Error satisfies the builtin error interface
func (ActivityItemInfoValidationError) ErrorName ¶
func (e ActivityItemInfoValidationError) ErrorName() string
ErrorName returns error name.
func (ActivityItemInfoValidationError) Field ¶
func (e ActivityItemInfoValidationError) Field() string
Field function returns field value.
func (ActivityItemInfoValidationError) Key ¶
func (e ActivityItemInfoValidationError) Key() bool
Key function returns key value.
func (ActivityItemInfoValidationError) Reason ¶
func (e ActivityItemInfoValidationError) Reason() string
Reason function returns reason value.
type ActivityType ¶
type ActivityType int32
活动类型
const ( ActivityType_otherNone ActivityType = 0 // 不是活动 ActivityType_newCitizen ActivityType = 1 // 新公民报到 ActivityType_firstRecharge ActivityType = 2 // 萌新首冲礼 ActivityType_fourteenSign ActivityType = 3 // 14日签到 ActivityType_celebrityRollDraw ActivityType = 4 // 庆典大转盘 ActivityType_dragonBoatFestival ActivityType = 5 // 端午节活动 )
func (ActivityType) Descriptor ¶
func (ActivityType) Descriptor() protoreflect.EnumDescriptor
func (ActivityType) Enum ¶
func (x ActivityType) Enum() *ActivityType
func (ActivityType) EnumDescriptor
deprecated
func (ActivityType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ActivityType.Descriptor instead.
func (ActivityType) Number ¶
func (x ActivityType) Number() protoreflect.EnumNumber
func (ActivityType) String ¶
func (x ActivityType) String() string
func (ActivityType) Type ¶
func (ActivityType) Type() protoreflect.EnumType
type GoodsInfo ¶
type GoodsInfo struct { ItemId uint32 `protobuf:"varint,1,opt,name=ItemId,proto3" json:"ItemId,omitempty"` Num int32 `protobuf:"varint,2,opt,name=Num,proto3" json:"Num,omitempty"` Expire int64 `protobuf:"varint,3,opt,name=Expire,proto3" json:"Expire,omitempty"` // 过期时间 // contains filtered or unexported fields }
func (*GoodsInfo) Descriptor
deprecated
func (*GoodsInfo) ProtoMessage ¶
func (*GoodsInfo) ProtoMessage()
func (*GoodsInfo) ProtoReflect ¶
func (x *GoodsInfo) ProtoReflect() protoreflect.Message
type GoodsInfoValidationError ¶
type GoodsInfoValidationError struct {
// contains filtered or unexported fields
}
GoodsInfoValidationError is the validation error returned by GoodsInfo.Validate if the designated constraints aren't met.
func (GoodsInfoValidationError) Cause ¶
func (e GoodsInfoValidationError) Cause() error
Cause function returns cause value.
func (GoodsInfoValidationError) Error ¶
func (e GoodsInfoValidationError) Error() string
Error satisfies the builtin error interface
func (GoodsInfoValidationError) ErrorName ¶
func (e GoodsInfoValidationError) ErrorName() string
ErrorName returns error name.
func (GoodsInfoValidationError) Field ¶
func (e GoodsInfoValidationError) Field() string
Field function returns field value.
func (GoodsInfoValidationError) Key ¶
func (e GoodsInfoValidationError) Key() bool
Key function returns key value.
func (GoodsInfoValidationError) Reason ¶
func (e GoodsInfoValidationError) Reason() string
Reason function returns reason value.