activity

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_activity_activity_proto protoreflect.FileDescriptor

Functions

func NewActivityEndpoints

func NewActivityEndpoints() []*api.Endpoint

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

Cause function returns cause value.

func (CreateRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRequestValidationError) ErrorName

func (e CreateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (CreateRequestValidationError) Field

Field function returns field value.

func (CreateRequestValidationError) Key

Key function returns key value.

func (CreateRequestValidationError) Reason

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

Cause function returns cause value.

func (CreateResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateResponseValidationError) ErrorName

func (e CreateResponseValidationError) ErrorName() string

ErrorName returns error name.

func (CreateResponseValidationError) Field

Field function returns field value.

func (CreateResponseValidationError) Key

Key function returns key value.

func (CreateResponseValidationError) Reason

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

Error satisfies the builtin error interface

func (GetRequestValidationError) ErrorName

func (e GetRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRequestValidationError) Field

Field function returns field value.

func (GetRequestValidationError) Key

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

Cause function returns cause value.

func (GetResponseValidationError) Error

Error satisfies the builtin error interface

func (GetResponseValidationError) ErrorName

func (e GetResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetResponseValidationError) Field

Field function returns field value.

func (GetResponseValidationError) Key

Key function returns key value.

func (GetResponseValidationError) Reason

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetAid

func (x *Item) GetAid() int64

func (*Item) GetAnchorNum

func (x *Item) GetAnchorNum() int32

func (*Item) GetCountry

func (x *Item) GetCountry() string

func (*Item) GetCreatedAt

func (x *Item) GetCreatedAt() string

func (*Item) GetEndAt

func (x *Item) GetEndAt() string

func (*Item) GetGiftList

func (x *Item) GetGiftList() string

func (*Item) GetH5Url

func (x *Item) GetH5Url() string

func (*Item) GetHeadUrl

func (x *Item) GetHeadUrl() string

func (*Item) GetId

func (x *Item) GetId() int64

func (*Item) GetRuleUrl

func (x *Item) GetRuleUrl() string

func (*Item) GetStartAt

func (x *Item) GetStartAt() string

func (*Item) GetTitle

func (x *Item) GetTitle() string

func (*Item) GetUpdatedAt

func (x *Item) GetUpdatedAt() string

func (*Item) GetUserNum

func (x *Item) GetUserNum() int32

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

func (*Item) Validate

func (m *Item) Validate() error

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

func (m *Item) ValidateAll() error

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

Cause function returns cause value.

func (ListRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRequestValidationError) ErrorName

func (e ListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRequestValidationError) Field

Field function returns field value.

func (ListRequestValidationError) Key

Key function returns key value.

func (ListRequestValidationError) Reason

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

Cause function returns cause value.

func (ListResponseValidationError) Error

Error satisfies the builtin error interface

func (ListResponseValidationError) ErrorName

func (e ListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListResponseValidationError) Field

Field function returns field value.

func (ListResponseValidationError) Key

Key function returns key value.

func (ListResponseValidationError) Reason

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

Deprecated: Use RankItem.ProtoReflect.Descriptor instead.

func (*RankItem) GetAmount

func (x *RankItem) GetAmount() int64

func (*RankItem) GetNickName

func (x *RankItem) GetNickName() string

func (*RankItem) GetRank

func (x *RankItem) GetRank() int64

func (*RankItem) GetUserAvatar

func (x *RankItem) GetUserAvatar() string

func (*RankItem) GetUserId

func (x *RankItem) GetUserId() int64

func (*RankItem) ProtoMessage

func (*RankItem) ProtoMessage()

func (*RankItem) ProtoReflect

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

func (*RankItem) Reset

func (x *RankItem) Reset()

func (*RankItem) String

func (x *RankItem) String() string

func (*RankItem) Validate

func (m *RankItem) Validate() error

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

func (m *RankItem) ValidateAll() error

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

Cause function returns cause value.

func (RankRequestValidationError) Error

Error satisfies the builtin error interface

func (RankRequestValidationError) ErrorName

func (e RankRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RankRequestValidationError) Field

Field function returns field value.

func (RankRequestValidationError) Key

Key function returns key value.

func (RankRequestValidationError) Reason

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

Cause function returns cause value.

func (RankResponseValidationError) Error

Error satisfies the builtin error interface

func (RankResponseValidationError) ErrorName

func (e RankResponseValidationError) ErrorName() string

ErrorName returns error name.

func (RankResponseValidationError) Field

Field function returns field value.

func (RankResponseValidationError) Key

Key function returns key value.

func (RankResponseValidationError) Reason

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

Cause function returns cause value.

func (UpdateRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRequestValidationError) ErrorName

func (e UpdateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateRequestValidationError) Field

Field function returns field value.

func (UpdateRequestValidationError) Key

Key function returns key value.

func (UpdateRequestValidationError) Reason

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

Cause function returns cause value.

func (UpdateResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateResponseValidationError) ErrorName

func (e UpdateResponseValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateResponseValidationError) Field

Field function returns field value.

func (UpdateResponseValidationError) Key

Key function returns key value.

func (UpdateResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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