Documentation ¶
Index ¶
- Variables
- func NewGiftPoolEndpoints() []*api.Endpoint
- func RegisterGiftPoolHandler(s server.Server, hdlr GiftPoolHandler, opts ...server.HandlerOption) error
- type AddGiftItemReq
- func (*AddGiftItemReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddGiftItemReq) GetItem() *GiftItem
- func (*AddGiftItemReq) ProtoMessage()
- func (x *AddGiftItemReq) ProtoReflect() protoreflect.Message
- func (x *AddGiftItemReq) Reset()
- func (x *AddGiftItemReq) String() string
- func (m *AddGiftItemReq) Validate() error
- func (m *AddGiftItemReq) ValidateAll() error
- type AddGiftItemReqMultiError
- type AddGiftItemReqValidationError
- func (e AddGiftItemReqValidationError) Cause() error
- func (e AddGiftItemReqValidationError) Error() string
- func (e AddGiftItemReqValidationError) ErrorName() string
- func (e AddGiftItemReqValidationError) Field() string
- func (e AddGiftItemReqValidationError) Key() bool
- func (e AddGiftItemReqValidationError) Reason() string
- type AddGiftItemRes
- func (*AddGiftItemRes) Descriptor() ([]byte, []int)deprecated
- func (x *AddGiftItemRes) GetItem() *GiftItem
- func (*AddGiftItemRes) ProtoMessage()
- func (x *AddGiftItemRes) ProtoReflect() protoreflect.Message
- func (x *AddGiftItemRes) Reset()
- func (x *AddGiftItemRes) String() string
- func (m *AddGiftItemRes) Validate() error
- func (m *AddGiftItemRes) ValidateAll() error
- type AddGiftItemResMultiError
- type AddGiftItemResValidationError
- func (e AddGiftItemResValidationError) Cause() error
- func (e AddGiftItemResValidationError) Error() string
- func (e AddGiftItemResValidationError) ErrorName() string
- func (e AddGiftItemResValidationError) Field() string
- func (e AddGiftItemResValidationError) Key() bool
- func (e AddGiftItemResValidationError) Reason() string
- type GiftItem
- func (*GiftItem) Descriptor() ([]byte, []int)deprecated
- func (x *GiftItem) GetCreatedAt() string
- func (x *GiftItem) GetId() int64
- func (x *GiftItem) GetLevel() int32
- func (x *GiftItem) GetName() string
- func (x *GiftItem) GetShowState() int32
- func (x *GiftItem) GetThumbnail() string
- func (x *GiftItem) GetUpdatedAt() string
- 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 GiftPoolHandler
- type GiftPoolService
- type ListGiftItemReq
- func (*ListGiftItemReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListGiftItemReq) GetId() int64
- func (x *ListGiftItemReq) GetName() string
- func (x *ListGiftItemReq) GetOrder() string
- func (x *ListGiftItemReq) GetPage() int64
- func (x *ListGiftItemReq) GetShowState() int32
- func (x *ListGiftItemReq) GetSize() int64
- func (x *ListGiftItemReq) GetSort() string
- func (*ListGiftItemReq) ProtoMessage()
- func (x *ListGiftItemReq) ProtoReflect() protoreflect.Message
- func (x *ListGiftItemReq) Reset()
- func (x *ListGiftItemReq) String() string
- func (m *ListGiftItemReq) Validate() error
- func (m *ListGiftItemReq) ValidateAll() error
- type ListGiftItemReqMultiError
- type ListGiftItemReqValidationError
- func (e ListGiftItemReqValidationError) Cause() error
- func (e ListGiftItemReqValidationError) Error() string
- func (e ListGiftItemReqValidationError) ErrorName() string
- func (e ListGiftItemReqValidationError) Field() string
- func (e ListGiftItemReqValidationError) Key() bool
- func (e ListGiftItemReqValidationError) Reason() string
- type ListGiftItemRes
- func (*ListGiftItemRes) Descriptor() ([]byte, []int)deprecated
- func (x *ListGiftItemRes) GetList() []*GiftItem
- func (x *ListGiftItemRes) GetPage() int64
- func (x *ListGiftItemRes) GetSize() int64
- func (x *ListGiftItemRes) GetTotal() int64
- func (*ListGiftItemRes) ProtoMessage()
- func (x *ListGiftItemRes) ProtoReflect() protoreflect.Message
- func (x *ListGiftItemRes) Reset()
- func (x *ListGiftItemRes) String() string
- func (m *ListGiftItemRes) Validate() error
- func (m *ListGiftItemRes) ValidateAll() error
- type ListGiftItemResMultiError
- type ListGiftItemResValidationError
- func (e ListGiftItemResValidationError) Cause() error
- func (e ListGiftItemResValidationError) Error() string
- func (e ListGiftItemResValidationError) ErrorName() string
- func (e ListGiftItemResValidationError) Field() string
- func (e ListGiftItemResValidationError) Key() bool
- func (e ListGiftItemResValidationError) Reason() string
- type UpdateGiftItemReq
- func (*UpdateGiftItemReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateGiftItemReq) GetItem() *GiftItem
- func (*UpdateGiftItemReq) ProtoMessage()
- func (x *UpdateGiftItemReq) ProtoReflect() protoreflect.Message
- func (x *UpdateGiftItemReq) Reset()
- func (x *UpdateGiftItemReq) String() string
- func (m *UpdateGiftItemReq) Validate() error
- func (m *UpdateGiftItemReq) ValidateAll() error
- type UpdateGiftItemReqMultiError
- type UpdateGiftItemReqValidationError
- func (e UpdateGiftItemReqValidationError) Cause() error
- func (e UpdateGiftItemReqValidationError) Error() string
- func (e UpdateGiftItemReqValidationError) ErrorName() string
- func (e UpdateGiftItemReqValidationError) Field() string
- func (e UpdateGiftItemReqValidationError) Key() bool
- func (e UpdateGiftItemReqValidationError) Reason() string
- type UpdateGiftItemRes
- func (*UpdateGiftItemRes) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateGiftItemRes) GetItem() *GiftItem
- func (*UpdateGiftItemRes) ProtoMessage()
- func (x *UpdateGiftItemRes) ProtoReflect() protoreflect.Message
- func (x *UpdateGiftItemRes) Reset()
- func (x *UpdateGiftItemRes) String() string
- func (m *UpdateGiftItemRes) Validate() error
- func (m *UpdateGiftItemRes) ValidateAll() error
- type UpdateGiftItemResMultiError
- type UpdateGiftItemResValidationError
- func (e UpdateGiftItemResValidationError) Cause() error
- func (e UpdateGiftItemResValidationError) Error() string
- func (e UpdateGiftItemResValidationError) ErrorName() string
- func (e UpdateGiftItemResValidationError) Field() string
- func (e UpdateGiftItemResValidationError) Key() bool
- func (e UpdateGiftItemResValidationError) Reason() string
- type UpdateShowStateReq
- func (*UpdateShowStateReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateShowStateReq) GetId() int64
- func (x *UpdateShowStateReq) GetShowState() int32
- func (*UpdateShowStateReq) ProtoMessage()
- func (x *UpdateShowStateReq) ProtoReflect() protoreflect.Message
- func (x *UpdateShowStateReq) Reset()
- func (x *UpdateShowStateReq) String() string
- func (m *UpdateShowStateReq) Validate() error
- func (m *UpdateShowStateReq) ValidateAll() error
- type UpdateShowStateReqMultiError
- type UpdateShowStateReqValidationError
- func (e UpdateShowStateReqValidationError) Cause() error
- func (e UpdateShowStateReqValidationError) Error() string
- func (e UpdateShowStateReqValidationError) ErrorName() string
- func (e UpdateShowStateReqValidationError) Field() string
- func (e UpdateShowStateReqValidationError) Key() bool
- func (e UpdateShowStateReqValidationError) Reason() string
- type UpdateShowStateRes
- func (*UpdateShowStateRes) Descriptor() ([]byte, []int)deprecated
- func (*UpdateShowStateRes) ProtoMessage()
- func (x *UpdateShowStateRes) ProtoReflect() protoreflect.Message
- func (x *UpdateShowStateRes) Reset()
- func (x *UpdateShowStateRes) String() string
- func (m *UpdateShowStateRes) Validate() error
- func (m *UpdateShowStateRes) ValidateAll() error
- type UpdateShowStateResMultiError
- type UpdateShowStateResValidationError
- func (e UpdateShowStateResValidationError) Cause() error
- func (e UpdateShowStateResValidationError) Error() string
- func (e UpdateShowStateResValidationError) ErrorName() string
- func (e UpdateShowStateResValidationError) Field() string
- func (e UpdateShowStateResValidationError) Key() bool
- func (e UpdateShowStateResValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_proto_gift_pool_gift_pool_proto protoreflect.FileDescriptor
Functions ¶
func NewGiftPoolEndpoints ¶
func RegisterGiftPoolHandler ¶
func RegisterGiftPoolHandler(s server.Server, hdlr GiftPoolHandler, opts ...server.HandlerOption) error
Types ¶
type AddGiftItemReq ¶
type AddGiftItemReq struct { Item *GiftItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item"` // contains filtered or unexported fields }
func (*AddGiftItemReq) Descriptor
deprecated
func (*AddGiftItemReq) Descriptor() ([]byte, []int)
Deprecated: Use AddGiftItemReq.ProtoReflect.Descriptor instead.
func (*AddGiftItemReq) GetItem ¶
func (x *AddGiftItemReq) GetItem() *GiftItem
func (*AddGiftItemReq) ProtoMessage ¶
func (*AddGiftItemReq) ProtoMessage()
func (*AddGiftItemReq) ProtoReflect ¶
func (x *AddGiftItemReq) ProtoReflect() protoreflect.Message
func (*AddGiftItemReq) Reset ¶
func (x *AddGiftItemReq) Reset()
func (*AddGiftItemReq) String ¶
func (x *AddGiftItemReq) String() string
func (*AddGiftItemReq) Validate ¶
func (m *AddGiftItemReq) Validate() error
Validate checks the field values on AddGiftItemReq 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 (*AddGiftItemReq) ValidateAll ¶
func (m *AddGiftItemReq) ValidateAll() error
ValidateAll checks the field values on AddGiftItemReq 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 AddGiftItemReqMultiError, or nil if none found.
type AddGiftItemReqMultiError ¶
type AddGiftItemReqMultiError []error
AddGiftItemReqMultiError is an error wrapping multiple validation errors returned by AddGiftItemReq.ValidateAll() if the designated constraints aren't met.
func (AddGiftItemReqMultiError) AllErrors ¶
func (m AddGiftItemReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddGiftItemReqMultiError) Error ¶
func (m AddGiftItemReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddGiftItemReqValidationError ¶
type AddGiftItemReqValidationError struct {
// contains filtered or unexported fields
}
AddGiftItemReqValidationError is the validation error returned by AddGiftItemReq.Validate if the designated constraints aren't met.
func (AddGiftItemReqValidationError) Cause ¶
func (e AddGiftItemReqValidationError) Cause() error
Cause function returns cause value.
func (AddGiftItemReqValidationError) Error ¶
func (e AddGiftItemReqValidationError) Error() string
Error satisfies the builtin error interface
func (AddGiftItemReqValidationError) ErrorName ¶
func (e AddGiftItemReqValidationError) ErrorName() string
ErrorName returns error name.
func (AddGiftItemReqValidationError) Field ¶
func (e AddGiftItemReqValidationError) Field() string
Field function returns field value.
func (AddGiftItemReqValidationError) Key ¶
func (e AddGiftItemReqValidationError) Key() bool
Key function returns key value.
func (AddGiftItemReqValidationError) Reason ¶
func (e AddGiftItemReqValidationError) Reason() string
Reason function returns reason value.
type AddGiftItemRes ¶
type AddGiftItemRes struct { Item *GiftItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item"` // contains filtered or unexported fields }
func (*AddGiftItemRes) Descriptor
deprecated
func (*AddGiftItemRes) Descriptor() ([]byte, []int)
Deprecated: Use AddGiftItemRes.ProtoReflect.Descriptor instead.
func (*AddGiftItemRes) GetItem ¶
func (x *AddGiftItemRes) GetItem() *GiftItem
func (*AddGiftItemRes) ProtoMessage ¶
func (*AddGiftItemRes) ProtoMessage()
func (*AddGiftItemRes) ProtoReflect ¶
func (x *AddGiftItemRes) ProtoReflect() protoreflect.Message
func (*AddGiftItemRes) Reset ¶
func (x *AddGiftItemRes) Reset()
func (*AddGiftItemRes) String ¶
func (x *AddGiftItemRes) String() string
func (*AddGiftItemRes) Validate ¶
func (m *AddGiftItemRes) Validate() error
Validate checks the field values on AddGiftItemRes 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 (*AddGiftItemRes) ValidateAll ¶
func (m *AddGiftItemRes) ValidateAll() error
ValidateAll checks the field values on AddGiftItemRes 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 AddGiftItemResMultiError, or nil if none found.
type AddGiftItemResMultiError ¶
type AddGiftItemResMultiError []error
AddGiftItemResMultiError is an error wrapping multiple validation errors returned by AddGiftItemRes.ValidateAll() if the designated constraints aren't met.
func (AddGiftItemResMultiError) AllErrors ¶
func (m AddGiftItemResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddGiftItemResMultiError) Error ¶
func (m AddGiftItemResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddGiftItemResValidationError ¶
type AddGiftItemResValidationError struct {
// contains filtered or unexported fields
}
AddGiftItemResValidationError is the validation error returned by AddGiftItemRes.Validate if the designated constraints aren't met.
func (AddGiftItemResValidationError) Cause ¶
func (e AddGiftItemResValidationError) Cause() error
Cause function returns cause value.
func (AddGiftItemResValidationError) Error ¶
func (e AddGiftItemResValidationError) Error() string
Error satisfies the builtin error interface
func (AddGiftItemResValidationError) ErrorName ¶
func (e AddGiftItemResValidationError) ErrorName() string
ErrorName returns error name.
func (AddGiftItemResValidationError) Field ¶
func (e AddGiftItemResValidationError) Field() string
Field function returns field value.
func (AddGiftItemResValidationError) Key ¶
func (e AddGiftItemResValidationError) Key() bool
Key function returns key value.
func (AddGiftItemResValidationError) Reason ¶
func (e AddGiftItemResValidationError) Reason() string
Reason function returns reason value.
type GiftItem ¶
type GiftItem struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` // 名称 Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level"` // 等级 1普通 2高级(奢华) Thumbnail string `protobuf:"bytes,4,opt,name=thumbnail,proto3" json:"thumbnail"` // 缩略图 ShowState int32 `protobuf:"varint,5,opt,name=show_state,json=showState,proto3" json:"show_state"` // 显示状态 1 不显示 2 显示 (能不能在编辑礼物时看到) VideoMp4 string `protobuf:"bytes,6,opt,name=video_mp4,json=videoMp4,proto3" json:"video_mp4"` // mp4动画 VideoPag string `protobuf:"bytes,7,opt,name=video_pag,json=videoPag,proto3" json:"video_pag"` // pag动画 CreatedAt string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at"` // 创建时间 UpdatedAt string `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at"` // 更新时间 // contains filtered or unexported fields }
func (*GiftItem) Descriptor
deprecated
func (*GiftItem) GetCreatedAt ¶
func (*GiftItem) GetShowState ¶
func (*GiftItem) GetThumbnail ¶
func (*GiftItem) GetUpdatedAt ¶
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 GiftPoolHandler ¶
type GiftPoolHandler interface { AddGiftItem(context.Context, *AddGiftItemReq, *AddGiftItemRes) error UpdateGiftItem(context.Context, *UpdateGiftItemReq, *UpdateGiftItemRes) error UpdateShowState(context.Context, *UpdateShowStateReq, *UpdateShowStateRes) error ListGiftItem(context.Context, *ListGiftItemReq, *ListGiftItemRes) error }
type GiftPoolService ¶
type GiftPoolService interface { AddGiftItem(ctx context.Context, in *AddGiftItemReq, opts ...client.CallOption) (*AddGiftItemRes, error) UpdateGiftItem(ctx context.Context, in *UpdateGiftItemReq, opts ...client.CallOption) (*UpdateGiftItemRes, error) UpdateShowState(ctx context.Context, in *UpdateShowStateReq, opts ...client.CallOption) (*UpdateShowStateRes, error) ListGiftItem(ctx context.Context, in *ListGiftItemReq, opts ...client.CallOption) (*ListGiftItemRes, error) }
func NewGiftPoolService ¶
func NewGiftPoolService(name string, c client.Client) GiftPoolService
type ListGiftItemReq ¶
type ListGiftItemReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` // Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` // ShowState int32 `protobuf:"varint,5,opt,name=show_state,json=showState,proto3" json:"show_state"` Page int64 `protobuf:"varint,40,opt,name=page,proto3" json:"page"` // 页码 Size int64 `protobuf:"varint,41,opt,name=size,proto3" json:"size"` // 单页记录数 Sort string `protobuf:"bytes,42,opt,name=sort,proto3" json:"sort"` // 排序方式 asc/desc Order string `protobuf:"bytes,43,opt,name=order,proto3" json:"order"` // 排序值 created_at // contains filtered or unexported fields }
func (*ListGiftItemReq) Descriptor
deprecated
func (*ListGiftItemReq) Descriptor() ([]byte, []int)
Deprecated: Use ListGiftItemReq.ProtoReflect.Descriptor instead.
func (*ListGiftItemReq) GetId ¶
func (x *ListGiftItemReq) GetId() int64
func (*ListGiftItemReq) GetName ¶
func (x *ListGiftItemReq) GetName() string
func (*ListGiftItemReq) GetOrder ¶
func (x *ListGiftItemReq) GetOrder() string
func (*ListGiftItemReq) GetPage ¶
func (x *ListGiftItemReq) GetPage() int64
func (*ListGiftItemReq) GetShowState ¶
func (x *ListGiftItemReq) GetShowState() int32
func (*ListGiftItemReq) GetSize ¶
func (x *ListGiftItemReq) GetSize() int64
func (*ListGiftItemReq) GetSort ¶
func (x *ListGiftItemReq) GetSort() string
func (*ListGiftItemReq) ProtoMessage ¶
func (*ListGiftItemReq) ProtoMessage()
func (*ListGiftItemReq) ProtoReflect ¶
func (x *ListGiftItemReq) ProtoReflect() protoreflect.Message
func (*ListGiftItemReq) Reset ¶
func (x *ListGiftItemReq) Reset()
func (*ListGiftItemReq) String ¶
func (x *ListGiftItemReq) String() string
func (*ListGiftItemReq) Validate ¶
func (m *ListGiftItemReq) Validate() error
Validate checks the field values on ListGiftItemReq 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 (*ListGiftItemReq) ValidateAll ¶
func (m *ListGiftItemReq) ValidateAll() error
ValidateAll checks the field values on ListGiftItemReq 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 ListGiftItemReqMultiError, or nil if none found.
type ListGiftItemReqMultiError ¶
type ListGiftItemReqMultiError []error
ListGiftItemReqMultiError is an error wrapping multiple validation errors returned by ListGiftItemReq.ValidateAll() if the designated constraints aren't met.
func (ListGiftItemReqMultiError) AllErrors ¶
func (m ListGiftItemReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListGiftItemReqMultiError) Error ¶
func (m ListGiftItemReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListGiftItemReqValidationError ¶
type ListGiftItemReqValidationError struct {
// contains filtered or unexported fields
}
ListGiftItemReqValidationError is the validation error returned by ListGiftItemReq.Validate if the designated constraints aren't met.
func (ListGiftItemReqValidationError) Cause ¶
func (e ListGiftItemReqValidationError) Cause() error
Cause function returns cause value.
func (ListGiftItemReqValidationError) Error ¶
func (e ListGiftItemReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListGiftItemReqValidationError) ErrorName ¶
func (e ListGiftItemReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListGiftItemReqValidationError) Field ¶
func (e ListGiftItemReqValidationError) Field() string
Field function returns field value.
func (ListGiftItemReqValidationError) Key ¶
func (e ListGiftItemReqValidationError) Key() bool
Key function returns key value.
func (ListGiftItemReqValidationError) Reason ¶
func (e ListGiftItemReqValidationError) Reason() string
Reason function returns reason value.
type ListGiftItemRes ¶
type ListGiftItemRes struct { List []*GiftItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list"` Page int64 `protobuf:"varint,2,opt,name=page,proto3" json:"page"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size"` Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total"` // contains filtered or unexported fields }
func (*ListGiftItemRes) Descriptor
deprecated
func (*ListGiftItemRes) Descriptor() ([]byte, []int)
Deprecated: Use ListGiftItemRes.ProtoReflect.Descriptor instead.
func (*ListGiftItemRes) GetList ¶
func (x *ListGiftItemRes) GetList() []*GiftItem
func (*ListGiftItemRes) GetPage ¶
func (x *ListGiftItemRes) GetPage() int64
func (*ListGiftItemRes) GetSize ¶
func (x *ListGiftItemRes) GetSize() int64
func (*ListGiftItemRes) GetTotal ¶
func (x *ListGiftItemRes) GetTotal() int64
func (*ListGiftItemRes) ProtoMessage ¶
func (*ListGiftItemRes) ProtoMessage()
func (*ListGiftItemRes) ProtoReflect ¶
func (x *ListGiftItemRes) ProtoReflect() protoreflect.Message
func (*ListGiftItemRes) Reset ¶
func (x *ListGiftItemRes) Reset()
func (*ListGiftItemRes) String ¶
func (x *ListGiftItemRes) String() string
func (*ListGiftItemRes) Validate ¶
func (m *ListGiftItemRes) Validate() error
Validate checks the field values on ListGiftItemRes 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 (*ListGiftItemRes) ValidateAll ¶
func (m *ListGiftItemRes) ValidateAll() error
ValidateAll checks the field values on ListGiftItemRes 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 ListGiftItemResMultiError, or nil if none found.
type ListGiftItemResMultiError ¶
type ListGiftItemResMultiError []error
ListGiftItemResMultiError is an error wrapping multiple validation errors returned by ListGiftItemRes.ValidateAll() if the designated constraints aren't met.
func (ListGiftItemResMultiError) AllErrors ¶
func (m ListGiftItemResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListGiftItemResMultiError) Error ¶
func (m ListGiftItemResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListGiftItemResValidationError ¶
type ListGiftItemResValidationError struct {
// contains filtered or unexported fields
}
ListGiftItemResValidationError is the validation error returned by ListGiftItemRes.Validate if the designated constraints aren't met.
func (ListGiftItemResValidationError) Cause ¶
func (e ListGiftItemResValidationError) Cause() error
Cause function returns cause value.
func (ListGiftItemResValidationError) Error ¶
func (e ListGiftItemResValidationError) Error() string
Error satisfies the builtin error interface
func (ListGiftItemResValidationError) ErrorName ¶
func (e ListGiftItemResValidationError) ErrorName() string
ErrorName returns error name.
func (ListGiftItemResValidationError) Field ¶
func (e ListGiftItemResValidationError) Field() string
Field function returns field value.
func (ListGiftItemResValidationError) Key ¶
func (e ListGiftItemResValidationError) Key() bool
Key function returns key value.
func (ListGiftItemResValidationError) Reason ¶
func (e ListGiftItemResValidationError) Reason() string
Reason function returns reason value.
type UpdateGiftItemReq ¶
type UpdateGiftItemReq struct { Item *GiftItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item"` // contains filtered or unexported fields }
func (*UpdateGiftItemReq) Descriptor
deprecated
func (*UpdateGiftItemReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGiftItemReq.ProtoReflect.Descriptor instead.
func (*UpdateGiftItemReq) GetItem ¶
func (x *UpdateGiftItemReq) GetItem() *GiftItem
func (*UpdateGiftItemReq) ProtoMessage ¶
func (*UpdateGiftItemReq) ProtoMessage()
func (*UpdateGiftItemReq) ProtoReflect ¶
func (x *UpdateGiftItemReq) ProtoReflect() protoreflect.Message
func (*UpdateGiftItemReq) Reset ¶
func (x *UpdateGiftItemReq) Reset()
func (*UpdateGiftItemReq) String ¶
func (x *UpdateGiftItemReq) String() string
func (*UpdateGiftItemReq) Validate ¶
func (m *UpdateGiftItemReq) Validate() error
Validate checks the field values on UpdateGiftItemReq 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 (*UpdateGiftItemReq) ValidateAll ¶
func (m *UpdateGiftItemReq) ValidateAll() error
ValidateAll checks the field values on UpdateGiftItemReq 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 UpdateGiftItemReqMultiError, or nil if none found.
type UpdateGiftItemReqMultiError ¶
type UpdateGiftItemReqMultiError []error
UpdateGiftItemReqMultiError is an error wrapping multiple validation errors returned by UpdateGiftItemReq.ValidateAll() if the designated constraints aren't met.
func (UpdateGiftItemReqMultiError) AllErrors ¶
func (m UpdateGiftItemReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateGiftItemReqMultiError) Error ¶
func (m UpdateGiftItemReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateGiftItemReqValidationError ¶
type UpdateGiftItemReqValidationError struct {
// contains filtered or unexported fields
}
UpdateGiftItemReqValidationError is the validation error returned by UpdateGiftItemReq.Validate if the designated constraints aren't met.
func (UpdateGiftItemReqValidationError) Cause ¶
func (e UpdateGiftItemReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateGiftItemReqValidationError) Error ¶
func (e UpdateGiftItemReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateGiftItemReqValidationError) ErrorName ¶
func (e UpdateGiftItemReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateGiftItemReqValidationError) Field ¶
func (e UpdateGiftItemReqValidationError) Field() string
Field function returns field value.
func (UpdateGiftItemReqValidationError) Key ¶
func (e UpdateGiftItemReqValidationError) Key() bool
Key function returns key value.
func (UpdateGiftItemReqValidationError) Reason ¶
func (e UpdateGiftItemReqValidationError) Reason() string
Reason function returns reason value.
type UpdateGiftItemRes ¶
type UpdateGiftItemRes struct { Item *GiftItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item"` // contains filtered or unexported fields }
func (*UpdateGiftItemRes) Descriptor
deprecated
func (*UpdateGiftItemRes) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGiftItemRes.ProtoReflect.Descriptor instead.
func (*UpdateGiftItemRes) GetItem ¶
func (x *UpdateGiftItemRes) GetItem() *GiftItem
func (*UpdateGiftItemRes) ProtoMessage ¶
func (*UpdateGiftItemRes) ProtoMessage()
func (*UpdateGiftItemRes) ProtoReflect ¶
func (x *UpdateGiftItemRes) ProtoReflect() protoreflect.Message
func (*UpdateGiftItemRes) Reset ¶
func (x *UpdateGiftItemRes) Reset()
func (*UpdateGiftItemRes) String ¶
func (x *UpdateGiftItemRes) String() string
func (*UpdateGiftItemRes) Validate ¶
func (m *UpdateGiftItemRes) Validate() error
Validate checks the field values on UpdateGiftItemRes 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 (*UpdateGiftItemRes) ValidateAll ¶
func (m *UpdateGiftItemRes) ValidateAll() error
ValidateAll checks the field values on UpdateGiftItemRes 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 UpdateGiftItemResMultiError, or nil if none found.
type UpdateGiftItemResMultiError ¶
type UpdateGiftItemResMultiError []error
UpdateGiftItemResMultiError is an error wrapping multiple validation errors returned by UpdateGiftItemRes.ValidateAll() if the designated constraints aren't met.
func (UpdateGiftItemResMultiError) AllErrors ¶
func (m UpdateGiftItemResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateGiftItemResMultiError) Error ¶
func (m UpdateGiftItemResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateGiftItemResValidationError ¶
type UpdateGiftItemResValidationError struct {
// contains filtered or unexported fields
}
UpdateGiftItemResValidationError is the validation error returned by UpdateGiftItemRes.Validate if the designated constraints aren't met.
func (UpdateGiftItemResValidationError) Cause ¶
func (e UpdateGiftItemResValidationError) Cause() error
Cause function returns cause value.
func (UpdateGiftItemResValidationError) Error ¶
func (e UpdateGiftItemResValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateGiftItemResValidationError) ErrorName ¶
func (e UpdateGiftItemResValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateGiftItemResValidationError) Field ¶
func (e UpdateGiftItemResValidationError) Field() string
Field function returns field value.
func (UpdateGiftItemResValidationError) Key ¶
func (e UpdateGiftItemResValidationError) Key() bool
Key function returns key value.
func (UpdateGiftItemResValidationError) Reason ¶
func (e UpdateGiftItemResValidationError) Reason() string
Reason function returns reason value.
type UpdateShowStateReq ¶
type UpdateShowStateReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` ShowState int32 `protobuf:"varint,2,opt,name=show_state,json=showState,proto3" json:"show_state"` // contains filtered or unexported fields }
func (*UpdateShowStateReq) Descriptor
deprecated
func (*UpdateShowStateReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateShowStateReq.ProtoReflect.Descriptor instead.
func (*UpdateShowStateReq) GetId ¶
func (x *UpdateShowStateReq) GetId() int64
func (*UpdateShowStateReq) GetShowState ¶
func (x *UpdateShowStateReq) GetShowState() int32
func (*UpdateShowStateReq) ProtoMessage ¶
func (*UpdateShowStateReq) ProtoMessage()
func (*UpdateShowStateReq) ProtoReflect ¶
func (x *UpdateShowStateReq) ProtoReflect() protoreflect.Message
func (*UpdateShowStateReq) Reset ¶
func (x *UpdateShowStateReq) Reset()
func (*UpdateShowStateReq) String ¶
func (x *UpdateShowStateReq) String() string
func (*UpdateShowStateReq) Validate ¶
func (m *UpdateShowStateReq) Validate() error
Validate checks the field values on UpdateShowStateReq 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 (*UpdateShowStateReq) ValidateAll ¶
func (m *UpdateShowStateReq) ValidateAll() error
ValidateAll checks the field values on UpdateShowStateReq 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 UpdateShowStateReqMultiError, or nil if none found.
type UpdateShowStateReqMultiError ¶
type UpdateShowStateReqMultiError []error
UpdateShowStateReqMultiError is an error wrapping multiple validation errors returned by UpdateShowStateReq.ValidateAll() if the designated constraints aren't met.
func (UpdateShowStateReqMultiError) AllErrors ¶
func (m UpdateShowStateReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateShowStateReqMultiError) Error ¶
func (m UpdateShowStateReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateShowStateReqValidationError ¶
type UpdateShowStateReqValidationError struct {
// contains filtered or unexported fields
}
UpdateShowStateReqValidationError is the validation error returned by UpdateShowStateReq.Validate if the designated constraints aren't met.
func (UpdateShowStateReqValidationError) Cause ¶
func (e UpdateShowStateReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateShowStateReqValidationError) Error ¶
func (e UpdateShowStateReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateShowStateReqValidationError) ErrorName ¶
func (e UpdateShowStateReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateShowStateReqValidationError) Field ¶
func (e UpdateShowStateReqValidationError) Field() string
Field function returns field value.
func (UpdateShowStateReqValidationError) Key ¶
func (e UpdateShowStateReqValidationError) Key() bool
Key function returns key value.
func (UpdateShowStateReqValidationError) Reason ¶
func (e UpdateShowStateReqValidationError) Reason() string
Reason function returns reason value.
type UpdateShowStateRes ¶
type UpdateShowStateRes struct {
// contains filtered or unexported fields
}
func (*UpdateShowStateRes) Descriptor
deprecated
func (*UpdateShowStateRes) Descriptor() ([]byte, []int)
Deprecated: Use UpdateShowStateRes.ProtoReflect.Descriptor instead.
func (*UpdateShowStateRes) ProtoMessage ¶
func (*UpdateShowStateRes) ProtoMessage()
func (*UpdateShowStateRes) ProtoReflect ¶
func (x *UpdateShowStateRes) ProtoReflect() protoreflect.Message
func (*UpdateShowStateRes) Reset ¶
func (x *UpdateShowStateRes) Reset()
func (*UpdateShowStateRes) String ¶
func (x *UpdateShowStateRes) String() string
func (*UpdateShowStateRes) Validate ¶
func (m *UpdateShowStateRes) Validate() error
Validate checks the field values on UpdateShowStateRes 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 (*UpdateShowStateRes) ValidateAll ¶
func (m *UpdateShowStateRes) ValidateAll() error
ValidateAll checks the field values on UpdateShowStateRes 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 UpdateShowStateResMultiError, or nil if none found.
type UpdateShowStateResMultiError ¶
type UpdateShowStateResMultiError []error
UpdateShowStateResMultiError is an error wrapping multiple validation errors returned by UpdateShowStateRes.ValidateAll() if the designated constraints aren't met.
func (UpdateShowStateResMultiError) AllErrors ¶
func (m UpdateShowStateResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateShowStateResMultiError) Error ¶
func (m UpdateShowStateResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateShowStateResValidationError ¶
type UpdateShowStateResValidationError struct {
// contains filtered or unexported fields
}
UpdateShowStateResValidationError is the validation error returned by UpdateShowStateRes.Validate if the designated constraints aren't met.
func (UpdateShowStateResValidationError) Cause ¶
func (e UpdateShowStateResValidationError) Cause() error
Cause function returns cause value.
func (UpdateShowStateResValidationError) Error ¶
func (e UpdateShowStateResValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateShowStateResValidationError) ErrorName ¶
func (e UpdateShowStateResValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateShowStateResValidationError) Field ¶
func (e UpdateShowStateResValidationError) Field() string
Field function returns field value.
func (UpdateShowStateResValidationError) Key ¶
func (e UpdateShowStateResValidationError) Key() bool
Key function returns key value.
func (UpdateShowStateResValidationError) Reason ¶
func (e UpdateShowStateResValidationError) Reason() string
Reason function returns reason value.