Documentation ¶
Index ¶
- Variables
- func NewActivityEndpoints() []*api.Endpoint
- func RegisterActivityHandler(s server.Server, hdlr ActivityHandler, opts ...server.HandlerOption) error
- type ActivityHandler
- type ActivityService
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetItem() *Item
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- func (m *CreateRequest) Validate() error
- func (m *CreateRequest) ValidateAll() error
- type CreateRequestMultiError
- type CreateRequestValidationError
- func (e CreateRequestValidationError) Cause() error
- func (e CreateRequestValidationError) Error() string
- func (e CreateRequestValidationError) ErrorName() string
- func (e CreateRequestValidationError) Field() string
- func (e CreateRequestValidationError) Key() bool
- func (e CreateRequestValidationError) Reason() string
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetItem() *Item
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- func (m *CreateResponse) Validate() error
- func (m *CreateResponse) ValidateAll() error
- type CreateResponseMultiError
- type CreateResponseValidationError
- func (e CreateResponseValidationError) Cause() error
- func (e CreateResponseValidationError) Error() string
- func (e CreateResponseValidationError) ErrorName() string
- func (e CreateResponseValidationError) Field() string
- func (e CreateResponseValidationError) Key() bool
- func (e CreateResponseValidationError) Reason() string
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRequest) GetAid() int64
- func (x *GetRequest) GetEndAt() string
- func (x *GetRequest) GetStartAt() string
- func (x *GetRequest) GetTitle() string
- func (*GetRequest) ProtoMessage()
- func (x *GetRequest) ProtoReflect() protoreflect.Message
- func (x *GetRequest) Reset()
- func (x *GetRequest) String() string
- func (m *GetRequest) Validate() error
- func (m *GetRequest) ValidateAll() error
- type GetRequestMultiError
- type GetRequestValidationError
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResponse) GetItem() *Item
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (x *GetResponse) String() string
- func (m *GetResponse) Validate() error
- func (m *GetResponse) ValidateAll() error
- type GetResponseMultiError
- type GetResponseValidationError
- func (e GetResponseValidationError) Cause() error
- func (e GetResponseValidationError) Error() string
- func (e GetResponseValidationError) ErrorName() string
- func (e GetResponseValidationError) Field() string
- func (e GetResponseValidationError) Key() bool
- func (e GetResponseValidationError) Reason() string
- type Item
- func (*Item) Descriptor() ([]byte, []int)deprecated
- func (x *Item) GetAid() int64
- func (x *Item) GetAnchorNum() int32
- func (x *Item) GetCountry() string
- func (x *Item) GetCreatedAt() string
- func (x *Item) GetEndAt() string
- func (x *Item) GetGiftList() string
- func (x *Item) GetH5Url() string
- func (x *Item) GetHeadUrl() string
- func (x *Item) GetId() int64
- func (x *Item) GetRuleUrl() string
- func (x *Item) GetStartAt() string
- func (x *Item) GetTitle() string
- func (x *Item) GetUpdatedAt() string
- func (x *Item) GetUserNum() int32
- func (*Item) ProtoMessage()
- func (x *Item) ProtoReflect() protoreflect.Message
- func (x *Item) Reset()
- func (x *Item) String() string
- func (m *Item) Validate() error
- func (m *Item) ValidateAll() error
- type ItemMultiError
- type ItemValidationError
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetCountry() string
- func (x *ListRequest) GetEndAt() string
- func (x *ListRequest) GetMask() *fieldmaskpb.FieldMask
- func (x *ListRequest) GetPage() int32
- func (x *ListRequest) GetSize() int32
- func (x *ListRequest) GetStartAt() string
- func (x *ListRequest) GetTitle() string
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- func (m *ListRequest) Validate() error
- func (m *ListRequest) ValidateAll() error
- type ListRequestMultiError
- type ListRequestValidationError
- func (e ListRequestValidationError) Cause() error
- func (e ListRequestValidationError) Error() string
- func (e ListRequestValidationError) ErrorName() string
- func (e ListRequestValidationError) Field() string
- func (e ListRequestValidationError) Key() bool
- func (e ListRequestValidationError) Reason() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetList() []*Item
- func (x *ListResponse) GetPage() int32
- func (x *ListResponse) GetSize() int32
- func (x *ListResponse) GetTotal() int32
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- func (m *ListResponse) Validate() error
- func (m *ListResponse) ValidateAll() error
- type ListResponseMultiError
- type ListResponseValidationError
- func (e ListResponseValidationError) Cause() error
- func (e ListResponseValidationError) Error() string
- func (e ListResponseValidationError) ErrorName() string
- func (e ListResponseValidationError) Field() string
- func (e ListResponseValidationError) Key() bool
- func (e ListResponseValidationError) Reason() string
- type RankItem
- func (*RankItem) Descriptor() ([]byte, []int)deprecated
- func (x *RankItem) GetAmount() int64
- func (x *RankItem) GetNickName() string
- func (x *RankItem) GetRank() int64
- func (x *RankItem) GetUserAvatar() string
- func (x *RankItem) GetUserId() int64
- func (*RankItem) ProtoMessage()
- func (x *RankItem) ProtoReflect() protoreflect.Message
- func (x *RankItem) Reset()
- func (x *RankItem) String() string
- func (m *RankItem) Validate() error
- func (m *RankItem) ValidateAll() error
- type RankItemMultiError
- type RankItemValidationError
- type RankRequest
- func (*RankRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RankRequest) GetAid() int64
- func (x *RankRequest) GetPage() int64
- func (x *RankRequest) GetSize() int64
- func (x *RankRequest) GetType() int32
- func (*RankRequest) ProtoMessage()
- func (x *RankRequest) ProtoReflect() protoreflect.Message
- func (x *RankRequest) Reset()
- func (x *RankRequest) String() string
- func (m *RankRequest) Validate() error
- func (m *RankRequest) ValidateAll() error
- type RankRequestMultiError
- type RankRequestValidationError
- func (e RankRequestValidationError) Cause() error
- func (e RankRequestValidationError) Error() string
- func (e RankRequestValidationError) ErrorName() string
- func (e RankRequestValidationError) Field() string
- func (e RankRequestValidationError) Key() bool
- func (e RankRequestValidationError) Reason() string
- type RankResponse
- func (*RankResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RankResponse) GetList() []*RankItem
- func (x *RankResponse) GetPage() int64
- func (x *RankResponse) GetSize() int64
- func (*RankResponse) ProtoMessage()
- func (x *RankResponse) ProtoReflect() protoreflect.Message
- func (x *RankResponse) Reset()
- func (x *RankResponse) String() string
- func (m *RankResponse) Validate() error
- func (m *RankResponse) ValidateAll() error
- type RankResponseMultiError
- type RankResponseValidationError
- func (e RankResponseValidationError) Cause() error
- func (e RankResponseValidationError) Error() string
- func (e RankResponseValidationError) ErrorName() string
- func (e RankResponseValidationError) Field() string
- func (e RankResponseValidationError) Key() bool
- func (e RankResponseValidationError) Reason() string
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetItem() *Item
- func (x *UpdateRequest) GetMask() *fieldmaskpb.FieldMask
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- func (m *UpdateRequest) Validate() error
- func (m *UpdateRequest) ValidateAll() error
- type UpdateRequestMultiError
- type UpdateRequestValidationError
- func (e UpdateRequestValidationError) Cause() error
- func (e UpdateRequestValidationError) Error() string
- func (e UpdateRequestValidationError) ErrorName() string
- func (e UpdateRequestValidationError) Field() string
- func (e UpdateRequestValidationError) Key() bool
- func (e UpdateRequestValidationError) Reason() string
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateResponse) GetItem() *Item
- func (*UpdateResponse) ProtoMessage()
- func (x *UpdateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateResponse) Reset()
- func (x *UpdateResponse) String() string
- func (m *UpdateResponse) Validate() error
- func (m *UpdateResponse) ValidateAll() error
- type UpdateResponseMultiError
- type UpdateResponseValidationError
- func (e UpdateResponseValidationError) Cause() error
- func (e UpdateResponseValidationError) Error() string
- func (e UpdateResponseValidationError) ErrorName() string
- func (e UpdateResponseValidationError) Field() string
- func (e UpdateResponseValidationError) Key() bool
- func (e UpdateResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_proto_activity_activity_proto protoreflect.FileDescriptor
Functions ¶
func NewActivityEndpoints ¶
func RegisterActivityHandler ¶
func RegisterActivityHandler(s server.Server, hdlr ActivityHandler, opts ...server.HandlerOption) error
Types ¶
type ActivityHandler ¶
type ActivityHandler interface { // 邀请页面设置数据 Create(context.Context, *CreateRequest, *CreateResponse) error // 获取 Get(context.Context, *GetRequest, *GetResponse) error // 更新 Update(context.Context, *UpdateRequest, *UpdateResponse) error // 获取列表 List(context.Context, *ListRequest, *ListResponse) error // 获取榜单 Rank(context.Context, *RankRequest, *RankResponse) error }
type ActivityService ¶
type ActivityService interface { // 邀请页面设置数据 Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error) // 获取 Get(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*GetResponse, error) // 更新 Update(ctx context.Context, in *UpdateRequest, opts ...client.CallOption) (*UpdateResponse, error) // 获取列表 List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error) // 获取榜单 Rank(ctx context.Context, in *RankRequest, opts ...client.CallOption) (*RankResponse, error) }
func NewActivityService ¶
func NewActivityService(name string, c client.Client) ActivityService
type CreateRequest ¶
type CreateRequest struct { Item *Item `protobuf:"bytes,1,opt,name=Item,proto3" json:"Item"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetItem ¶
func (x *CreateRequest) GetItem() *Item
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
func (*CreateRequest) Validate ¶
func (m *CreateRequest) Validate() error
Validate checks the field values on CreateRequest 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 (*CreateRequest) ValidateAll ¶
func (m *CreateRequest) ValidateAll() error
ValidateAll checks the field values on CreateRequest 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 CreateRequestMultiError, or nil if none found.
type CreateRequestMultiError ¶
type CreateRequestMultiError []error
CreateRequestMultiError is an error wrapping multiple validation errors returned by CreateRequest.ValidateAll() if the designated constraints aren't met.
func (CreateRequestMultiError) AllErrors ¶
func (m CreateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRequestMultiError) Error ¶
func (m CreateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRequestValidationError ¶
type CreateRequestValidationError struct {
// contains filtered or unexported fields
}
CreateRequestValidationError is the validation error returned by CreateRequest.Validate if the designated constraints aren't met.
func (CreateRequestValidationError) Cause ¶
func (e CreateRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRequestValidationError) Error ¶
func (e CreateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRequestValidationError) ErrorName ¶
func (e CreateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRequestValidationError) Field ¶
func (e CreateRequestValidationError) Field() string
Field function returns field value.
func (CreateRequestValidationError) Key ¶
func (e CreateRequestValidationError) Key() bool
Key function returns key value.
func (CreateRequestValidationError) Reason ¶
func (e CreateRequestValidationError) Reason() string
Reason function returns reason value.
type CreateResponse ¶
type CreateResponse struct { Item *Item `protobuf:"bytes,1,opt,name=Item,proto3" json:"Item"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetItem ¶
func (x *CreateResponse) GetItem() *Item
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
func (*CreateResponse) Validate ¶
func (m *CreateResponse) Validate() error
Validate checks the field values on CreateResponse 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 (*CreateResponse) ValidateAll ¶
func (m *CreateResponse) ValidateAll() error
ValidateAll checks the field values on CreateResponse 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 CreateResponseMultiError, or nil if none found.
type CreateResponseMultiError ¶
type CreateResponseMultiError []error
CreateResponseMultiError is an error wrapping multiple validation errors returned by CreateResponse.ValidateAll() if the designated constraints aren't met.
func (CreateResponseMultiError) AllErrors ¶
func (m CreateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateResponseMultiError) Error ¶
func (m CreateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateResponseValidationError ¶
type CreateResponseValidationError struct {
// contains filtered or unexported fields
}
CreateResponseValidationError is the validation error returned by CreateResponse.Validate if the designated constraints aren't met.
func (CreateResponseValidationError) Cause ¶
func (e CreateResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateResponseValidationError) Error ¶
func (e CreateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateResponseValidationError) ErrorName ¶
func (e CreateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateResponseValidationError) Field ¶
func (e CreateResponseValidationError) Field() string
Field function returns field value.
func (CreateResponseValidationError) Key ¶
func (e CreateResponseValidationError) Key() bool
Key function returns key value.
func (CreateResponseValidationError) Reason ¶
func (e CreateResponseValidationError) Reason() string
Reason function returns reason value.
type GetRequest ¶
type GetRequest struct { Aid int64 `protobuf:"varint,1,opt,name=Aid,proto3" json:"Aid"` // 活动id Title string `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title"` // 活动名称 StartAt string `protobuf:"bytes,3,opt,name=StartAt,proto3" json:"StartAt"` // 开始时间 EndAt string `protobuf:"bytes,4,opt,name=EndAt,proto3" json:"EndAt"` // 结束时间 // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetAid ¶
func (x *GetRequest) GetAid() int64
func (*GetRequest) GetEndAt ¶
func (x *GetRequest) GetEndAt() string
func (*GetRequest) GetStartAt ¶
func (x *GetRequest) GetStartAt() string
func (*GetRequest) GetTitle ¶
func (x *GetRequest) GetTitle() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
func (*GetRequest) Validate ¶
func (m *GetRequest) Validate() error
Validate checks the field values on GetRequest 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 (*GetRequest) ValidateAll ¶
func (m *GetRequest) ValidateAll() error
ValidateAll checks the field values on GetRequest 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 GetRequestMultiError, or nil if none found.
type GetRequestMultiError ¶
type GetRequestMultiError []error
GetRequestMultiError is an error wrapping multiple validation errors returned by GetRequest.ValidateAll() if the designated constraints aren't met.
func (GetRequestMultiError) AllErrors ¶
func (m GetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRequestMultiError) Error ¶
func (m GetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRequestValidationError ¶
type GetRequestValidationError struct {
// contains filtered or unexported fields
}
GetRequestValidationError is the validation error returned by GetRequest.Validate if the designated constraints aren't met.
func (GetRequestValidationError) Cause ¶
func (e GetRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRequestValidationError) Error ¶
func (e GetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRequestValidationError) ErrorName ¶
func (e GetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRequestValidationError) Field ¶
func (e GetRequestValidationError) Field() string
Field function returns field value.
func (GetRequestValidationError) Key ¶
func (e GetRequestValidationError) Key() bool
Key function returns key value.
func (GetRequestValidationError) Reason ¶
func (e GetRequestValidationError) Reason() string
Reason function returns reason value.
type GetResponse ¶
type GetResponse struct { Item *Item `protobuf:"bytes,1,opt,name=Item,proto3" json:"Item"` // row // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetItem ¶
func (x *GetResponse) GetItem() *Item
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
func (*GetResponse) Validate ¶
func (m *GetResponse) Validate() error
Validate checks the field values on GetResponse 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 (*GetResponse) ValidateAll ¶
func (m *GetResponse) ValidateAll() error
ValidateAll checks the field values on GetResponse 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 GetResponseMultiError, or nil if none found.
type GetResponseMultiError ¶
type GetResponseMultiError []error
GetResponseMultiError is an error wrapping multiple validation errors returned by GetResponse.ValidateAll() if the designated constraints aren't met.
func (GetResponseMultiError) AllErrors ¶
func (m GetResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetResponseMultiError) Error ¶
func (m GetResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetResponseValidationError ¶
type GetResponseValidationError struct {
// contains filtered or unexported fields
}
GetResponseValidationError is the validation error returned by GetResponse.Validate if the designated constraints aren't met.
func (GetResponseValidationError) Cause ¶
func (e GetResponseValidationError) Cause() error
Cause function returns cause value.
func (GetResponseValidationError) Error ¶
func (e GetResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetResponseValidationError) ErrorName ¶
func (e GetResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetResponseValidationError) Field ¶
func (e GetResponseValidationError) Field() string
Field function returns field value.
func (GetResponseValidationError) Key ¶
func (e GetResponseValidationError) Key() bool
Key function returns key value.
func (GetResponseValidationError) Reason ¶
func (e GetResponseValidationError) Reason() string
Reason function returns reason value.
type Item ¶
type Item struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id"` // 主键 Aid int64 `protobuf:"varint,2,opt,name=Aid,proto3" json:"Aid"` // 活动 Country string `protobuf:"bytes,14,opt,name=Country,proto3" json:"Country"` // 国家 Title string `protobuf:"bytes,3,opt,name=Title,proto3" json:"Title"` // 活动标题 UserNum int32 `protobuf:"varint,4,opt,name=UserNum,proto3" json:"UserNum"` // 用户数 AnchorNum int32 `protobuf:"varint,5,opt,name=AnchorNum,proto3" json:"AnchorNum"` // 主播数 HeadUrl string `protobuf:"bytes,6,opt,name=HeadUrl,proto3" json:"HeadUrl"` // 头图片 RuleUrl string `protobuf:"bytes,7,opt,name=RuleUrl,proto3" json:"RuleUrl"` // 规则图片 H5Url string `protobuf:"bytes,8,opt,name=H5Url,proto3" json:"H5Url"` // h5 地址 StartAt string `protobuf:"bytes,9,opt,name=StartAt,proto3" json:"StartAt"` // 开始时间 EndAt string `protobuf:"bytes,10,opt,name=EndAt,proto3" json:"EndAt"` // 结束时间 GiftList string `protobuf:"bytes,11,opt,name=GiftList,proto3" json:"GiftList"` // 礼物列表 CreatedAt string `protobuf:"bytes,12,opt,name=CreatedAt,proto3" json:"CreatedAt"` // 结束时间 UpdatedAt string `protobuf:"bytes,13,opt,name=UpdatedAt,proto3" json:"UpdatedAt"` // 修改时间 // contains filtered or unexported fields }
func (*Item) Descriptor
deprecated
func (*Item) GetAnchorNum ¶
func (*Item) GetCountry ¶
func (*Item) GetCreatedAt ¶
func (*Item) GetGiftList ¶
func (*Item) GetHeadUrl ¶
func (*Item) GetRuleUrl ¶
func (*Item) GetStartAt ¶
func (*Item) GetUpdatedAt ¶
func (*Item) GetUserNum ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
func (*Item) Validate ¶
Validate checks the field values on Item 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 (*Item) ValidateAll ¶
ValidateAll checks the field values on Item 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 ItemMultiError, or nil if none found.
type ItemMultiError ¶
type ItemMultiError []error
ItemMultiError is an error wrapping multiple validation errors returned by Item.ValidateAll() if the designated constraints aren't met.
func (ItemMultiError) AllErrors ¶
func (m ItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ItemMultiError) Error ¶
func (m ItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ItemValidationError ¶
type ItemValidationError struct {
// contains filtered or unexported fields
}
ItemValidationError is the validation error returned by Item.Validate if the designated constraints aren't met.
func (ItemValidationError) Cause ¶
func (e ItemValidationError) Cause() error
Cause function returns cause value.
func (ItemValidationError) Error ¶
func (e ItemValidationError) Error() string
Error satisfies the builtin error interface
func (ItemValidationError) ErrorName ¶
func (e ItemValidationError) ErrorName() string
ErrorName returns error name.
func (ItemValidationError) Field ¶
func (e ItemValidationError) Field() string
Field function returns field value.
func (ItemValidationError) Key ¶
func (e ItemValidationError) Key() bool
Key function returns key value.
func (ItemValidationError) Reason ¶
func (e ItemValidationError) Reason() string
Reason function returns reason value.
type ListRequest ¶
type ListRequest struct { Page int32 `protobuf:"varint,1,opt,name=Page,proto3" json:"Page"` Size int32 `protobuf:"varint,2,opt,name=Size,proto3" json:"Size"` Title string `protobuf:"bytes,3,opt,name=Title,proto3" json:"Title"` // 标题 StartAt string `protobuf:"bytes,4,opt,name=StartAt,proto3" json:"StartAt"` EndAt string `protobuf:"bytes,5,opt,name=EndAt,proto3" json:"EndAt"` Mask *fieldmaskpb.FieldMask `protobuf:"bytes,6,opt,name=mask,proto3" json:"mask"` Country string `protobuf:"bytes,7,opt,name=Country,proto3" json:"Country"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetCountry ¶
func (x *ListRequest) GetCountry() string
func (*ListRequest) GetEndAt ¶
func (x *ListRequest) GetEndAt() string
func (*ListRequest) GetMask ¶
func (x *ListRequest) GetMask() *fieldmaskpb.FieldMask
func (*ListRequest) GetPage ¶
func (x *ListRequest) GetPage() int32
func (*ListRequest) GetSize ¶
func (x *ListRequest) GetSize() int32
func (*ListRequest) GetStartAt ¶
func (x *ListRequest) GetStartAt() string
func (*ListRequest) GetTitle ¶
func (x *ListRequest) GetTitle() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
func (*ListRequest) Validate ¶
func (m *ListRequest) Validate() error
Validate checks the field values on ListRequest 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 (*ListRequest) ValidateAll ¶
func (m *ListRequest) ValidateAll() error
ValidateAll checks the field values on ListRequest 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 ListRequestMultiError, or nil if none found.
type ListRequestMultiError ¶
type ListRequestMultiError []error
ListRequestMultiError is an error wrapping multiple validation errors returned by ListRequest.ValidateAll() if the designated constraints aren't met.
func (ListRequestMultiError) AllErrors ¶
func (m ListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRequestMultiError) Error ¶
func (m ListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRequestValidationError ¶
type ListRequestValidationError struct {
// contains filtered or unexported fields
}
ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.
func (ListRequestValidationError) Cause ¶
func (e ListRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRequestValidationError) Error ¶
func (e ListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRequestValidationError) ErrorName ¶
func (e ListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRequestValidationError) Field ¶
func (e ListRequestValidationError) Field() string
Field function returns field value.
func (ListRequestValidationError) Key ¶
func (e ListRequestValidationError) Key() bool
Key function returns key value.
func (ListRequestValidationError) Reason ¶
func (e ListRequestValidationError) Reason() string
Reason function returns reason value.
type ListResponse ¶
type ListResponse struct { List []*Item `protobuf:"bytes,1,rep,name=list,proto3" json:"list"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page"` Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size"` Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetList ¶
func (x *ListResponse) GetList() []*Item
func (*ListResponse) GetPage ¶
func (x *ListResponse) GetPage() int32
func (*ListResponse) GetSize ¶
func (x *ListResponse) GetSize() int32
func (*ListResponse) GetTotal ¶
func (x *ListResponse) GetTotal() int32
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
func (*ListResponse) Validate ¶
func (m *ListResponse) Validate() error
Validate checks the field values on ListResponse 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 (*ListResponse) ValidateAll ¶
func (m *ListResponse) ValidateAll() error
ValidateAll checks the field values on ListResponse 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 ListResponseMultiError, or nil if none found.
type ListResponseMultiError ¶
type ListResponseMultiError []error
ListResponseMultiError is an error wrapping multiple validation errors returned by ListResponse.ValidateAll() if the designated constraints aren't met.
func (ListResponseMultiError) AllErrors ¶
func (m ListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListResponseMultiError) Error ¶
func (m ListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListResponseValidationError ¶
type ListResponseValidationError struct {
// contains filtered or unexported fields
}
ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.
func (ListResponseValidationError) Cause ¶
func (e ListResponseValidationError) Cause() error
Cause function returns cause value.
func (ListResponseValidationError) Error ¶
func (e ListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListResponseValidationError) ErrorName ¶
func (e ListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListResponseValidationError) Field ¶
func (e ListResponseValidationError) Field() string
Field function returns field value.
func (ListResponseValidationError) Key ¶
func (e ListResponseValidationError) Key() bool
Key function returns key value.
func (ListResponseValidationError) Reason ¶
func (e ListResponseValidationError) Reason() string
Reason function returns reason value.
type RankItem ¶
type RankItem struct { Rank int64 `protobuf:"varint,1,opt,name=Rank,proto3" json:"Rank"` // 排名 UserId int64 `protobuf:"varint,2,opt,name=UserId,proto3" json:"UserId"` // 用户ID NickName string `protobuf:"bytes,3,opt,name=NickName,proto3" json:"NickName"` UserAvatar string `protobuf:"bytes,4,opt,name=UserAvatar,proto3" json:"UserAvatar"` Amount int64 `protobuf:"varint,5,opt,name=Amount,proto3" json:"Amount"` // contains filtered or unexported fields }
func (*RankItem) Descriptor
deprecated
func (*RankItem) GetNickName ¶
func (*RankItem) GetUserAvatar ¶
func (*RankItem) ProtoMessage ¶
func (*RankItem) ProtoMessage()
func (*RankItem) ProtoReflect ¶
func (x *RankItem) ProtoReflect() protoreflect.Message
func (*RankItem) Validate ¶
Validate checks the field values on RankItem 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 (*RankItem) ValidateAll ¶
ValidateAll checks the field values on RankItem 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 RankItemMultiError, or nil if none found.
type RankItemMultiError ¶
type RankItemMultiError []error
RankItemMultiError is an error wrapping multiple validation errors returned by RankItem.ValidateAll() if the designated constraints aren't met.
func (RankItemMultiError) AllErrors ¶
func (m RankItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RankItemMultiError) Error ¶
func (m RankItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RankItemValidationError ¶
type RankItemValidationError struct {
// contains filtered or unexported fields
}
RankItemValidationError is the validation error returned by RankItem.Validate if the designated constraints aren't met.
func (RankItemValidationError) Cause ¶
func (e RankItemValidationError) Cause() error
Cause function returns cause value.
func (RankItemValidationError) Error ¶
func (e RankItemValidationError) Error() string
Error satisfies the builtin error interface
func (RankItemValidationError) ErrorName ¶
func (e RankItemValidationError) ErrorName() string
ErrorName returns error name.
func (RankItemValidationError) Field ¶
func (e RankItemValidationError) Field() string
Field function returns field value.
func (RankItemValidationError) Key ¶
func (e RankItemValidationError) Key() bool
Key function returns key value.
func (RankItemValidationError) Reason ¶
func (e RankItemValidationError) Reason() string
Reason function returns reason value.
type RankRequest ¶
type RankRequest struct { Aid int64 `protobuf:"varint,1,opt,name=Aid,proto3" json:"Aid"` Type int32 `protobuf:"varint,2,opt,name=Type,proto3" json:"Type"` // 1 主播榜单 2 观众榜单 Page int64 `protobuf:"varint,41,opt,name=Page,proto3" json:"Page"` Size int64 `protobuf:"varint,42,opt,name=Size,proto3" json:"Size"` // contains filtered or unexported fields }
func (*RankRequest) Descriptor
deprecated
func (*RankRequest) Descriptor() ([]byte, []int)
Deprecated: Use RankRequest.ProtoReflect.Descriptor instead.
func (*RankRequest) GetAid ¶
func (x *RankRequest) GetAid() int64
func (*RankRequest) GetPage ¶
func (x *RankRequest) GetPage() int64
func (*RankRequest) GetSize ¶
func (x *RankRequest) GetSize() int64
func (*RankRequest) GetType ¶
func (x *RankRequest) GetType() int32
func (*RankRequest) ProtoMessage ¶
func (*RankRequest) ProtoMessage()
func (*RankRequest) ProtoReflect ¶
func (x *RankRequest) ProtoReflect() protoreflect.Message
func (*RankRequest) Reset ¶
func (x *RankRequest) Reset()
func (*RankRequest) String ¶
func (x *RankRequest) String() string
func (*RankRequest) Validate ¶
func (m *RankRequest) Validate() error
Validate checks the field values on RankRequest 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 (*RankRequest) ValidateAll ¶
func (m *RankRequest) ValidateAll() error
ValidateAll checks the field values on RankRequest 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 RankRequestMultiError, or nil if none found.
type RankRequestMultiError ¶
type RankRequestMultiError []error
RankRequestMultiError is an error wrapping multiple validation errors returned by RankRequest.ValidateAll() if the designated constraints aren't met.
func (RankRequestMultiError) AllErrors ¶
func (m RankRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RankRequestMultiError) Error ¶
func (m RankRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RankRequestValidationError ¶
type RankRequestValidationError struct {
// contains filtered or unexported fields
}
RankRequestValidationError is the validation error returned by RankRequest.Validate if the designated constraints aren't met.
func (RankRequestValidationError) Cause ¶
func (e RankRequestValidationError) Cause() error
Cause function returns cause value.
func (RankRequestValidationError) Error ¶
func (e RankRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RankRequestValidationError) ErrorName ¶
func (e RankRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RankRequestValidationError) Field ¶
func (e RankRequestValidationError) Field() string
Field function returns field value.
func (RankRequestValidationError) Key ¶
func (e RankRequestValidationError) Key() bool
Key function returns key value.
func (RankRequestValidationError) Reason ¶
func (e RankRequestValidationError) Reason() string
Reason function returns reason value.
type RankResponse ¶
type RankResponse struct { List []*RankItem `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"` // 单页条数 // contains filtered or unexported fields }
func (*RankResponse) Descriptor
deprecated
func (*RankResponse) Descriptor() ([]byte, []int)
Deprecated: Use RankResponse.ProtoReflect.Descriptor instead.
func (*RankResponse) GetList ¶
func (x *RankResponse) GetList() []*RankItem
func (*RankResponse) GetPage ¶
func (x *RankResponse) GetPage() int64
func (*RankResponse) GetSize ¶
func (x *RankResponse) GetSize() int64
func (*RankResponse) ProtoMessage ¶
func (*RankResponse) ProtoMessage()
func (*RankResponse) ProtoReflect ¶
func (x *RankResponse) ProtoReflect() protoreflect.Message
func (*RankResponse) Reset ¶
func (x *RankResponse) Reset()
func (*RankResponse) String ¶
func (x *RankResponse) String() string
func (*RankResponse) Validate ¶
func (m *RankResponse) Validate() error
Validate checks the field values on RankResponse 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 (*RankResponse) ValidateAll ¶
func (m *RankResponse) ValidateAll() error
ValidateAll checks the field values on RankResponse 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 RankResponseMultiError, or nil if none found.
type RankResponseMultiError ¶
type RankResponseMultiError []error
RankResponseMultiError is an error wrapping multiple validation errors returned by RankResponse.ValidateAll() if the designated constraints aren't met.
func (RankResponseMultiError) AllErrors ¶
func (m RankResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RankResponseMultiError) Error ¶
func (m RankResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RankResponseValidationError ¶
type RankResponseValidationError struct {
// contains filtered or unexported fields
}
RankResponseValidationError is the validation error returned by RankResponse.Validate if the designated constraints aren't met.
func (RankResponseValidationError) Cause ¶
func (e RankResponseValidationError) Cause() error
Cause function returns cause value.
func (RankResponseValidationError) Error ¶
func (e RankResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RankResponseValidationError) ErrorName ¶
func (e RankResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RankResponseValidationError) Field ¶
func (e RankResponseValidationError) Field() string
Field function returns field value.
func (RankResponseValidationError) Key ¶
func (e RankResponseValidationError) Key() bool
Key function returns key value.
func (RankResponseValidationError) Reason ¶
func (e RankResponseValidationError) Reason() string
Reason function returns reason value.
type UpdateRequest ¶
type UpdateRequest struct { Item *Item `protobuf:"bytes,1,opt,name=Item,proto3" json:"Item"` Mask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=mask,proto3" json:"mask"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetItem ¶
func (x *UpdateRequest) GetItem() *Item
func (*UpdateRequest) GetMask ¶
func (x *UpdateRequest) GetMask() *fieldmaskpb.FieldMask
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
func (*UpdateRequest) Validate ¶
func (m *UpdateRequest) Validate() error
Validate checks the field values on UpdateRequest 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 (*UpdateRequest) ValidateAll ¶
func (m *UpdateRequest) ValidateAll() error
ValidateAll checks the field values on UpdateRequest 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 UpdateRequestMultiError, or nil if none found.
type UpdateRequestMultiError ¶
type UpdateRequestMultiError []error
UpdateRequestMultiError is an error wrapping multiple validation errors returned by UpdateRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateRequestMultiError) AllErrors ¶
func (m UpdateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRequestMultiError) Error ¶
func (m UpdateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRequestValidationError ¶
type UpdateRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateRequestValidationError is the validation error returned by UpdateRequest.Validate if the designated constraints aren't met.
func (UpdateRequestValidationError) Cause ¶
func (e UpdateRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRequestValidationError) Error ¶
func (e UpdateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRequestValidationError) ErrorName ¶
func (e UpdateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRequestValidationError) Field ¶
func (e UpdateRequestValidationError) Field() string
Field function returns field value.
func (UpdateRequestValidationError) Key ¶
func (e UpdateRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRequestValidationError) Reason ¶
func (e UpdateRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateResponse ¶
type UpdateResponse struct { Item *Item `protobuf:"bytes,1,opt,name=Item,proto3" json:"Item"` // contains filtered or unexported fields }
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetItem ¶
func (x *UpdateResponse) GetItem() *Item
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string
func (*UpdateResponse) Validate ¶
func (m *UpdateResponse) Validate() error
Validate checks the field values on UpdateResponse 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 (*UpdateResponse) ValidateAll ¶
func (m *UpdateResponse) ValidateAll() error
ValidateAll checks the field values on UpdateResponse 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 UpdateResponseMultiError, or nil if none found.
type UpdateResponseMultiError ¶
type UpdateResponseMultiError []error
UpdateResponseMultiError is an error wrapping multiple validation errors returned by UpdateResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateResponseMultiError) AllErrors ¶
func (m UpdateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateResponseMultiError) Error ¶
func (m UpdateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateResponseValidationError ¶
type UpdateResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateResponseValidationError is the validation error returned by UpdateResponse.Validate if the designated constraints aren't met.
func (UpdateResponseValidationError) Cause ¶
func (e UpdateResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateResponseValidationError) Error ¶
func (e UpdateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateResponseValidationError) ErrorName ¶
func (e UpdateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateResponseValidationError) Field ¶
func (e UpdateResponseValidationError) Field() string
Field function returns field value.
func (UpdateResponseValidationError) Key ¶
func (e UpdateResponseValidationError) Key() bool
Key function returns key value.
func (UpdateResponseValidationError) Reason ¶
func (e UpdateResponseValidationError) Reason() string
Reason function returns reason value.