Documentation ¶
Index ¶
- Constants
- Variables
- func FetchResourceTypes(typeStr string) (types []string, err error)
- func GetFileTypeName(i int32) string
- func GetZipUrl(url string) (zipUrl string)
- func NewGiftEndpoints() []*api.Endpoint
- func RegisterGiftHandler(s server.Server, hdlr GiftHandler, opts ...server.HandlerOption) error
- type CreateReq
- func (*CreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReq) GetCountry() string
- func (x *CreateReq) GetExp() int64
- func (x *CreateReq) GetGiftClass() int64
- func (x *CreateReq) GetGiftName() string
- func (x *CreateReq) GetMark() int32
- func (x *CreateReq) GetPoolId() int64
- func (x *CreateReq) GetPrice() int64
- func (x *CreateReq) GetScene() int32
- func (x *CreateReq) GetSortNumber() int64
- func (x *CreateReq) GetStatus() int32
- func (x *CreateReq) GetType() int32
- func (*CreateReq) ProtoMessage()
- func (x *CreateReq) ProtoReflect() protoreflect.Message
- func (x *CreateReq) Reset()
- func (x *CreateReq) String() string
- func (m *CreateReq) Validate() error
- func (m *CreateReq) ValidateAll() error
- type CreateReqMultiError
- type CreateReqValidationError
- type CreateRes
- func (*CreateRes) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRes) GetGift() *GiftItem
- func (*CreateRes) ProtoMessage()
- func (x *CreateRes) ProtoReflect() protoreflect.Message
- func (x *CreateRes) Reset()
- func (x *CreateRes) String() string
- func (m *CreateRes) Validate() error
- func (m *CreateRes) ValidateAll() error
- type CreateResMultiError
- type CreateResValidationError
- type DeleteReq
- func (*DeleteReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteReq) GetId() int64
- func (*DeleteReq) ProtoMessage()
- func (x *DeleteReq) ProtoReflect() protoreflect.Message
- func (x *DeleteReq) Reset()
- func (x *DeleteReq) String() string
- func (m *DeleteReq) Validate() error
- func (m *DeleteReq) ValidateAll() error
- type DeleteReqMultiError
- type DeleteReqValidationError
- type DeleteRes
- type DeleteResMultiError
- type DeleteResValidationError
- type GetByIdReq
- func (*GetByIdReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetByIdReq) GetId() int64
- func (*GetByIdReq) ProtoMessage()
- func (x *GetByIdReq) ProtoReflect() protoreflect.Message
- func (x *GetByIdReq) Reset()
- func (x *GetByIdReq) String() string
- func (m *GetByIdReq) Validate() error
- func (m *GetByIdReq) ValidateAll() error
- type GetByIdReqMultiError
- type GetByIdReqValidationError
- type GetByIdRes
- func (*GetByIdRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetByIdRes) GetGift() *GiftItem
- func (*GetByIdRes) ProtoMessage()
- func (x *GetByIdRes) ProtoReflect() protoreflect.Message
- func (x *GetByIdRes) Reset()
- func (x *GetByIdRes) String() string
- func (m *GetByIdRes) Validate() error
- func (m *GetByIdRes) ValidateAll() error
- type GetByIdResMultiError
- type GetByIdResValidationError
- type GiftClass
- type GiftClassMap
- type GiftHandler
- type GiftItem
- func (*GiftItem) Descriptor() ([]byte, []int)deprecated
- func (x *GiftItem) GetCountry() string
- func (x *GiftItem) GetExp() int64
- func (x *GiftItem) GetFileKey() string
- func (x *GiftItem) GetFileTypeName() string
- func (x *GiftItem) GetGiftClass() int64
- func (x *GiftItem) GetGiftFile() string
- func (x *GiftItem) GetGiftFileType() int32
- func (x *GiftItem) GetGiftFileZip() string
- func (x *GiftItem) GetGiftName() string
- func (x *GiftItem) GetId() int64
- func (x *GiftItem) GetLevel() int32
- func (x *GiftItem) GetMark() int32
- func (x *GiftItem) GetPoolId() int64
- func (x *GiftItem) GetPrice() int64
- func (x *GiftItem) GetResource(types []string) (url string)
- func (x *GiftItem) GetResourceUpdatedAt() string
- func (x *GiftItem) GetResources() (urls []string)
- func (x *GiftItem) GetScene() int32
- func (x *GiftItem) GetSortNumber() int64
- func (x *GiftItem) GetStatus() int32
- func (x *GiftItem) GetThumbnail() string
- func (x *GiftItem) GetType() int32
- func (x *GiftItem) GetVideoMp4() string
- func (x *GiftItem) GetVideoPag() string
- func (*GiftItem) ProtoMessage()
- func (x *GiftItem) ProtoReflect() protoreflect.Message
- func (x *GiftItem) Reset()
- func (x *GiftItem) String() string
- func (m *GiftItem) Validate() error
- func (m *GiftItem) ValidateAll() error
- type GiftItemMultiError
- type GiftItemValidationError
- type GiftPanelReq
- func (*GiftPanelReq) Descriptor() ([]byte, []int)deprecated
- func (x *GiftPanelReq) GetReceiverId() int64
- func (x *GiftPanelReq) GetResourceType() string
- func (x *GiftPanelReq) GetScene() int32
- func (x *GiftPanelReq) GetSenderId() int64
- func (*GiftPanelReq) ProtoMessage()
- func (x *GiftPanelReq) ProtoReflect() protoreflect.Message
- func (x *GiftPanelReq) Reset()
- func (x *GiftPanelReq) String() string
- func (m *GiftPanelReq) Validate() error
- func (m *GiftPanelReq) ValidateAll() error
- type GiftPanelReqMultiError
- type GiftPanelReqValidationError
- func (e GiftPanelReqValidationError) Cause() error
- func (e GiftPanelReqValidationError) Error() string
- func (e GiftPanelReqValidationError) ErrorName() string
- func (e GiftPanelReqValidationError) Field() string
- func (e GiftPanelReqValidationError) Key() bool
- func (e GiftPanelReqValidationError) Reason() string
- type GiftPanelRes
- func (*GiftPanelRes) Descriptor() ([]byte, []int)deprecated
- func (x *GiftPanelRes) GetBeanBalance() int64
- func (x *GiftPanelRes) GetGiftClassList() []*GiftPanelRes_ClassItem
- func (*GiftPanelRes) ProtoMessage()
- func (x *GiftPanelRes) ProtoReflect() protoreflect.Message
- func (x *GiftPanelRes) Reset()
- func (x *GiftPanelRes) String() string
- func (m *GiftPanelRes) Validate() error
- func (m *GiftPanelRes) ValidateAll() error
- type GiftPanelResMultiError
- type GiftPanelResValidationError
- func (e GiftPanelResValidationError) Cause() error
- func (e GiftPanelResValidationError) Error() string
- func (e GiftPanelResValidationError) ErrorName() string
- func (e GiftPanelResValidationError) Field() string
- func (e GiftPanelResValidationError) Key() bool
- func (e GiftPanelResValidationError) Reason() string
- type GiftPanelRes_ClassItem
- func (*GiftPanelRes_ClassItem) Descriptor() ([]byte, []int)deprecated
- func (x *GiftPanelRes_ClassItem) GetClassId() int64
- func (x *GiftPanelRes_ClassItem) GetClassName() string
- func (x *GiftPanelRes_ClassItem) GetGiftList() []*GiftPanelRes_PanelItem
- func (*GiftPanelRes_ClassItem) ProtoMessage()
- func (x *GiftPanelRes_ClassItem) ProtoReflect() protoreflect.Message
- func (x *GiftPanelRes_ClassItem) Reset()
- func (x *GiftPanelRes_ClassItem) String() string
- func (m *GiftPanelRes_ClassItem) Validate() error
- func (m *GiftPanelRes_ClassItem) ValidateAll() error
- type GiftPanelRes_ClassItemMultiError
- type GiftPanelRes_ClassItemValidationError
- func (e GiftPanelRes_ClassItemValidationError) Cause() error
- func (e GiftPanelRes_ClassItemValidationError) Error() string
- func (e GiftPanelRes_ClassItemValidationError) ErrorName() string
- func (e GiftPanelRes_ClassItemValidationError) Field() string
- func (e GiftPanelRes_ClassItemValidationError) Key() bool
- func (e GiftPanelRes_ClassItemValidationError) Reason() string
- type GiftPanelRes_PanelItem
- func (*GiftPanelRes_PanelItem) Descriptor() ([]byte, []int)deprecated
- func (x *GiftPanelRes_PanelItem) GetGiftFileKey() string
- func (x *GiftPanelRes_PanelItem) GetGiftFileType() string
- func (x *GiftPanelRes_PanelItem) GetGiftFileZip() string
- func (x *GiftPanelRes_PanelItem) GetGiftId() int64
- func (x *GiftPanelRes_PanelItem) GetGiftName() string
- func (x *GiftPanelRes_PanelItem) GetLevel() int32
- func (x *GiftPanelRes_PanelItem) GetMark() []int32
- func (x *GiftPanelRes_PanelItem) GetPackCount() int64
- func (x *GiftPanelRes_PanelItem) GetPrice() int64
- func (x *GiftPanelRes_PanelItem) GetResource() string
- func (x *GiftPanelRes_PanelItem) GetThumbnail() string
- func (x *GiftPanelRes_PanelItem) GetType() int32
- func (*GiftPanelRes_PanelItem) ProtoMessage()
- func (x *GiftPanelRes_PanelItem) ProtoReflect() protoreflect.Message
- func (x *GiftPanelRes_PanelItem) Reset()
- func (x *GiftPanelRes_PanelItem) String() string
- func (m *GiftPanelRes_PanelItem) Validate() error
- func (m *GiftPanelRes_PanelItem) ValidateAll() error
- type GiftPanelRes_PanelItemMultiError
- type GiftPanelRes_PanelItemValidationError
- func (e GiftPanelRes_PanelItemValidationError) Cause() error
- func (e GiftPanelRes_PanelItemValidationError) Error() string
- func (e GiftPanelRes_PanelItemValidationError) ErrorName() string
- func (e GiftPanelRes_PanelItemValidationError) Field() string
- func (e GiftPanelRes_PanelItemValidationError) Key() bool
- func (e GiftPanelRes_PanelItemValidationError) Reason() string
- type GiftService
- type MessageOfEventGiftChange
- type MessageSendGift
- type RefreshResourceReq
- func (*RefreshResourceReq) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshResourceReq) GetPoolId() int64
- func (*RefreshResourceReq) ProtoMessage()
- func (x *RefreshResourceReq) ProtoReflect() protoreflect.Message
- func (x *RefreshResourceReq) Reset()
- func (x *RefreshResourceReq) String() string
- func (m *RefreshResourceReq) Validate() error
- func (m *RefreshResourceReq) ValidateAll() error
- type RefreshResourceReqMultiError
- type RefreshResourceReqValidationError
- func (e RefreshResourceReqValidationError) Cause() error
- func (e RefreshResourceReqValidationError) Error() string
- func (e RefreshResourceReqValidationError) ErrorName() string
- func (e RefreshResourceReqValidationError) Field() string
- func (e RefreshResourceReqValidationError) Key() bool
- func (e RefreshResourceReqValidationError) Reason() string
- type RefreshResourceRes
- func (*RefreshResourceRes) Descriptor() ([]byte, []int)deprecated
- func (*RefreshResourceRes) ProtoMessage()
- func (x *RefreshResourceRes) ProtoReflect() protoreflect.Message
- func (x *RefreshResourceRes) Reset()
- func (x *RefreshResourceRes) String() string
- func (m *RefreshResourceRes) Validate() error
- func (m *RefreshResourceRes) ValidateAll() error
- type RefreshResourceResMultiError
- type RefreshResourceResValidationError
- func (e RefreshResourceResValidationError) Cause() error
- func (e RefreshResourceResValidationError) Error() string
- func (e RefreshResourceResValidationError) ErrorName() string
- func (e RefreshResourceResValidationError) Field() string
- func (e RefreshResourceResValidationError) Key() bool
- func (e RefreshResourceResValidationError) Reason() string
- type ResourcesReq
- func (*ResourcesReq) Descriptor() ([]byte, []int)deprecated
- func (x *ResourcesReq) GetResourceType() string
- func (x *ResourcesReq) GetTime() string
- func (*ResourcesReq) ProtoMessage()
- func (x *ResourcesReq) ProtoReflect() protoreflect.Message
- func (x *ResourcesReq) Reset()
- func (x *ResourcesReq) String() string
- func (m *ResourcesReq) Validate() error
- func (m *ResourcesReq) ValidateAll() error
- type ResourcesReqMultiError
- type ResourcesReqValidationError
- func (e ResourcesReqValidationError) Cause() error
- func (e ResourcesReqValidationError) Error() string
- func (e ResourcesReqValidationError) ErrorName() string
- func (e ResourcesReqValidationError) Field() string
- func (e ResourcesReqValidationError) Key() bool
- func (e ResourcesReqValidationError) Reason() string
- type ResourcesRes
- func (*ResourcesRes) Descriptor() ([]byte, []int)deprecated
- func (x *ResourcesRes) GetDownloadUrl() []string
- func (*ResourcesRes) ProtoMessage()
- func (x *ResourcesRes) ProtoReflect() protoreflect.Message
- func (x *ResourcesRes) Reset()
- func (x *ResourcesRes) String() string
- func (m *ResourcesRes) Validate() error
- func (m *ResourcesRes) ValidateAll() error
- type ResourcesResMultiError
- type ResourcesResValidationError
- func (e ResourcesResValidationError) Cause() error
- func (e ResourcesResValidationError) Error() string
- func (e ResourcesResValidationError) ErrorName() string
- func (e ResourcesResValidationError) Field() string
- func (e ResourcesResValidationError) Key() bool
- func (e ResourcesResValidationError) Reason() string
- type SendGiftReq
- func (*SendGiftReq) Descriptor() ([]byte, []int)deprecated
- func (x *SendGiftReq) GetCount() int64
- func (x *SendGiftReq) GetGiftId() int64
- func (x *SendGiftReq) GetGroupId() int64
- func (x *SendGiftReq) GetLiveId() int64
- func (x *SendGiftReq) GetReceiverId() int64
- func (x *SendGiftReq) GetScene() int32
- func (x *SendGiftReq) GetSenderId() int64
- func (*SendGiftReq) ProtoMessage()
- func (x *SendGiftReq) ProtoReflect() protoreflect.Message
- func (x *SendGiftReq) Reset()
- func (x *SendGiftReq) String() string
- func (m *SendGiftReq) Validate() error
- func (m *SendGiftReq) ValidateAll() error
- type SendGiftReqMultiError
- type SendGiftReqValidationError
- func (e SendGiftReqValidationError) Cause() error
- func (e SendGiftReqValidationError) Error() string
- func (e SendGiftReqValidationError) ErrorName() string
- func (e SendGiftReqValidationError) Field() string
- func (e SendGiftReqValidationError) Key() bool
- func (e SendGiftReqValidationError) Reason() string
- type SendGiftRes
- func (*SendGiftRes) Descriptor() ([]byte, []int)deprecated
- func (x *SendGiftRes) GetBalanceAmount() int64
- func (x *SendGiftRes) GetBalanceType() int32
- func (x *SendGiftRes) GetGiftCount() int64
- func (x *SendGiftRes) GetGiftId() int64
- func (x *SendGiftRes) GetPackCount() int64
- func (*SendGiftRes) ProtoMessage()
- func (x *SendGiftRes) ProtoReflect() protoreflect.Message
- func (x *SendGiftRes) Reset()
- func (x *SendGiftRes) String() string
- func (m *SendGiftRes) Validate() error
- func (m *SendGiftRes) ValidateAll() error
- type SendGiftResMultiError
- type SendGiftResValidationError
- func (e SendGiftResValidationError) Cause() error
- func (e SendGiftResValidationError) Error() string
- func (e SendGiftResValidationError) ErrorName() string
- func (e SendGiftResValidationError) Field() string
- func (e SendGiftResValidationError) Key() bool
- func (e SendGiftResValidationError) Reason() string
- type SwitchStatusReq
- func (*SwitchStatusReq) Descriptor() ([]byte, []int)deprecated
- func (x *SwitchStatusReq) GetId() int64
- func (x *SwitchStatusReq) GetStatus() int32
- func (*SwitchStatusReq) ProtoMessage()
- func (x *SwitchStatusReq) ProtoReflect() protoreflect.Message
- func (x *SwitchStatusReq) Reset()
- func (x *SwitchStatusReq) String() string
- func (m *SwitchStatusReq) Validate() error
- func (m *SwitchStatusReq) ValidateAll() error
- type SwitchStatusReqMultiError
- type SwitchStatusReqValidationError
- func (e SwitchStatusReqValidationError) Cause() error
- func (e SwitchStatusReqValidationError) Error() string
- func (e SwitchStatusReqValidationError) ErrorName() string
- func (e SwitchStatusReqValidationError) Field() string
- func (e SwitchStatusReqValidationError) Key() bool
- func (e SwitchStatusReqValidationError) Reason() string
- type SwitchStatusRes
- func (*SwitchStatusRes) Descriptor() ([]byte, []int)deprecated
- func (x *SwitchStatusRes) GetId() int64
- func (x *SwitchStatusRes) GetStatus() int32
- func (*SwitchStatusRes) ProtoMessage()
- func (x *SwitchStatusRes) ProtoReflect() protoreflect.Message
- func (x *SwitchStatusRes) Reset()
- func (x *SwitchStatusRes) String() string
- func (m *SwitchStatusRes) Validate() error
- func (m *SwitchStatusRes) ValidateAll() error
- type SwitchStatusResMultiError
- type SwitchStatusResValidationError
- func (e SwitchStatusResValidationError) Cause() error
- func (e SwitchStatusResValidationError) Error() string
- func (e SwitchStatusResValidationError) ErrorName() string
- func (e SwitchStatusResValidationError) Field() string
- func (e SwitchStatusResValidationError) Key() bool
- func (e SwitchStatusResValidationError) Reason() string
- type UpdateReq
- func (*UpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateReq) GetCountry() string
- func (x *UpdateReq) GetExp() int64
- func (x *UpdateReq) GetGiftClass() int64
- func (x *UpdateReq) GetGiftName() string
- func (x *UpdateReq) GetId() int64
- func (x *UpdateReq) GetMark() int32
- func (x *UpdateReq) GetPoolId() int64
- func (x *UpdateReq) GetPrice() int64
- func (x *UpdateReq) GetScene() int32
- func (x *UpdateReq) GetSortNumber() int64
- func (x *UpdateReq) GetStatus() int32
- func (x *UpdateReq) GetType() int32
- func (*UpdateReq) ProtoMessage()
- func (x *UpdateReq) ProtoReflect() protoreflect.Message
- func (x *UpdateReq) Reset()
- func (x *UpdateReq) String() string
- func (m *UpdateReq) Validate() error
- func (m *UpdateReq) ValidateAll() error
- type UpdateReqMultiError
- type UpdateReqValidationError
- type UpdateRes
- func (*UpdateRes) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRes) GetGift() *GiftItem
- func (*UpdateRes) ProtoMessage()
- func (x *UpdateRes) ProtoReflect() protoreflect.Message
- func (x *UpdateRes) Reset()
- func (x *UpdateRes) String() string
- func (m *UpdateRes) Validate() error
- func (m *UpdateRes) ValidateAll() error
- type UpdateResMultiError
- type UpdateResValidationError
- type UpdateSortNumberReq
- func (*UpdateSortNumberReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSortNumberReq) GetId() int64
- func (x *UpdateSortNumberReq) GetSortNumber() int64
- func (*UpdateSortNumberReq) ProtoMessage()
- func (x *UpdateSortNumberReq) ProtoReflect() protoreflect.Message
- func (x *UpdateSortNumberReq) Reset()
- func (x *UpdateSortNumberReq) String() string
- func (m *UpdateSortNumberReq) Validate() error
- func (m *UpdateSortNumberReq) ValidateAll() error
- type UpdateSortNumberReqMultiError
- type UpdateSortNumberReqValidationError
- func (e UpdateSortNumberReqValidationError) Cause() error
- func (e UpdateSortNumberReqValidationError) Error() string
- func (e UpdateSortNumberReqValidationError) ErrorName() string
- func (e UpdateSortNumberReqValidationError) Field() string
- func (e UpdateSortNumberReqValidationError) Key() bool
- func (e UpdateSortNumberReqValidationError) Reason() string
- type UpdateSortNumberRes
- func (*UpdateSortNumberRes) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSortNumberRes) GetId() int64
- func (x *UpdateSortNumberRes) GetSortNumber() int64
- func (*UpdateSortNumberRes) ProtoMessage()
- func (x *UpdateSortNumberRes) ProtoReflect() protoreflect.Message
- func (x *UpdateSortNumberRes) Reset()
- func (x *UpdateSortNumberRes) String() string
- func (m *UpdateSortNumberRes) Validate() error
- func (m *UpdateSortNumberRes) ValidateAll() error
- type UpdateSortNumberResMultiError
- type UpdateSortNumberResValidationError
- func (e UpdateSortNumberResValidationError) Cause() error
- func (e UpdateSortNumberResValidationError) Error() string
- func (e UpdateSortNumberResValidationError) ErrorName() string
- func (e UpdateSortNumberResValidationError) Field() string
- func (e UpdateSortNumberResValidationError) Key() bool
- func (e UpdateSortNumberResValidationError) Reason() string
Constants ¶
const ( GiftSceneLive = 1 GiftSceneIm = 2 GiftTypeBean = 1 GiftLevelJunior = 1 GiftLevelSenior = 2 GiftStatusInUse = 1 GiftStatusNotInUse = 2 TopicSendGift = "event.gift.send" TopicGiftChange = "event.gift.change" )
Variables ¶
var File_proto_gift_gift_proto protoreflect.FileDescriptor
Functions ¶
func FetchResourceTypes ¶
FetchResourceTypes ["pag","mp4"]/["pag"]/["mp4"]...
func GetFileTypeName ¶
func NewGiftEndpoints ¶
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) GetCountry ¶
func (*CreateReq) GetGiftClass ¶
func (*CreateReq) GetGiftName ¶
func (*CreateReq) GetSortNumber ¶
func (*CreateReq) ProtoMessage ¶
func (*CreateReq) ProtoMessage()
func (*CreateReq) ProtoReflect ¶
func (x *CreateReq) ProtoReflect() protoreflect.Message
func (*CreateReq) Validate ¶
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 ¶
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 ¶
func (e CreateReqValidationError) Key() bool
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) ProtoMessage ¶
func (*CreateRes) ProtoMessage()
func (*CreateRes) ProtoReflect ¶
func (x *CreateRes) ProtoReflect() protoreflect.Message
func (*CreateRes) Validate ¶
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 ¶
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 ¶
func (e CreateResValidationError) Key() bool
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) ProtoMessage ¶
func (*DeleteReq) ProtoMessage()
func (*DeleteReq) ProtoReflect ¶
func (x *DeleteReq) ProtoReflect() protoreflect.Message
func (*DeleteReq) Validate ¶
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 ¶
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 ¶
func (e DeleteReqValidationError) Key() bool
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) ProtoMessage ¶
func (*DeleteRes) ProtoMessage()
func (*DeleteRes) ProtoReflect ¶
func (x *DeleteRes) ProtoReflect() protoreflect.Message
func (*DeleteRes) Validate ¶
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 ¶
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 ¶
func (e DeleteResValidationError) Key() bool
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 ¶
func (e GetByIdReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetByIdReqValidationError) ErrorName ¶
func (e GetByIdReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetByIdReqValidationError) Field ¶
func (e GetByIdReqValidationError) Field() string
Field function returns field value.
func (GetByIdReqValidationError) Key ¶
func (e GetByIdReqValidationError) Key() bool
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 ¶
func (e GetByIdResValidationError) Error() string
Error satisfies the builtin error interface
func (GetByIdResValidationError) ErrorName ¶
func (e GetByIdResValidationError) ErrorName() string
ErrorName returns error name.
func (GetByIdResValidationError) Field ¶
func (e GetByIdResValidationError) Field() string
Field function returns field value.
func (GetByIdResValidationError) Key ¶
func (e GetByIdResValidationError) Key() bool
Key function returns key value.
func (GetByIdResValidationError) Reason ¶
func (e GetByIdResValidationError) Reason() string
Reason function returns reason value.
type GiftClass ¶
func GetGiftClassList ¶
type GiftClassMap ¶
func GetGiftClassMap ¶
func GetGiftClassMap() (mp GiftClassMap)
type GiftHandler ¶
type GiftHandler interface { Create(context.Context, *CreateReq, *CreateRes) error Update(context.Context, *UpdateReq, *UpdateRes) error Delete(context.Context, *DeleteReq, *DeleteRes) error UpdateSortNumber(context.Context, *UpdateSortNumberReq, *UpdateSortNumberRes) error SwitchStatus(context.Context, *SwitchStatusReq, *SwitchStatusRes) error GiftPanel(context.Context, *GiftPanelReq, *GiftPanelRes) error GetById(context.Context, *GetByIdReq, *GetByIdRes) error Resources(context.Context, *ResourcesReq, *ResourcesRes) error SendGift(context.Context, *SendGiftReq, *SendGiftRes) error RefreshResource(context.Context, *RefreshResourceReq, *RefreshResourceRes) error }
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) GetCountry ¶
func (*GiftItem) GetFileKey ¶
func (*GiftItem) GetFileTypeName ¶
func (*GiftItem) GetGiftClass ¶
func (*GiftItem) GetGiftFile ¶
func (*GiftItem) GetGiftFileType ¶
func (*GiftItem) GetGiftFileZip ¶
func (*GiftItem) GetGiftName ¶
func (*GiftItem) GetResource ¶
func (*GiftItem) GetResourceUpdatedAt ¶
func (*GiftItem) GetResources ¶
func (*GiftItem) GetSortNumber ¶
func (*GiftItem) GetThumbnail ¶
func (*GiftItem) GetVideoMp4 ¶
func (*GiftItem) GetVideoPag ¶
func (*GiftItem) ProtoMessage ¶
func (*GiftItem) ProtoMessage()
func (*GiftItem) ProtoReflect ¶
func (x *GiftItem) ProtoReflect() protoreflect.Message
func (*GiftItem) Validate ¶
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 ¶
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 ¶
func (e GiftPanelReqValidationError) Cause() error
Cause function returns cause value.
func (GiftPanelReqValidationError) Error ¶
func (e GiftPanelReqValidationError) Error() string
Error satisfies the builtin error interface
func (GiftPanelReqValidationError) ErrorName ¶
func (e GiftPanelReqValidationError) ErrorName() string
ErrorName returns error name.
func (GiftPanelReqValidationError) Field ¶
func (e GiftPanelReqValidationError) Field() string
Field function returns field value.
func (GiftPanelReqValidationError) Key ¶
func (e GiftPanelReqValidationError) Key() bool
Key function returns key value.
func (GiftPanelReqValidationError) Reason ¶
func (e GiftPanelReqValidationError) Reason() string
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 ¶
func (e GiftPanelResValidationError) Cause() error
Cause function returns cause value.
func (GiftPanelResValidationError) Error ¶
func (e GiftPanelResValidationError) Error() string
Error satisfies the builtin error interface
func (GiftPanelResValidationError) ErrorName ¶
func (e GiftPanelResValidationError) ErrorName() string
ErrorName returns error name.
func (GiftPanelResValidationError) Field ¶
func (e GiftPanelResValidationError) Field() string
Field function returns field value.
func (GiftPanelResValidationError) Key ¶
func (e GiftPanelResValidationError) Key() bool
Key function returns key value.
func (GiftPanelResValidationError) Reason ¶
func (e GiftPanelResValidationError) Reason() string
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 ¶
func (m GiftPanelRes_ClassItemMultiError) Error() string
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 ¶
func (e GiftPanelRes_ClassItemValidationError) Cause() error
Cause function returns cause value.
func (GiftPanelRes_ClassItemValidationError) Error ¶
func (e GiftPanelRes_ClassItemValidationError) Error() string
Error satisfies the builtin error interface
func (GiftPanelRes_ClassItemValidationError) ErrorName ¶
func (e GiftPanelRes_ClassItemValidationError) ErrorName() string
ErrorName returns error name.
func (GiftPanelRes_ClassItemValidationError) Field ¶
func (e GiftPanelRes_ClassItemValidationError) Field() string
Field function returns field value.
func (GiftPanelRes_ClassItemValidationError) Key ¶
func (e GiftPanelRes_ClassItemValidationError) Key() bool
Key function returns key value.
func (GiftPanelRes_ClassItemValidationError) Reason ¶
func (e GiftPanelRes_ClassItemValidationError) Reason() string
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 ¶
func (m GiftPanelRes_PanelItemMultiError) Error() string
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 ¶
func (e GiftPanelRes_PanelItemValidationError) Cause() error
Cause function returns cause value.
func (GiftPanelRes_PanelItemValidationError) Error ¶
func (e GiftPanelRes_PanelItemValidationError) Error() string
Error satisfies the builtin error interface
func (GiftPanelRes_PanelItemValidationError) ErrorName ¶
func (e GiftPanelRes_PanelItemValidationError) ErrorName() string
ErrorName returns error name.
func (GiftPanelRes_PanelItemValidationError) Field ¶
func (e GiftPanelRes_PanelItemValidationError) Field() string
Field function returns field value.
func (GiftPanelRes_PanelItemValidationError) Key ¶
func (e GiftPanelRes_PanelItemValidationError) Key() bool
Key function returns key value.
func (GiftPanelRes_PanelItemValidationError) Reason ¶
func (e GiftPanelRes_PanelItemValidationError) Reason() string
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 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 ¶
func (m RefreshResourceReqMultiError) Error() string
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 ¶
func (e RefreshResourceReqValidationError) Cause() error
Cause function returns cause value.
func (RefreshResourceReqValidationError) Error ¶
func (e RefreshResourceReqValidationError) Error() string
Error satisfies the builtin error interface
func (RefreshResourceReqValidationError) ErrorName ¶
func (e RefreshResourceReqValidationError) ErrorName() string
ErrorName returns error name.
func (RefreshResourceReqValidationError) Field ¶
func (e RefreshResourceReqValidationError) Field() string
Field function returns field value.
func (RefreshResourceReqValidationError) Key ¶
func (e RefreshResourceReqValidationError) Key() bool
Key function returns key value.
func (RefreshResourceReqValidationError) Reason ¶
func (e RefreshResourceReqValidationError) Reason() string
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 ¶
func (m RefreshResourceResMultiError) Error() string
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 ¶
func (e RefreshResourceResValidationError) Cause() error
Cause function returns cause value.
func (RefreshResourceResValidationError) Error ¶
func (e RefreshResourceResValidationError) Error() string
Error satisfies the builtin error interface
func (RefreshResourceResValidationError) ErrorName ¶
func (e RefreshResourceResValidationError) ErrorName() string
ErrorName returns error name.
func (RefreshResourceResValidationError) Field ¶
func (e RefreshResourceResValidationError) Field() string
Field function returns field value.
func (RefreshResourceResValidationError) Key ¶
func (e RefreshResourceResValidationError) Key() bool
Key function returns key value.
func (RefreshResourceResValidationError) Reason ¶
func (e RefreshResourceResValidationError) Reason() string
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 ¶
func (e ResourcesReqValidationError) Cause() error
Cause function returns cause value.
func (ResourcesReqValidationError) Error ¶
func (e ResourcesReqValidationError) Error() string
Error satisfies the builtin error interface
func (ResourcesReqValidationError) ErrorName ¶
func (e ResourcesReqValidationError) ErrorName() string
ErrorName returns error name.
func (ResourcesReqValidationError) Field ¶
func (e ResourcesReqValidationError) Field() string
Field function returns field value.
func (ResourcesReqValidationError) Key ¶
func (e ResourcesReqValidationError) Key() bool
Key function returns key value.
func (ResourcesReqValidationError) Reason ¶
func (e ResourcesReqValidationError) Reason() string
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 ¶
func (e ResourcesResValidationError) Cause() error
Cause function returns cause value.
func (ResourcesResValidationError) Error ¶
func (e ResourcesResValidationError) Error() string
Error satisfies the builtin error interface
func (ResourcesResValidationError) ErrorName ¶
func (e ResourcesResValidationError) ErrorName() string
ErrorName returns error name.
func (ResourcesResValidationError) Field ¶
func (e ResourcesResValidationError) Field() string
Field function returns field value.
func (ResourcesResValidationError) Key ¶
func (e ResourcesResValidationError) Key() bool
Key function returns key value.
func (ResourcesResValidationError) Reason ¶
func (e ResourcesResValidationError) Reason() string
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 ¶
func (e SendGiftReqValidationError) Cause() error
Cause function returns cause value.
func (SendGiftReqValidationError) Error ¶
func (e SendGiftReqValidationError) Error() string
Error satisfies the builtin error interface
func (SendGiftReqValidationError) ErrorName ¶
func (e SendGiftReqValidationError) ErrorName() string
ErrorName returns error name.
func (SendGiftReqValidationError) Field ¶
func (e SendGiftReqValidationError) Field() string
Field function returns field value.
func (SendGiftReqValidationError) Key ¶
func (e SendGiftReqValidationError) Key() bool
Key function returns key value.
func (SendGiftReqValidationError) Reason ¶
func (e SendGiftReqValidationError) Reason() string
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 ¶
func (e SendGiftResValidationError) Cause() error
Cause function returns cause value.
func (SendGiftResValidationError) Error ¶
func (e SendGiftResValidationError) Error() string
Error satisfies the builtin error interface
func (SendGiftResValidationError) ErrorName ¶
func (e SendGiftResValidationError) ErrorName() string
ErrorName returns error name.
func (SendGiftResValidationError) Field ¶
func (e SendGiftResValidationError) Field() string
Field function returns field value.
func (SendGiftResValidationError) Key ¶
func (e SendGiftResValidationError) Key() bool
Key function returns key value.
func (SendGiftResValidationError) Reason ¶
func (e SendGiftResValidationError) Reason() string
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 ¶
func (m SwitchStatusReqMultiError) Error() string
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 ¶
func (e SwitchStatusReqValidationError) Cause() error
Cause function returns cause value.
func (SwitchStatusReqValidationError) Error ¶
func (e SwitchStatusReqValidationError) Error() string
Error satisfies the builtin error interface
func (SwitchStatusReqValidationError) ErrorName ¶
func (e SwitchStatusReqValidationError) ErrorName() string
ErrorName returns error name.
func (SwitchStatusReqValidationError) Field ¶
func (e SwitchStatusReqValidationError) Field() string
Field function returns field value.
func (SwitchStatusReqValidationError) Key ¶
func (e SwitchStatusReqValidationError) Key() bool
Key function returns key value.
func (SwitchStatusReqValidationError) Reason ¶
func (e SwitchStatusReqValidationError) Reason() string
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 ¶
func (m SwitchStatusResMultiError) Error() string
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 ¶
func (e SwitchStatusResValidationError) Cause() error
Cause function returns cause value.
func (SwitchStatusResValidationError) Error ¶
func (e SwitchStatusResValidationError) Error() string
Error satisfies the builtin error interface
func (SwitchStatusResValidationError) ErrorName ¶
func (e SwitchStatusResValidationError) ErrorName() string
ErrorName returns error name.
func (SwitchStatusResValidationError) Field ¶
func (e SwitchStatusResValidationError) Field() string
Field function returns field value.
func (SwitchStatusResValidationError) Key ¶
func (e SwitchStatusResValidationError) Key() bool
Key function returns key value.
func (SwitchStatusResValidationError) Reason ¶
func (e SwitchStatusResValidationError) Reason() string
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) GetCountry ¶
func (*UpdateReq) GetGiftClass ¶
func (*UpdateReq) GetGiftName ¶
func (*UpdateReq) GetSortNumber ¶
func (*UpdateReq) ProtoMessage ¶
func (*UpdateReq) ProtoMessage()
func (*UpdateReq) ProtoReflect ¶
func (x *UpdateReq) ProtoReflect() protoreflect.Message
func (*UpdateReq) Validate ¶
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 ¶
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 ¶
func (e UpdateReqValidationError) Key() bool
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) ProtoMessage ¶
func (*UpdateRes) ProtoMessage()
func (*UpdateRes) ProtoReflect ¶
func (x *UpdateRes) ProtoReflect() protoreflect.Message
func (*UpdateRes) Validate ¶
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 ¶
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 ¶
func (e UpdateResValidationError) Key() bool
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 ¶
func (m UpdateSortNumberReqMultiError) Error() string
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 ¶
func (e UpdateSortNumberReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateSortNumberReqValidationError) Error ¶
func (e UpdateSortNumberReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateSortNumberReqValidationError) ErrorName ¶
func (e UpdateSortNumberReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateSortNumberReqValidationError) Field ¶
func (e UpdateSortNumberReqValidationError) Field() string
Field function returns field value.
func (UpdateSortNumberReqValidationError) Key ¶
func (e UpdateSortNumberReqValidationError) Key() bool
Key function returns key value.
func (UpdateSortNumberReqValidationError) Reason ¶
func (e UpdateSortNumberReqValidationError) Reason() string
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 ¶
func (m UpdateSortNumberResMultiError) Error() string
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 ¶
func (e UpdateSortNumberResValidationError) Cause() error
Cause function returns cause value.
func (UpdateSortNumberResValidationError) Error ¶
func (e UpdateSortNumberResValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateSortNumberResValidationError) ErrorName ¶
func (e UpdateSortNumberResValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateSortNumberResValidationError) Field ¶
func (e UpdateSortNumberResValidationError) Field() string
Field function returns field value.
func (UpdateSortNumberResValidationError) Key ¶
func (e UpdateSortNumberResValidationError) Key() bool
Key function returns key value.
func (UpdateSortNumberResValidationError) Reason ¶
func (e UpdateSortNumberResValidationError) Reason() string
Reason function returns reason value.