activity

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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

Cause function returns cause value.

func (ActivityItemInfoValidationError) Error

Error satisfies the builtin error interface

func (ActivityItemInfoValidationError) ErrorName

ErrorName returns error name.

func (ActivityItemInfoValidationError) Field

Field function returns field value.

func (ActivityItemInfoValidationError) Key

Key function returns key value.

func (ActivityItemInfoValidationError) Reason

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) Enum

func (x ActivityType) Enum() *ActivityType

func (ActivityType) EnumDescriptor deprecated

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

Deprecated: Use ActivityType.Descriptor instead.

func (ActivityType) Number

func (ActivityType) String

func (x ActivityType) String() string

func (ActivityType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use GoodsInfo.ProtoReflect.Descriptor instead.

func (*GoodsInfo) GetExpire

func (x *GoodsInfo) GetExpire() int64

func (*GoodsInfo) GetItemId

func (x *GoodsInfo) GetItemId() uint32

func (*GoodsInfo) GetNum

func (x *GoodsInfo) GetNum() int32

func (*GoodsInfo) ProtoMessage

func (*GoodsInfo) ProtoMessage()

func (*GoodsInfo) ProtoReflect

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

func (*GoodsInfo) Reset

func (x *GoodsInfo) Reset()

func (*GoodsInfo) String

func (x *GoodsInfo) String() string

func (*GoodsInfo) Validate

func (m *GoodsInfo) Validate() error

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

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

Key function returns key value.

func (GoodsInfoValidationError) Reason

func (e GoodsInfoValidationError) 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