gift

package
v0.0.0-...-b08fcc5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GiftSceneLive = 1
	GiftSceneIm   = 2

	GiftTypeBean = 1

	GiftLevelJunior = 1
	GiftLevelSenior = 2

	GiftStatusInUse    = 1
	GiftStatusNotInUse = 2

	TopicSendGift   = "event.gift.send"
	TopicGiftChange = "event.gift.change"
)

Variables

View Source
var File_proto_gift_gift_proto protoreflect.FileDescriptor

Functions

func FetchResourceTypes

func FetchResourceTypes(typeStr string) (types []string, err error)

FetchResourceTypes ["pag","mp4"]/["pag"]/["mp4"]...

func GetFileTypeName

func GetFileTypeName(i int32) string

func GetZipUrl

func GetZipUrl(url string) (zipUrl string)

func NewGiftEndpoints

func NewGiftEndpoints() []*api.Endpoint

func RegisterGiftHandler

func RegisterGiftHandler(s server.Server, hdlr GiftHandler, opts ...server.HandlerOption) error

Types

type CreateReq

type CreateReq struct {
	PoolId     int64  `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id"`             // 礼物池资源id
	GiftName   string `protobuf:"bytes,2,opt,name=gift_name,json=giftName,proto3" json:"gift_name"`        // 礼物名称
	Mark       int32  `protobuf:"varint,3,opt,name=mark,proto3" json:"mark"`                               // 标记 默认0 表示没有标记
	Country    string `protobuf:"bytes,4,opt,name=country,proto3" json:"country"`                          // 所属国家
	Scene      int32  `protobuf:"varint,5,opt,name=scene,proto3" json:"scene"`                             // 礼物使用场景
	Type       int32  `protobuf:"varint,6,opt,name=type,proto3" json:"type"`                               // 类型 1 金豆礼物
	Price      int64  `protobuf:"varint,7,opt,name=price,proto3" json:"price"`                             // 礼物价格金额
	Exp        int64  `protobuf:"varint,8,opt,name=exp,proto3" json:"exp"`                                 // 礼物经验
	SortNumber int64  `protobuf:"varint,9,opt,name=sort_number,json=sortNumber,proto3" json:"sort_number"` // 排序值,越大越靠前,默认999
	Status     int32  `protobuf:"varint,10,opt,name=status,proto3" json:"status"`                          // 礼物状态 1 启用 2 未启用
	GiftClass  int64  `protobuf:"varint,11,opt,name=gift_class,json=giftClass,proto3" json:"gift_class"`   // 礼物分类
	// contains filtered or unexported fields
}

func (*CreateReq) Descriptor deprecated

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

Deprecated: Use CreateReq.ProtoReflect.Descriptor instead.

func (*CreateReq) GetCountry

func (x *CreateReq) GetCountry() string

func (*CreateReq) GetExp

func (x *CreateReq) GetExp() int64

func (*CreateReq) GetGiftClass

func (x *CreateReq) GetGiftClass() int64

func (*CreateReq) GetGiftName

func (x *CreateReq) GetGiftName() string

func (*CreateReq) GetMark

func (x *CreateReq) GetMark() int32

func (*CreateReq) GetPoolId

func (x *CreateReq) GetPoolId() int64

func (*CreateReq) GetPrice

func (x *CreateReq) GetPrice() int64

func (*CreateReq) GetScene

func (x *CreateReq) GetScene() int32

func (*CreateReq) GetSortNumber

func (x *CreateReq) GetSortNumber() int64

func (*CreateReq) GetStatus

func (x *CreateReq) GetStatus() int32

func (*CreateReq) GetType

func (x *CreateReq) GetType() int32

func (*CreateReq) ProtoMessage

func (*CreateReq) ProtoMessage()

func (*CreateReq) ProtoReflect

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

func (*CreateReq) Reset

func (x *CreateReq) Reset()

func (*CreateReq) String

func (x *CreateReq) String() string

func (*CreateReq) Validate

func (m *CreateReq) Validate() error

Validate checks the field values on CreateReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateReq) ValidateAll

func (m *CreateReq) ValidateAll() error

ValidateAll checks the field values on CreateReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateReqMultiError, or nil if none found.

type CreateReqMultiError

type CreateReqMultiError []error

CreateReqMultiError is an error wrapping multiple validation errors returned by CreateReq.ValidateAll() if the designated constraints aren't met.

func (CreateReqMultiError) AllErrors

func (m CreateReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateReqMultiError) Error

func (m CreateReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CreateReqValidationError

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

CreateReqValidationError is the validation error returned by CreateReq.Validate if the designated constraints aren't met.

func (CreateReqValidationError) Cause

func (e CreateReqValidationError) Cause() error

Cause function returns cause value.

func (CreateReqValidationError) Error

func (e CreateReqValidationError) Error() string

Error satisfies the builtin error interface

func (CreateReqValidationError) ErrorName

func (e CreateReqValidationError) ErrorName() string

ErrorName returns error name.

func (CreateReqValidationError) Field

func (e CreateReqValidationError) Field() string

Field function returns field value.

func (CreateReqValidationError) Key

Key function returns key value.

func (CreateReqValidationError) Reason

func (e CreateReqValidationError) Reason() string

Reason function returns reason value.

type CreateRes

type CreateRes struct {
	Gift *GiftItem `protobuf:"bytes,1,opt,name=gift,proto3" json:"gift"`
	// contains filtered or unexported fields
}

func (*CreateRes) Descriptor deprecated

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

Deprecated: Use CreateRes.ProtoReflect.Descriptor instead.

func (*CreateRes) GetGift

func (x *CreateRes) GetGift() *GiftItem

func (*CreateRes) ProtoMessage

func (*CreateRes) ProtoMessage()

func (*CreateRes) ProtoReflect

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

func (*CreateRes) Reset

func (x *CreateRes) Reset()

func (*CreateRes) String

func (x *CreateRes) String() string

func (*CreateRes) Validate

func (m *CreateRes) Validate() error

Validate checks the field values on CreateRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateRes) ValidateAll

func (m *CreateRes) ValidateAll() error

ValidateAll checks the field values on CreateRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateResMultiError, or nil if none found.

type CreateResMultiError

type CreateResMultiError []error

CreateResMultiError is an error wrapping multiple validation errors returned by CreateRes.ValidateAll() if the designated constraints aren't met.

func (CreateResMultiError) AllErrors

func (m CreateResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateResMultiError) Error

func (m CreateResMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CreateResValidationError

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

CreateResValidationError is the validation error returned by CreateRes.Validate if the designated constraints aren't met.

func (CreateResValidationError) Cause

func (e CreateResValidationError) Cause() error

Cause function returns cause value.

func (CreateResValidationError) Error

func (e CreateResValidationError) Error() string

Error satisfies the builtin error interface

func (CreateResValidationError) ErrorName

func (e CreateResValidationError) ErrorName() string

ErrorName returns error name.

func (CreateResValidationError) Field

func (e CreateResValidationError) Field() string

Field function returns field value.

func (CreateResValidationError) Key

Key function returns key value.

func (CreateResValidationError) Reason

func (e CreateResValidationError) Reason() string

Reason function returns reason value.

type DeleteReq

type DeleteReq struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` // 礼物ID
	// contains filtered or unexported fields
}

func (*DeleteReq) Descriptor deprecated

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

Deprecated: Use DeleteReq.ProtoReflect.Descriptor instead.

func (*DeleteReq) GetId

func (x *DeleteReq) GetId() int64

func (*DeleteReq) ProtoMessage

func (*DeleteReq) ProtoMessage()

func (*DeleteReq) ProtoReflect

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

func (*DeleteReq) Reset

func (x *DeleteReq) Reset()

func (*DeleteReq) String

func (x *DeleteReq) String() string

func (*DeleteReq) Validate

func (m *DeleteReq) Validate() error

Validate checks the field values on DeleteReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteReq) ValidateAll

func (m *DeleteReq) ValidateAll() error

ValidateAll checks the field values on DeleteReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteReqMultiError, or nil if none found.

type DeleteReqMultiError

type DeleteReqMultiError []error

DeleteReqMultiError is an error wrapping multiple validation errors returned by DeleteReq.ValidateAll() if the designated constraints aren't met.

func (DeleteReqMultiError) AllErrors

func (m DeleteReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteReqMultiError) Error

func (m DeleteReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteReqValidationError

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

DeleteReqValidationError is the validation error returned by DeleteReq.Validate if the designated constraints aren't met.

func (DeleteReqValidationError) Cause

func (e DeleteReqValidationError) Cause() error

Cause function returns cause value.

func (DeleteReqValidationError) Error

func (e DeleteReqValidationError) Error() string

Error satisfies the builtin error interface

func (DeleteReqValidationError) ErrorName

func (e DeleteReqValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteReqValidationError) Field

func (e DeleteReqValidationError) Field() string

Field function returns field value.

func (DeleteReqValidationError) Key

Key function returns key value.

func (DeleteReqValidationError) Reason

func (e DeleteReqValidationError) Reason() string

Reason function returns reason value.

type DeleteRes

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

func (*DeleteRes) Descriptor deprecated

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

Deprecated: Use DeleteRes.ProtoReflect.Descriptor instead.

func (*DeleteRes) ProtoMessage

func (*DeleteRes) ProtoMessage()

func (*DeleteRes) ProtoReflect

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

func (*DeleteRes) Reset

func (x *DeleteRes) Reset()

func (*DeleteRes) String

func (x *DeleteRes) String() string

func (*DeleteRes) Validate

func (m *DeleteRes) Validate() error

Validate checks the field values on DeleteRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteRes) ValidateAll

func (m *DeleteRes) ValidateAll() error

ValidateAll checks the field values on DeleteRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteResMultiError, or nil if none found.

type DeleteResMultiError

type DeleteResMultiError []error

DeleteResMultiError is an error wrapping multiple validation errors returned by DeleteRes.ValidateAll() if the designated constraints aren't met.

func (DeleteResMultiError) AllErrors

func (m DeleteResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteResMultiError) Error

func (m DeleteResMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteResValidationError

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

DeleteResValidationError is the validation error returned by DeleteRes.Validate if the designated constraints aren't met.

func (DeleteResValidationError) Cause

func (e DeleteResValidationError) Cause() error

Cause function returns cause value.

func (DeleteResValidationError) Error

func (e DeleteResValidationError) Error() string

Error satisfies the builtin error interface

func (DeleteResValidationError) ErrorName

func (e DeleteResValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteResValidationError) Field

func (e DeleteResValidationError) Field() string

Field function returns field value.

func (DeleteResValidationError) Key

Key function returns key value.

func (DeleteResValidationError) Reason

func (e DeleteResValidationError) Reason() string

Reason function returns reason value.

type GetByIdReq

type GetByIdReq struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` // 礼物ID
	// contains filtered or unexported fields
}

func (*GetByIdReq) Descriptor deprecated

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

Deprecated: Use GetByIdReq.ProtoReflect.Descriptor instead.

func (*GetByIdReq) GetId

func (x *GetByIdReq) GetId() int64

func (*GetByIdReq) ProtoMessage

func (*GetByIdReq) ProtoMessage()

func (*GetByIdReq) ProtoReflect

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

func (*GetByIdReq) Reset

func (x *GetByIdReq) Reset()

func (*GetByIdReq) String

func (x *GetByIdReq) String() string

func (*GetByIdReq) Validate

func (m *GetByIdReq) Validate() error

Validate checks the field values on GetByIdReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetByIdReq) ValidateAll

func (m *GetByIdReq) ValidateAll() error

ValidateAll checks the field values on GetByIdReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetByIdReqMultiError, or nil if none found.

type GetByIdReqMultiError

type GetByIdReqMultiError []error

GetByIdReqMultiError is an error wrapping multiple validation errors returned by GetByIdReq.ValidateAll() if the designated constraints aren't met.

func (GetByIdReqMultiError) AllErrors

func (m GetByIdReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetByIdReqMultiError) Error

func (m GetByIdReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetByIdReqValidationError

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

GetByIdReqValidationError is the validation error returned by GetByIdReq.Validate if the designated constraints aren't met.

func (GetByIdReqValidationError) Cause

func (e GetByIdReqValidationError) Cause() error

Cause function returns cause value.

func (GetByIdReqValidationError) Error

Error satisfies the builtin error interface

func (GetByIdReqValidationError) ErrorName

func (e GetByIdReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetByIdReqValidationError) Field

Field function returns field value.

func (GetByIdReqValidationError) Key

Key function returns key value.

func (GetByIdReqValidationError) Reason

func (e GetByIdReqValidationError) Reason() string

Reason function returns reason value.

type GetByIdRes

type GetByIdRes struct {
	Gift *GiftItem `protobuf:"bytes,1,opt,name=gift,proto3" json:"gift"`
	// contains filtered or unexported fields
}

func (*GetByIdRes) Descriptor deprecated

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

Deprecated: Use GetByIdRes.ProtoReflect.Descriptor instead.

func (*GetByIdRes) GetGift

func (x *GetByIdRes) GetGift() *GiftItem

func (*GetByIdRes) ProtoMessage

func (*GetByIdRes) ProtoMessage()

func (*GetByIdRes) ProtoReflect

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

func (*GetByIdRes) Reset

func (x *GetByIdRes) Reset()

func (*GetByIdRes) String

func (x *GetByIdRes) String() string

func (*GetByIdRes) Validate

func (m *GetByIdRes) Validate() error

Validate checks the field values on GetByIdRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetByIdRes) ValidateAll

func (m *GetByIdRes) ValidateAll() error

ValidateAll checks the field values on GetByIdRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetByIdResMultiError, or nil if none found.

type GetByIdResMultiError

type GetByIdResMultiError []error

GetByIdResMultiError is an error wrapping multiple validation errors returned by GetByIdRes.ValidateAll() if the designated constraints aren't met.

func (GetByIdResMultiError) AllErrors

func (m GetByIdResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetByIdResMultiError) Error

func (m GetByIdResMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetByIdResValidationError

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

GetByIdResValidationError is the validation error returned by GetByIdRes.Validate if the designated constraints aren't met.

func (GetByIdResValidationError) Cause

func (e GetByIdResValidationError) Cause() error

Cause function returns cause value.

func (GetByIdResValidationError) Error

Error satisfies the builtin error interface

func (GetByIdResValidationError) ErrorName

func (e GetByIdResValidationError) ErrorName() string

ErrorName returns error name.

func (GetByIdResValidationError) Field

Field function returns field value.

func (GetByIdResValidationError) Key

Key function returns key value.

func (GetByIdResValidationError) Reason

func (e GetByIdResValidationError) Reason() string

Reason function returns reason value.

type GiftClass

type GiftClass struct {
	ClassId   int64
	ClassName string
}

func GetGiftClassList

func GetGiftClassList(lang string) []*GiftClass

type GiftClassMap

type GiftClassMap map[string]map[int64]string

func GetGiftClassMap

func GetGiftClassMap() (mp GiftClassMap)

func (GiftClassMap) Val

func (m GiftClassMap) Val(country string, classId int64) (className string)

type GiftItem

type GiftItem struct {
	Id                int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id"`                                                          // 主键
	Thumbnail         string `protobuf:"bytes,2,opt,name=thumbnail,proto3" json:"thumbnail"`                                             // 缩略图标地址
	Level             int32  `protobuf:"varint,3,opt,name=level,proto3" json:"level"`                                                    // 礼物类型 1 普通礼物 2 高级礼物
	GiftName          string `protobuf:"bytes,6,opt,name=gift_name,json=giftName,proto3" json:"gift_name"`                               // 礼物名称
	Mark              int32  `protobuf:"varint,7,opt,name=mark,proto3" json:"mark"`                                                      // 标记 默认0 表示没有标记
	Country           string `protobuf:"bytes,8,opt,name=country,proto3" json:"country"`                                                 // 所属国家
	Scene             int32  `protobuf:"varint,9,opt,name=scene,proto3" json:"scene"`                                                    // 礼物使用场景
	Type              int32  `protobuf:"varint,10,opt,name=type,proto3" json:"type"`                                                     // 类型 1 金豆礼物
	Price             int64  `protobuf:"varint,11,opt,name=price,proto3" json:"price"`                                                   // 礼物价格金额
	Exp               int64  `protobuf:"varint,17,opt,name=exp,proto3" json:"exp"`                                                       // 礼物经验
	SortNumber        int64  `protobuf:"varint,12,opt,name=sort_number,json=sortNumber,proto3" json:"sort_number"`                       // 排序值,越大越靠前,默认999
	ResourceUpdatedAt string `protobuf:"bytes,13,opt,name=resource_updated_at,json=resourceUpdatedAt,proto3" json:"resource_updated_at"` // 资源更新时间
	Status            int32  `protobuf:"varint,14,opt,name=status,proto3" json:"status"`                                                 // 礼物状态 1 启用 2 未启用
	GiftClass         int64  `protobuf:"varint,16,opt,name=gift_class,json=giftClass,proto3" json:"gift_class"`                          // 礼物分类
	PoolId            int64  `protobuf:"varint,18,opt,name=pool_id,json=poolId,proto3" json:"pool_id"`                                   // 资源池id
	VideoMp4          string `protobuf:"bytes,19,opt,name=video_mp4,json=videoMp4,proto3" json:"video_mp4"`                              // mp4地址
	VideoPag          string `protobuf:"bytes,20,opt,name=video_pag,json=videoPag,proto3" json:"video_pag"`                              // pag地址
	// contains filtered or unexported fields
}

func (*GiftItem) Descriptor deprecated

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

Deprecated: Use GiftItem.ProtoReflect.Descriptor instead.

func (*GiftItem) GetCountry

func (x *GiftItem) GetCountry() string

func (*GiftItem) GetExp

func (x *GiftItem) GetExp() int64

func (*GiftItem) GetFileKey

func (x *GiftItem) GetFileKey() string

func (*GiftItem) GetFileTypeName

func (x *GiftItem) GetFileTypeName() string

func (*GiftItem) GetGiftClass

func (x *GiftItem) GetGiftClass() int64

func (*GiftItem) GetGiftFile

func (x *GiftItem) GetGiftFile() string

func (*GiftItem) GetGiftFileType

func (x *GiftItem) GetGiftFileType() int32

func (*GiftItem) GetGiftFileZip

func (x *GiftItem) GetGiftFileZip() string

func (*GiftItem) GetGiftName

func (x *GiftItem) GetGiftName() string

func (*GiftItem) GetId

func (x *GiftItem) GetId() int64

func (*GiftItem) GetLevel

func (x *GiftItem) GetLevel() int32

func (*GiftItem) GetMark

func (x *GiftItem) GetMark() int32

func (*GiftItem) GetPoolId

func (x *GiftItem) GetPoolId() int64

func (*GiftItem) GetPrice

func (x *GiftItem) GetPrice() int64

func (*GiftItem) GetResource

func (x *GiftItem) GetResource(types []string) (url string)

func (*GiftItem) GetResourceUpdatedAt

func (x *GiftItem) GetResourceUpdatedAt() string

func (*GiftItem) GetResources

func (x *GiftItem) GetResources() (urls []string)

func (*GiftItem) GetScene

func (x *GiftItem) GetScene() int32

func (*GiftItem) GetSortNumber

func (x *GiftItem) GetSortNumber() int64

func (*GiftItem) GetStatus

func (x *GiftItem) GetStatus() int32

func (*GiftItem) GetThumbnail

func (x *GiftItem) GetThumbnail() string

func (*GiftItem) GetType

func (x *GiftItem) GetType() int32

func (*GiftItem) GetVideoMp4

func (x *GiftItem) GetVideoMp4() string

func (*GiftItem) GetVideoPag

func (x *GiftItem) GetVideoPag() string

func (*GiftItem) ProtoMessage

func (*GiftItem) ProtoMessage()

func (*GiftItem) ProtoReflect

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

func (*GiftItem) Reset

func (x *GiftItem) Reset()

func (*GiftItem) String

func (x *GiftItem) String() string

func (*GiftItem) Validate

func (m *GiftItem) Validate() error

Validate checks the field values on GiftItem with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GiftItem) ValidateAll

func (m *GiftItem) ValidateAll() error

ValidateAll checks the field values on GiftItem with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GiftItemMultiError, or nil if none found.

type GiftItemMultiError

type GiftItemMultiError []error

GiftItemMultiError is an error wrapping multiple validation errors returned by GiftItem.ValidateAll() if the designated constraints aren't met.

func (GiftItemMultiError) AllErrors

func (m GiftItemMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GiftItemMultiError) Error

func (m GiftItemMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GiftItemValidationError

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

GiftItemValidationError is the validation error returned by GiftItem.Validate if the designated constraints aren't met.

func (GiftItemValidationError) Cause

func (e GiftItemValidationError) Cause() error

Cause function returns cause value.

func (GiftItemValidationError) Error

func (e GiftItemValidationError) Error() string

Error satisfies the builtin error interface

func (GiftItemValidationError) ErrorName

func (e GiftItemValidationError) ErrorName() string

ErrorName returns error name.

func (GiftItemValidationError) Field

func (e GiftItemValidationError) Field() string

Field function returns field value.

func (GiftItemValidationError) Key

func (e GiftItemValidationError) Key() bool

Key function returns key value.

func (GiftItemValidationError) Reason

func (e GiftItemValidationError) Reason() string

Reason function returns reason value.

type GiftPanelReq

type GiftPanelReq struct {
	SenderId     int64  `protobuf:"varint,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id"`            // 送礼人id
	ReceiverId   int64  `protobuf:"varint,2,opt,name=receiver_id,json=receiverId,proto3" json:"receiver_id"`      // 收礼人id
	Scene        int32  `protobuf:"varint,3,opt,name=scene,proto3" json:"scene"`                                  // 礼物使用场景
	ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type"` // 资源类型
	// contains filtered or unexported fields
}

func (*GiftPanelReq) Descriptor deprecated

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

Deprecated: Use GiftPanelReq.ProtoReflect.Descriptor instead.

func (*GiftPanelReq) GetReceiverId

func (x *GiftPanelReq) GetReceiverId() int64

func (*GiftPanelReq) GetResourceType

func (x *GiftPanelReq) GetResourceType() string

func (*GiftPanelReq) GetScene

func (x *GiftPanelReq) GetScene() int32

func (*GiftPanelReq) GetSenderId

func (x *GiftPanelReq) GetSenderId() int64

func (*GiftPanelReq) ProtoMessage

func (*GiftPanelReq) ProtoMessage()

func (*GiftPanelReq) ProtoReflect

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

func (*GiftPanelReq) Reset

func (x *GiftPanelReq) Reset()

func (*GiftPanelReq) String

func (x *GiftPanelReq) String() string

func (*GiftPanelReq) Validate

func (m *GiftPanelReq) Validate() error

Validate checks the field values on GiftPanelReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GiftPanelReq) ValidateAll

func (m *GiftPanelReq) ValidateAll() error

ValidateAll checks the field values on GiftPanelReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GiftPanelReqMultiError, or nil if none found.

type GiftPanelReqMultiError

type GiftPanelReqMultiError []error

GiftPanelReqMultiError is an error wrapping multiple validation errors returned by GiftPanelReq.ValidateAll() if the designated constraints aren't met.

func (GiftPanelReqMultiError) AllErrors

func (m GiftPanelReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GiftPanelReqMultiError) Error

func (m GiftPanelReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GiftPanelReqValidationError

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

GiftPanelReqValidationError is the validation error returned by GiftPanelReq.Validate if the designated constraints aren't met.

func (GiftPanelReqValidationError) Cause

Cause function returns cause value.

func (GiftPanelReqValidationError) Error

Error satisfies the builtin error interface

func (GiftPanelReqValidationError) ErrorName

func (e GiftPanelReqValidationError) ErrorName() string

ErrorName returns error name.

func (GiftPanelReqValidationError) Field

Field function returns field value.

func (GiftPanelReqValidationError) Key

Key function returns key value.

func (GiftPanelReqValidationError) Reason

Reason function returns reason value.

type GiftPanelRes

type GiftPanelRes struct {
	GiftClassList []*GiftPanelRes_ClassItem `protobuf:"bytes,1,rep,name=gift_class_list,json=giftClassList,proto3" json:"gift_class_list"` // 礼物分类列表(有序)
	BeanBalance   int64                     `protobuf:"varint,2,opt,name=bean_balance,json=beanBalance,proto3" json:"bean_balance"`        // bean余额
	// contains filtered or unexported fields
}

func (*GiftPanelRes) Descriptor deprecated

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

Deprecated: Use GiftPanelRes.ProtoReflect.Descriptor instead.

func (*GiftPanelRes) GetBeanBalance

func (x *GiftPanelRes) GetBeanBalance() int64

func (*GiftPanelRes) GetGiftClassList

func (x *GiftPanelRes) GetGiftClassList() []*GiftPanelRes_ClassItem

func (*GiftPanelRes) ProtoMessage

func (*GiftPanelRes) ProtoMessage()

func (*GiftPanelRes) ProtoReflect

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

func (*GiftPanelRes) Reset

func (x *GiftPanelRes) Reset()

func (*GiftPanelRes) String

func (x *GiftPanelRes) String() string

func (*GiftPanelRes) Validate

func (m *GiftPanelRes) Validate() error

Validate checks the field values on GiftPanelRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GiftPanelRes) ValidateAll

func (m *GiftPanelRes) ValidateAll() error

ValidateAll checks the field values on GiftPanelRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GiftPanelResMultiError, or nil if none found.

type GiftPanelResMultiError

type GiftPanelResMultiError []error

GiftPanelResMultiError is an error wrapping multiple validation errors returned by GiftPanelRes.ValidateAll() if the designated constraints aren't met.

func (GiftPanelResMultiError) AllErrors

func (m GiftPanelResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GiftPanelResMultiError) Error

func (m GiftPanelResMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GiftPanelResValidationError

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

GiftPanelResValidationError is the validation error returned by GiftPanelRes.Validate if the designated constraints aren't met.

func (GiftPanelResValidationError) Cause

Cause function returns cause value.

func (GiftPanelResValidationError) Error

Error satisfies the builtin error interface

func (GiftPanelResValidationError) ErrorName

func (e GiftPanelResValidationError) ErrorName() string

ErrorName returns error name.

func (GiftPanelResValidationError) Field

Field function returns field value.

func (GiftPanelResValidationError) Key

Key function returns key value.

func (GiftPanelResValidationError) Reason

Reason function returns reason value.

type GiftPanelRes_ClassItem

type GiftPanelRes_ClassItem struct {
	ClassId   int64                     `protobuf:"varint,1,opt,name=class_id,json=classId,proto3" json:"class_id"`      // 分类ID
	ClassName string                    `protobuf:"bytes,2,opt,name=class_name,json=className,proto3" json:"class_name"` // 分类名称
	GiftList  []*GiftPanelRes_PanelItem `protobuf:"bytes,3,rep,name=gift_list,json=giftList,proto3" json:"gift_list"`    // 礼物列表(有序)
	// contains filtered or unexported fields
}

func (*GiftPanelRes_ClassItem) Descriptor deprecated

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

Deprecated: Use GiftPanelRes_ClassItem.ProtoReflect.Descriptor instead.

func (*GiftPanelRes_ClassItem) GetClassId

func (x *GiftPanelRes_ClassItem) GetClassId() int64

func (*GiftPanelRes_ClassItem) GetClassName

func (x *GiftPanelRes_ClassItem) GetClassName() string

func (*GiftPanelRes_ClassItem) GetGiftList

func (x *GiftPanelRes_ClassItem) GetGiftList() []*GiftPanelRes_PanelItem

func (*GiftPanelRes_ClassItem) ProtoMessage

func (*GiftPanelRes_ClassItem) ProtoMessage()

func (*GiftPanelRes_ClassItem) ProtoReflect

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

func (*GiftPanelRes_ClassItem) Reset

func (x *GiftPanelRes_ClassItem) Reset()

func (*GiftPanelRes_ClassItem) String

func (x *GiftPanelRes_ClassItem) String() string

func (*GiftPanelRes_ClassItem) Validate

func (m *GiftPanelRes_ClassItem) Validate() error

Validate checks the field values on GiftPanelRes_ClassItem with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GiftPanelRes_ClassItem) ValidateAll

func (m *GiftPanelRes_ClassItem) ValidateAll() error

ValidateAll checks the field values on GiftPanelRes_ClassItem with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GiftPanelRes_ClassItemMultiError, or nil if none found.

type GiftPanelRes_ClassItemMultiError

type GiftPanelRes_ClassItemMultiError []error

GiftPanelRes_ClassItemMultiError is an error wrapping multiple validation errors returned by GiftPanelRes_ClassItem.ValidateAll() if the designated constraints aren't met.

func (GiftPanelRes_ClassItemMultiError) AllErrors

func (m GiftPanelRes_ClassItemMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GiftPanelRes_ClassItemMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GiftPanelRes_ClassItemValidationError

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

GiftPanelRes_ClassItemValidationError is the validation error returned by GiftPanelRes_ClassItem.Validate if the designated constraints aren't met.

func (GiftPanelRes_ClassItemValidationError) Cause

Cause function returns cause value.

func (GiftPanelRes_ClassItemValidationError) Error

Error satisfies the builtin error interface

func (GiftPanelRes_ClassItemValidationError) ErrorName

ErrorName returns error name.

func (GiftPanelRes_ClassItemValidationError) Field

Field function returns field value.

func (GiftPanelRes_ClassItemValidationError) Key

Key function returns key value.

func (GiftPanelRes_ClassItemValidationError) Reason

Reason function returns reason value.

type GiftPanelRes_PanelItem

type GiftPanelRes_PanelItem struct {
	GiftId       int64   `protobuf:"varint,1,opt,name=gift_id,json=giftId,proto3" json:"gift_id"`                     // 礼物ID
	GiftName     string  `protobuf:"bytes,2,opt,name=gift_name,json=giftName,proto3" json:"gift_name"`                // 礼物名称
	Thumbnail    string  `protobuf:"bytes,3,opt,name=thumbnail,proto3" json:"thumbnail"`                              // 缩略图地址
	Level        int32   `protobuf:"varint,4,opt,name=level,proto3" json:"level"`                                     // 礼物等级 1 普通礼物 2 高级礼物 (影响动效)
	Type         int32   `protobuf:"varint,7,opt,name=type,proto3" json:"type"`                                       // 礼物类型 1 金豆礼物
	Price        int64   `protobuf:"varint,8,opt,name=price,proto3" json:"price"`                                     // 礼物价格金额
	PackCount    int64   `protobuf:"varint,9,opt,name=pack_count,json=packCount,proto3" json:"pack_count"`            // 背包中礼物数量
	Resource     string  `protobuf:"bytes,11,opt,name=resource,proto3" json:"resource"`                               // 高级礼物动画资源地址
	Mark         []int32 `protobuf:"varint,12,rep,packed,name=mark,proto3" json:"mark"`                               // 特殊礼物标记
	GiftFileZip  string  `protobuf:"bytes,5,opt,name=gift_file_zip,json=giftFileZip,proto3" json:"gift_file_zip"`     // 礼物压缩包地址(废弃)
	GiftFileKey  string  `protobuf:"bytes,6,opt,name=gift_file_key,json=giftFileKey,proto3" json:"gift_file_key"`     // 礼物资源标识key(废弃)
	GiftFileType string  `protobuf:"bytes,10,opt,name=gift_file_type,json=giftFileType,proto3" json:"gift_file_type"` // 文件类型: 1 svga  2 mp4(废弃)
	// contains filtered or unexported fields
}

func (*GiftPanelRes_PanelItem) Descriptor deprecated

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

Deprecated: Use GiftPanelRes_PanelItem.ProtoReflect.Descriptor instead.

func (*GiftPanelRes_PanelItem) GetGiftFileKey

func (x *GiftPanelRes_PanelItem) GetGiftFileKey() string

func (*GiftPanelRes_PanelItem) GetGiftFileType

func (x *GiftPanelRes_PanelItem) GetGiftFileType() string

func (*GiftPanelRes_PanelItem) GetGiftFileZip

func (x *GiftPanelRes_PanelItem) GetGiftFileZip() string

func (*GiftPanelRes_PanelItem) GetGiftId

func (x *GiftPanelRes_PanelItem) GetGiftId() int64

func (*GiftPanelRes_PanelItem) GetGiftName

func (x *GiftPanelRes_PanelItem) GetGiftName() string

func (*GiftPanelRes_PanelItem) GetLevel

func (x *GiftPanelRes_PanelItem) GetLevel() int32

func (*GiftPanelRes_PanelItem) GetMark

func (x *GiftPanelRes_PanelItem) GetMark() []int32

func (*GiftPanelRes_PanelItem) GetPackCount

func (x *GiftPanelRes_PanelItem) GetPackCount() int64

func (*GiftPanelRes_PanelItem) GetPrice

func (x *GiftPanelRes_PanelItem) GetPrice() int64

func (*GiftPanelRes_PanelItem) GetResource

func (x *GiftPanelRes_PanelItem) GetResource() string

func (*GiftPanelRes_PanelItem) GetThumbnail

func (x *GiftPanelRes_PanelItem) GetThumbnail() string

func (*GiftPanelRes_PanelItem) GetType

func (x *GiftPanelRes_PanelItem) GetType() int32

func (*GiftPanelRes_PanelItem) ProtoMessage

func (*GiftPanelRes_PanelItem) ProtoMessage()

func (*GiftPanelRes_PanelItem) ProtoReflect

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

func (*GiftPanelRes_PanelItem) Reset

func (x *GiftPanelRes_PanelItem) Reset()

func (*GiftPanelRes_PanelItem) String

func (x *GiftPanelRes_PanelItem) String() string

func (*GiftPanelRes_PanelItem) Validate

func (m *GiftPanelRes_PanelItem) Validate() error

Validate checks the field values on GiftPanelRes_PanelItem with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GiftPanelRes_PanelItem) ValidateAll

func (m *GiftPanelRes_PanelItem) ValidateAll() error

ValidateAll checks the field values on GiftPanelRes_PanelItem with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GiftPanelRes_PanelItemMultiError, or nil if none found.

type GiftPanelRes_PanelItemMultiError

type GiftPanelRes_PanelItemMultiError []error

GiftPanelRes_PanelItemMultiError is an error wrapping multiple validation errors returned by GiftPanelRes_PanelItem.ValidateAll() if the designated constraints aren't met.

func (GiftPanelRes_PanelItemMultiError) AllErrors

func (m GiftPanelRes_PanelItemMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GiftPanelRes_PanelItemMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GiftPanelRes_PanelItemValidationError

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

GiftPanelRes_PanelItemValidationError is the validation error returned by GiftPanelRes_PanelItem.Validate if the designated constraints aren't met.

func (GiftPanelRes_PanelItemValidationError) Cause

Cause function returns cause value.

func (GiftPanelRes_PanelItemValidationError) Error

Error satisfies the builtin error interface

func (GiftPanelRes_PanelItemValidationError) ErrorName

ErrorName returns error name.

func (GiftPanelRes_PanelItemValidationError) Field

Field function returns field value.

func (GiftPanelRes_PanelItemValidationError) Key

Key function returns key value.

func (GiftPanelRes_PanelItemValidationError) Reason

Reason function returns reason value.

type GiftService

type GiftService interface {
	Create(ctx context.Context, in *CreateReq, opts ...client.CallOption) (*CreateRes, error)
	Update(ctx context.Context, in *UpdateReq, opts ...client.CallOption) (*UpdateRes, error)
	Delete(ctx context.Context, in *DeleteReq, opts ...client.CallOption) (*DeleteRes, error)
	UpdateSortNumber(ctx context.Context, in *UpdateSortNumberReq, opts ...client.CallOption) (*UpdateSortNumberRes, error)
	SwitchStatus(ctx context.Context, in *SwitchStatusReq, opts ...client.CallOption) (*SwitchStatusRes, error)
	GiftPanel(ctx context.Context, in *GiftPanelReq, opts ...client.CallOption) (*GiftPanelRes, error)
	GetById(ctx context.Context, in *GetByIdReq, opts ...client.CallOption) (*GetByIdRes, error)
	Resources(ctx context.Context, in *ResourcesReq, opts ...client.CallOption) (*ResourcesRes, error)
	SendGift(ctx context.Context, in *SendGiftReq, opts ...client.CallOption) (*SendGiftRes, error)
	RefreshResource(ctx context.Context, in *RefreshResourceReq, opts ...client.CallOption) (*RefreshResourceRes, error)
}

func NewGiftService

func NewGiftService(name string, c client.Client) GiftService

type MessageOfEventGiftChange

type MessageOfEventGiftChange struct {
	ChangeType  string `json:"change_type"` // create/update/delete
	GiftId      int64  `json:"gift_id"`
	FromCountry string `json:"from_country"`
	FromScene   int32  `json:"from_scene"`
}

type MessageSendGift

type MessageSendGift struct {
	DetailId         int64  `json:"detail_id"`         // 送礼记录ID(唯一)
	GiftLevel        int32  `json:"gift_level"`        // 礼物类型 1 普通礼物 2 高级礼物
	GiftId           int64  `json:"gift_id"`           // 礼物ID
	GiftName         string `json:"gift_name"`         // 礼物名称
	GiftMark         int32  `json:"gift_mark"`         // 标记 默认0 表示没有标记
	GiftCountry      string `json:"gift_country"`      // 礼物国家
	AmountBean       int64  `json:"amount_bean"`       // 金豆总额
	AmountDiamond    int64  `json:"amount_diamond"`    // 钻石总额
	TotalExp         int64  `json:"total_exp"`         // 经验总额
	GiftCount        int64  `json:"gift_count"`        // 礼物数量
	ReceiverId       int64  `json:"receiver_id"`       // 收礼人ID
	ReceiverNickname string `json:"receiver_nickname"` // 收礼人昵称
	ReceiverCountry  string `json:"receiver_country"`  // 收礼人所属国家
	SenderId         int64  `json:"sender_id"`         // 送礼人ID
	SenderNickname   string `json:"sender_nickname"`   // 送礼人昵称
	SenderCountry    string `json:"sender_country"`    // 送礼人国家
	Scene            string `json:"scene"`             // 礼物场景 live / im
	LiveId           int64  `json:"live_id"`           // 直播ID
	LiveClassifyId   int32  `json:"live_classify_id"`  // 直播分类:1.视频
	GroupId          int64  `json:"group_id"`          // 粉丝团ID
	SendAt           string `json:"send_at"`           // 送礼物时间
}

func (*MessageSendGift) ToJsonString

func (m *MessageSendGift) ToJsonString() string

type RefreshResourceReq

type RefreshResourceReq struct {
	PoolId int64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id"`
	// contains filtered or unexported fields
}

func (*RefreshResourceReq) Descriptor deprecated

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

Deprecated: Use RefreshResourceReq.ProtoReflect.Descriptor instead.

func (*RefreshResourceReq) GetPoolId

func (x *RefreshResourceReq) GetPoolId() int64

func (*RefreshResourceReq) ProtoMessage

func (*RefreshResourceReq) ProtoMessage()

func (*RefreshResourceReq) ProtoReflect

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

func (*RefreshResourceReq) Reset

func (x *RefreshResourceReq) Reset()

func (*RefreshResourceReq) String

func (x *RefreshResourceReq) String() string

func (*RefreshResourceReq) Validate

func (m *RefreshResourceReq) Validate() error

Validate checks the field values on RefreshResourceReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RefreshResourceReq) ValidateAll

func (m *RefreshResourceReq) ValidateAll() error

ValidateAll checks the field values on RefreshResourceReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RefreshResourceReqMultiError, or nil if none found.

type RefreshResourceReqMultiError

type RefreshResourceReqMultiError []error

RefreshResourceReqMultiError is an error wrapping multiple validation errors returned by RefreshResourceReq.ValidateAll() if the designated constraints aren't met.

func (RefreshResourceReqMultiError) AllErrors

func (m RefreshResourceReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RefreshResourceReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RefreshResourceReqValidationError

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

RefreshResourceReqValidationError is the validation error returned by RefreshResourceReq.Validate if the designated constraints aren't met.

func (RefreshResourceReqValidationError) Cause

Cause function returns cause value.

func (RefreshResourceReqValidationError) Error

Error satisfies the builtin error interface

func (RefreshResourceReqValidationError) ErrorName

ErrorName returns error name.

func (RefreshResourceReqValidationError) Field

Field function returns field value.

func (RefreshResourceReqValidationError) Key

Key function returns key value.

func (RefreshResourceReqValidationError) Reason

Reason function returns reason value.

type RefreshResourceRes

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

func (*RefreshResourceRes) Descriptor deprecated

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

Deprecated: Use RefreshResourceRes.ProtoReflect.Descriptor instead.

func (*RefreshResourceRes) ProtoMessage

func (*RefreshResourceRes) ProtoMessage()

func (*RefreshResourceRes) ProtoReflect

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

func (*RefreshResourceRes) Reset

func (x *RefreshResourceRes) Reset()

func (*RefreshResourceRes) String

func (x *RefreshResourceRes) String() string

func (*RefreshResourceRes) Validate

func (m *RefreshResourceRes) Validate() error

Validate checks the field values on RefreshResourceRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RefreshResourceRes) ValidateAll

func (m *RefreshResourceRes) ValidateAll() error

ValidateAll checks the field values on RefreshResourceRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RefreshResourceResMultiError, or nil if none found.

type RefreshResourceResMultiError

type RefreshResourceResMultiError []error

RefreshResourceResMultiError is an error wrapping multiple validation errors returned by RefreshResourceRes.ValidateAll() if the designated constraints aren't met.

func (RefreshResourceResMultiError) AllErrors

func (m RefreshResourceResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RefreshResourceResMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RefreshResourceResValidationError

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

RefreshResourceResValidationError is the validation error returned by RefreshResourceRes.Validate if the designated constraints aren't met.

func (RefreshResourceResValidationError) Cause

Cause function returns cause value.

func (RefreshResourceResValidationError) Error

Error satisfies the builtin error interface

func (RefreshResourceResValidationError) ErrorName

ErrorName returns error name.

func (RefreshResourceResValidationError) Field

Field function returns field value.

func (RefreshResourceResValidationError) Key

Key function returns key value.

func (RefreshResourceResValidationError) Reason

Reason function returns reason value.

type ResourcesReq

type ResourcesReq struct {
	Time         string `protobuf:"bytes,1,opt,name=time,proto3" json:"time"`                                     // 起始时间
	ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type"` // 资源类型
	// contains filtered or unexported fields
}

func (*ResourcesReq) Descriptor deprecated

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

Deprecated: Use ResourcesReq.ProtoReflect.Descriptor instead.

func (*ResourcesReq) GetResourceType

func (x *ResourcesReq) GetResourceType() string

func (*ResourcesReq) GetTime

func (x *ResourcesReq) GetTime() string

func (*ResourcesReq) ProtoMessage

func (*ResourcesReq) ProtoMessage()

func (*ResourcesReq) ProtoReflect

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

func (*ResourcesReq) Reset

func (x *ResourcesReq) Reset()

func (*ResourcesReq) String

func (x *ResourcesReq) String() string

func (*ResourcesReq) Validate

func (m *ResourcesReq) Validate() error

Validate checks the field values on ResourcesReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResourcesReq) ValidateAll

func (m *ResourcesReq) ValidateAll() error

ValidateAll checks the field values on ResourcesReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResourcesReqMultiError, or nil if none found.

type ResourcesReqMultiError

type ResourcesReqMultiError []error

ResourcesReqMultiError is an error wrapping multiple validation errors returned by ResourcesReq.ValidateAll() if the designated constraints aren't met.

func (ResourcesReqMultiError) AllErrors

func (m ResourcesReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResourcesReqMultiError) Error

func (m ResourcesReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ResourcesReqValidationError

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

ResourcesReqValidationError is the validation error returned by ResourcesReq.Validate if the designated constraints aren't met.

func (ResourcesReqValidationError) Cause

Cause function returns cause value.

func (ResourcesReqValidationError) Error

Error satisfies the builtin error interface

func (ResourcesReqValidationError) ErrorName

func (e ResourcesReqValidationError) ErrorName() string

ErrorName returns error name.

func (ResourcesReqValidationError) Field

Field function returns field value.

func (ResourcesReqValidationError) Key

Key function returns key value.

func (ResourcesReqValidationError) Reason

Reason function returns reason value.

type ResourcesRes

type ResourcesRes struct {
	DownloadUrl []string `protobuf:"bytes,1,rep,name=download_url,json=downloadUrl,proto3" json:"download_url"`
	// contains filtered or unexported fields
}

func (*ResourcesRes) Descriptor deprecated

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

Deprecated: Use ResourcesRes.ProtoReflect.Descriptor instead.

func (*ResourcesRes) GetDownloadUrl

func (x *ResourcesRes) GetDownloadUrl() []string

func (*ResourcesRes) ProtoMessage

func (*ResourcesRes) ProtoMessage()

func (*ResourcesRes) ProtoReflect

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

func (*ResourcesRes) Reset

func (x *ResourcesRes) Reset()

func (*ResourcesRes) String

func (x *ResourcesRes) String() string

func (*ResourcesRes) Validate

func (m *ResourcesRes) Validate() error

Validate checks the field values on ResourcesRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResourcesRes) ValidateAll

func (m *ResourcesRes) ValidateAll() error

ValidateAll checks the field values on ResourcesRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResourcesResMultiError, or nil if none found.

type ResourcesResMultiError

type ResourcesResMultiError []error

ResourcesResMultiError is an error wrapping multiple validation errors returned by ResourcesRes.ValidateAll() if the designated constraints aren't met.

func (ResourcesResMultiError) AllErrors

func (m ResourcesResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResourcesResMultiError) Error

func (m ResourcesResMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ResourcesResValidationError

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

ResourcesResValidationError is the validation error returned by ResourcesRes.Validate if the designated constraints aren't met.

func (ResourcesResValidationError) Cause

Cause function returns cause value.

func (ResourcesResValidationError) Error

Error satisfies the builtin error interface

func (ResourcesResValidationError) ErrorName

func (e ResourcesResValidationError) ErrorName() string

ErrorName returns error name.

func (ResourcesResValidationError) Field

Field function returns field value.

func (ResourcesResValidationError) Key

Key function returns key value.

func (ResourcesResValidationError) Reason

Reason function returns reason value.

type SendGiftReq

type SendGiftReq struct {
	ReceiverId int64 `protobuf:"varint,1,opt,name=receiver_id,json=receiverId,proto3" json:"receiver_id"` // 收礼物人userId
	SenderId   int64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id"`       // 送礼人userId
	GiftId     int64 `protobuf:"varint,3,opt,name=gift_id,json=giftId,proto3" json:"gift_id"`             // 礼物ID
	Scene      int32 `protobuf:"varint,4,opt,name=scene,proto3" json:"scene"`                             // 送礼场景:1live/2im
	Count      int64 `protobuf:"varint,5,opt,name=count,proto3" json:"count"`                             // 礼物数量
	LiveId     int64 `protobuf:"varint,6,opt,name=live_id,json=liveId,proto3" json:"live_id"`             // 直播间ID(非直播间传0)
	GroupId    int64 `protobuf:"varint,7,opt,name=group_id,json=groupId,proto3" json:"group_id"`          // 粉丝群ID
	// contains filtered or unexported fields
}

func (*SendGiftReq) Descriptor deprecated

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

Deprecated: Use SendGiftReq.ProtoReflect.Descriptor instead.

func (*SendGiftReq) GetCount

func (x *SendGiftReq) GetCount() int64

func (*SendGiftReq) GetGiftId

func (x *SendGiftReq) GetGiftId() int64

func (*SendGiftReq) GetGroupId

func (x *SendGiftReq) GetGroupId() int64

func (*SendGiftReq) GetLiveId

func (x *SendGiftReq) GetLiveId() int64

func (*SendGiftReq) GetReceiverId

func (x *SendGiftReq) GetReceiverId() int64

func (*SendGiftReq) GetScene

func (x *SendGiftReq) GetScene() int32

func (*SendGiftReq) GetSenderId

func (x *SendGiftReq) GetSenderId() int64

func (*SendGiftReq) ProtoMessage

func (*SendGiftReq) ProtoMessage()

func (*SendGiftReq) ProtoReflect

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

func (*SendGiftReq) Reset

func (x *SendGiftReq) Reset()

func (*SendGiftReq) String

func (x *SendGiftReq) String() string

func (*SendGiftReq) Validate

func (m *SendGiftReq) Validate() error

Validate checks the field values on SendGiftReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SendGiftReq) ValidateAll

func (m *SendGiftReq) ValidateAll() error

ValidateAll checks the field values on SendGiftReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SendGiftReqMultiError, or nil if none found.

type SendGiftReqMultiError

type SendGiftReqMultiError []error

SendGiftReqMultiError is an error wrapping multiple validation errors returned by SendGiftReq.ValidateAll() if the designated constraints aren't met.

func (SendGiftReqMultiError) AllErrors

func (m SendGiftReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SendGiftReqMultiError) Error

func (m SendGiftReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SendGiftReqValidationError

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

SendGiftReqValidationError is the validation error returned by SendGiftReq.Validate if the designated constraints aren't met.

func (SendGiftReqValidationError) Cause

Cause function returns cause value.

func (SendGiftReqValidationError) Error

Error satisfies the builtin error interface

func (SendGiftReqValidationError) ErrorName

func (e SendGiftReqValidationError) ErrorName() string

ErrorName returns error name.

func (SendGiftReqValidationError) Field

Field function returns field value.

func (SendGiftReqValidationError) Key

Key function returns key value.

func (SendGiftReqValidationError) Reason

Reason function returns reason value.

type SendGiftRes

type SendGiftRes struct {
	GiftId        int64 `protobuf:"varint,1,opt,name=gift_id,json=giftId,proto3" json:"gift_id"`                      // 送出礼物ID
	GiftCount     int64 `protobuf:"varint,2,opt,name=gift_count,json=giftCount,proto3" json:"gift_count"`             // 送出礼物数量
	BalanceType   int32 `protobuf:"varint,3,opt,name=balance_type,json=balanceType,proto3" json:"balance_type"`       // 消费余额类型
	BalanceAmount int64 `protobuf:"varint,4,opt,name=balance_amount,json=balanceAmount,proto3" json:"balance_amount"` // 余额金额
	PackCount     int64 `protobuf:"varint,5,opt,name=pack_count,json=packCount,proto3" json:"pack_count"`             // 背包中剩余礼物数量
	// contains filtered or unexported fields
}

func (*SendGiftRes) Descriptor deprecated

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

Deprecated: Use SendGiftRes.ProtoReflect.Descriptor instead.

func (*SendGiftRes) GetBalanceAmount

func (x *SendGiftRes) GetBalanceAmount() int64

func (*SendGiftRes) GetBalanceType

func (x *SendGiftRes) GetBalanceType() int32

func (*SendGiftRes) GetGiftCount

func (x *SendGiftRes) GetGiftCount() int64

func (*SendGiftRes) GetGiftId

func (x *SendGiftRes) GetGiftId() int64

func (*SendGiftRes) GetPackCount

func (x *SendGiftRes) GetPackCount() int64

func (*SendGiftRes) ProtoMessage

func (*SendGiftRes) ProtoMessage()

func (*SendGiftRes) ProtoReflect

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

func (*SendGiftRes) Reset

func (x *SendGiftRes) Reset()

func (*SendGiftRes) String

func (x *SendGiftRes) String() string

func (*SendGiftRes) Validate

func (m *SendGiftRes) Validate() error

Validate checks the field values on SendGiftRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SendGiftRes) ValidateAll

func (m *SendGiftRes) ValidateAll() error

ValidateAll checks the field values on SendGiftRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SendGiftResMultiError, or nil if none found.

type SendGiftResMultiError

type SendGiftResMultiError []error

SendGiftResMultiError is an error wrapping multiple validation errors returned by SendGiftRes.ValidateAll() if the designated constraints aren't met.

func (SendGiftResMultiError) AllErrors

func (m SendGiftResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SendGiftResMultiError) Error

func (m SendGiftResMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SendGiftResValidationError

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

SendGiftResValidationError is the validation error returned by SendGiftRes.Validate if the designated constraints aren't met.

func (SendGiftResValidationError) Cause

Cause function returns cause value.

func (SendGiftResValidationError) Error

Error satisfies the builtin error interface

func (SendGiftResValidationError) ErrorName

func (e SendGiftResValidationError) ErrorName() string

ErrorName returns error name.

func (SendGiftResValidationError) Field

Field function returns field value.

func (SendGiftResValidationError) Key

Key function returns key value.

func (SendGiftResValidationError) Reason

Reason function returns reason value.

type SwitchStatusReq

type SwitchStatusReq struct {
	Id     int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`          // 主键
	Status int32 `protobuf:"varint,14,opt,name=status,proto3" json:"status"` // 礼物状态 1 启用 2 未启用
	// contains filtered or unexported fields
}

func (*SwitchStatusReq) Descriptor deprecated

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

Deprecated: Use SwitchStatusReq.ProtoReflect.Descriptor instead.

func (*SwitchStatusReq) GetId

func (x *SwitchStatusReq) GetId() int64

func (*SwitchStatusReq) GetStatus

func (x *SwitchStatusReq) GetStatus() int32

func (*SwitchStatusReq) ProtoMessage

func (*SwitchStatusReq) ProtoMessage()

func (*SwitchStatusReq) ProtoReflect

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

func (*SwitchStatusReq) Reset

func (x *SwitchStatusReq) Reset()

func (*SwitchStatusReq) String

func (x *SwitchStatusReq) String() string

func (*SwitchStatusReq) Validate

func (m *SwitchStatusReq) Validate() error

Validate checks the field values on SwitchStatusReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SwitchStatusReq) ValidateAll

func (m *SwitchStatusReq) ValidateAll() error

ValidateAll checks the field values on SwitchStatusReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SwitchStatusReqMultiError, or nil if none found.

type SwitchStatusReqMultiError

type SwitchStatusReqMultiError []error

SwitchStatusReqMultiError is an error wrapping multiple validation errors returned by SwitchStatusReq.ValidateAll() if the designated constraints aren't met.

func (SwitchStatusReqMultiError) AllErrors

func (m SwitchStatusReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SwitchStatusReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SwitchStatusReqValidationError

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

SwitchStatusReqValidationError is the validation error returned by SwitchStatusReq.Validate if the designated constraints aren't met.

func (SwitchStatusReqValidationError) Cause

Cause function returns cause value.

func (SwitchStatusReqValidationError) Error

Error satisfies the builtin error interface

func (SwitchStatusReqValidationError) ErrorName

func (e SwitchStatusReqValidationError) ErrorName() string

ErrorName returns error name.

func (SwitchStatusReqValidationError) Field

Field function returns field value.

func (SwitchStatusReqValidationError) Key

Key function returns key value.

func (SwitchStatusReqValidationError) Reason

Reason function returns reason value.

type SwitchStatusRes

type SwitchStatusRes struct {
	Id     int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`          // 主键
	Status int32 `protobuf:"varint,14,opt,name=status,proto3" json:"status"` // 礼物状态 1 启用 2 未启用
	// contains filtered or unexported fields
}

func (*SwitchStatusRes) Descriptor deprecated

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

Deprecated: Use SwitchStatusRes.ProtoReflect.Descriptor instead.

func (*SwitchStatusRes) GetId

func (x *SwitchStatusRes) GetId() int64

func (*SwitchStatusRes) GetStatus

func (x *SwitchStatusRes) GetStatus() int32

func (*SwitchStatusRes) ProtoMessage

func (*SwitchStatusRes) ProtoMessage()

func (*SwitchStatusRes) ProtoReflect

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

func (*SwitchStatusRes) Reset

func (x *SwitchStatusRes) Reset()

func (*SwitchStatusRes) String

func (x *SwitchStatusRes) String() string

func (*SwitchStatusRes) Validate

func (m *SwitchStatusRes) Validate() error

Validate checks the field values on SwitchStatusRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SwitchStatusRes) ValidateAll

func (m *SwitchStatusRes) ValidateAll() error

ValidateAll checks the field values on SwitchStatusRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SwitchStatusResMultiError, or nil if none found.

type SwitchStatusResMultiError

type SwitchStatusResMultiError []error

SwitchStatusResMultiError is an error wrapping multiple validation errors returned by SwitchStatusRes.ValidateAll() if the designated constraints aren't met.

func (SwitchStatusResMultiError) AllErrors

func (m SwitchStatusResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SwitchStatusResMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SwitchStatusResValidationError

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

SwitchStatusResValidationError is the validation error returned by SwitchStatusRes.Validate if the designated constraints aren't met.

func (SwitchStatusResValidationError) Cause

Cause function returns cause value.

func (SwitchStatusResValidationError) Error

Error satisfies the builtin error interface

func (SwitchStatusResValidationError) ErrorName

func (e SwitchStatusResValidationError) ErrorName() string

ErrorName returns error name.

func (SwitchStatusResValidationError) Field

Field function returns field value.

func (SwitchStatusResValidationError) Key

Key function returns key value.

func (SwitchStatusResValidationError) Reason

Reason function returns reason value.

type UpdateReq

type UpdateReq struct {
	Id         int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id"`                                    // 主键
	PoolId     int64  `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id"`              // 礼物池资源id
	GiftName   string `protobuf:"bytes,3,opt,name=gift_name,json=giftName,proto3" json:"gift_name"`         // 礼物名称
	Mark       int32  `protobuf:"varint,4,opt,name=mark,proto3" json:"mark"`                                // 标记 默认0 表示没有标记
	Country    string `protobuf:"bytes,5,opt,name=country,proto3" json:"country"`                           // 所属国家
	Scene      int32  `protobuf:"varint,6,opt,name=scene,proto3" json:"scene"`                              // 礼物使用场景
	Type       int32  `protobuf:"varint,7,opt,name=type,proto3" json:"type"`                                // 类型 1 金豆礼物
	Price      int64  `protobuf:"varint,8,opt,name=price,proto3" json:"price"`                              // 礼物价格金额
	Exp        int64  `protobuf:"varint,9,opt,name=exp,proto3" json:"exp"`                                  // 礼物经验
	SortNumber int64  `protobuf:"varint,10,opt,name=sort_number,json=sortNumber,proto3" json:"sort_number"` // 排序值,越大越靠前,默认999
	Status     int32  `protobuf:"varint,11,opt,name=status,proto3" json:"status"`                           // 礼物状态 1 启用 2 未启用
	GiftClass  int64  `protobuf:"varint,12,opt,name=gift_class,json=giftClass,proto3" json:"gift_class"`    // 礼物分类
	// contains filtered or unexported fields
}

func (*UpdateReq) Descriptor deprecated

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

Deprecated: Use UpdateReq.ProtoReflect.Descriptor instead.

func (*UpdateReq) GetCountry

func (x *UpdateReq) GetCountry() string

func (*UpdateReq) GetExp

func (x *UpdateReq) GetExp() int64

func (*UpdateReq) GetGiftClass

func (x *UpdateReq) GetGiftClass() int64

func (*UpdateReq) GetGiftName

func (x *UpdateReq) GetGiftName() string

func (*UpdateReq) GetId

func (x *UpdateReq) GetId() int64

func (*UpdateReq) GetMark

func (x *UpdateReq) GetMark() int32

func (*UpdateReq) GetPoolId

func (x *UpdateReq) GetPoolId() int64

func (*UpdateReq) GetPrice

func (x *UpdateReq) GetPrice() int64

func (*UpdateReq) GetScene

func (x *UpdateReq) GetScene() int32

func (*UpdateReq) GetSortNumber

func (x *UpdateReq) GetSortNumber() int64

func (*UpdateReq) GetStatus

func (x *UpdateReq) GetStatus() int32

func (*UpdateReq) GetType

func (x *UpdateReq) GetType() int32

func (*UpdateReq) ProtoMessage

func (*UpdateReq) ProtoMessage()

func (*UpdateReq) ProtoReflect

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

func (*UpdateReq) Reset

func (x *UpdateReq) Reset()

func (*UpdateReq) String

func (x *UpdateReq) String() string

func (*UpdateReq) Validate

func (m *UpdateReq) Validate() error

Validate checks the field values on UpdateReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateReq) ValidateAll

func (m *UpdateReq) ValidateAll() error

ValidateAll checks the field values on UpdateReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateReqMultiError, or nil if none found.

type UpdateReqMultiError

type UpdateReqMultiError []error

UpdateReqMultiError is an error wrapping multiple validation errors returned by UpdateReq.ValidateAll() if the designated constraints aren't met.

func (UpdateReqMultiError) AllErrors

func (m UpdateReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateReqMultiError) Error

func (m UpdateReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UpdateReqValidationError

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

UpdateReqValidationError is the validation error returned by UpdateReq.Validate if the designated constraints aren't met.

func (UpdateReqValidationError) Cause

func (e UpdateReqValidationError) Cause() error

Cause function returns cause value.

func (UpdateReqValidationError) Error

func (e UpdateReqValidationError) Error() string

Error satisfies the builtin error interface

func (UpdateReqValidationError) ErrorName

func (e UpdateReqValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateReqValidationError) Field

func (e UpdateReqValidationError) Field() string

Field function returns field value.

func (UpdateReqValidationError) Key

Key function returns key value.

func (UpdateReqValidationError) Reason

func (e UpdateReqValidationError) Reason() string

Reason function returns reason value.

type UpdateRes

type UpdateRes struct {
	Gift *GiftItem `protobuf:"bytes,1,opt,name=gift,proto3" json:"gift"`
	// contains filtered or unexported fields
}

func (*UpdateRes) Descriptor deprecated

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

Deprecated: Use UpdateRes.ProtoReflect.Descriptor instead.

func (*UpdateRes) GetGift

func (x *UpdateRes) GetGift() *GiftItem

func (*UpdateRes) ProtoMessage

func (*UpdateRes) ProtoMessage()

func (*UpdateRes) ProtoReflect

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

func (*UpdateRes) Reset

func (x *UpdateRes) Reset()

func (*UpdateRes) String

func (x *UpdateRes) String() string

func (*UpdateRes) Validate

func (m *UpdateRes) Validate() error

Validate checks the field values on UpdateRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateRes) ValidateAll

func (m *UpdateRes) ValidateAll() error

ValidateAll checks the field values on UpdateRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateResMultiError, or nil if none found.

type UpdateResMultiError

type UpdateResMultiError []error

UpdateResMultiError is an error wrapping multiple validation errors returned by UpdateRes.ValidateAll() if the designated constraints aren't met.

func (UpdateResMultiError) AllErrors

func (m UpdateResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateResMultiError) Error

func (m UpdateResMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UpdateResValidationError

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

UpdateResValidationError is the validation error returned by UpdateRes.Validate if the designated constraints aren't met.

func (UpdateResValidationError) Cause

func (e UpdateResValidationError) Cause() error

Cause function returns cause value.

func (UpdateResValidationError) Error

func (e UpdateResValidationError) Error() string

Error satisfies the builtin error interface

func (UpdateResValidationError) ErrorName

func (e UpdateResValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateResValidationError) Field

func (e UpdateResValidationError) Field() string

Field function returns field value.

func (UpdateResValidationError) Key

Key function returns key value.

func (UpdateResValidationError) Reason

func (e UpdateResValidationError) Reason() string

Reason function returns reason value.

type UpdateSortNumberReq

type UpdateSortNumberReq struct {
	Id         int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`                                    // 主键
	SortNumber int64 `protobuf:"varint,12,opt,name=sort_number,json=sortNumber,proto3" json:"sort_number"` // 排序值,越大越靠前,默认999
	// contains filtered or unexported fields
}

func (*UpdateSortNumberReq) Descriptor deprecated

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

Deprecated: Use UpdateSortNumberReq.ProtoReflect.Descriptor instead.

func (*UpdateSortNumberReq) GetId

func (x *UpdateSortNumberReq) GetId() int64

func (*UpdateSortNumberReq) GetSortNumber

func (x *UpdateSortNumberReq) GetSortNumber() int64

func (*UpdateSortNumberReq) ProtoMessage

func (*UpdateSortNumberReq) ProtoMessage()

func (*UpdateSortNumberReq) ProtoReflect

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

func (*UpdateSortNumberReq) Reset

func (x *UpdateSortNumberReq) Reset()

func (*UpdateSortNumberReq) String

func (x *UpdateSortNumberReq) String() string

func (*UpdateSortNumberReq) Validate

func (m *UpdateSortNumberReq) Validate() error

Validate checks the field values on UpdateSortNumberReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateSortNumberReq) ValidateAll

func (m *UpdateSortNumberReq) ValidateAll() error

ValidateAll checks the field values on UpdateSortNumberReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateSortNumberReqMultiError, or nil if none found.

type UpdateSortNumberReqMultiError

type UpdateSortNumberReqMultiError []error

UpdateSortNumberReqMultiError is an error wrapping multiple validation errors returned by UpdateSortNumberReq.ValidateAll() if the designated constraints aren't met.

func (UpdateSortNumberReqMultiError) AllErrors

func (m UpdateSortNumberReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateSortNumberReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateSortNumberReqValidationError

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

UpdateSortNumberReqValidationError is the validation error returned by UpdateSortNumberReq.Validate if the designated constraints aren't met.

func (UpdateSortNumberReqValidationError) Cause

Cause function returns cause value.

func (UpdateSortNumberReqValidationError) Error

Error satisfies the builtin error interface

func (UpdateSortNumberReqValidationError) ErrorName

ErrorName returns error name.

func (UpdateSortNumberReqValidationError) Field

Field function returns field value.

func (UpdateSortNumberReqValidationError) Key

Key function returns key value.

func (UpdateSortNumberReqValidationError) Reason

Reason function returns reason value.

type UpdateSortNumberRes

type UpdateSortNumberRes struct {
	Id         int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`                                    // 主键
	SortNumber int64 `protobuf:"varint,12,opt,name=sort_number,json=sortNumber,proto3" json:"sort_number"` // 排序值,越大越靠前,默认999
	// contains filtered or unexported fields
}

func (*UpdateSortNumberRes) Descriptor deprecated

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

Deprecated: Use UpdateSortNumberRes.ProtoReflect.Descriptor instead.

func (*UpdateSortNumberRes) GetId

func (x *UpdateSortNumberRes) GetId() int64

func (*UpdateSortNumberRes) GetSortNumber

func (x *UpdateSortNumberRes) GetSortNumber() int64

func (*UpdateSortNumberRes) ProtoMessage

func (*UpdateSortNumberRes) ProtoMessage()

func (*UpdateSortNumberRes) ProtoReflect

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

func (*UpdateSortNumberRes) Reset

func (x *UpdateSortNumberRes) Reset()

func (*UpdateSortNumberRes) String

func (x *UpdateSortNumberRes) String() string

func (*UpdateSortNumberRes) Validate

func (m *UpdateSortNumberRes) Validate() error

Validate checks the field values on UpdateSortNumberRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateSortNumberRes) ValidateAll

func (m *UpdateSortNumberRes) ValidateAll() error

ValidateAll checks the field values on UpdateSortNumberRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateSortNumberResMultiError, or nil if none found.

type UpdateSortNumberResMultiError

type UpdateSortNumberResMultiError []error

UpdateSortNumberResMultiError is an error wrapping multiple validation errors returned by UpdateSortNumberRes.ValidateAll() if the designated constraints aren't met.

func (UpdateSortNumberResMultiError) AllErrors

func (m UpdateSortNumberResMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateSortNumberResMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateSortNumberResValidationError

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

UpdateSortNumberResValidationError is the validation error returned by UpdateSortNumberRes.Validate if the designated constraints aren't met.

func (UpdateSortNumberResValidationError) Cause

Cause function returns cause value.

func (UpdateSortNumberResValidationError) Error

Error satisfies the builtin error interface

func (UpdateSortNumberResValidationError) ErrorName

ErrorName returns error name.

func (UpdateSortNumberResValidationError) Field

Field function returns field value.

func (UpdateSortNumberResValidationError) Key

Key function returns key value.

func (UpdateSortNumberResValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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