relation

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

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

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

Documentation

Index

Constants

View Source
const (
	TopicUserFollow = "event.user.follows"
)

Variables

View Source
var File_proto_relation_relation_proto protoreflect.FileDescriptor

Functions

func NewRelationEndpoints

func NewRelationEndpoints() []*api.Endpoint

func RegisterRelationHandler

func RegisterRelationHandler(s server.Server, hdlr RelationHandler, opts ...server.HandlerOption) error

Types

type AtTimeNewFansReq

type AtTimeNewFansReq struct {
	FollowsAt string `protobuf:"bytes,1,opt,name=FollowsAt,proto3" json:"FollowsAt"` // 开始关注时间
	UserId    int64  `protobuf:"varint,2,opt,name=UserId,proto3" json:"UserId"`      // 用户ID
	// contains filtered or unexported fields
}

func (*AtTimeNewFansReq) Descriptor deprecated

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

Deprecated: Use AtTimeNewFansReq.ProtoReflect.Descriptor instead.

func (*AtTimeNewFansReq) GetFollowsAt

func (x *AtTimeNewFansReq) GetFollowsAt() string

func (*AtTimeNewFansReq) GetUserId

func (x *AtTimeNewFansReq) GetUserId() int64

func (*AtTimeNewFansReq) ProtoMessage

func (*AtTimeNewFansReq) ProtoMessage()

func (*AtTimeNewFansReq) ProtoReflect

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

func (*AtTimeNewFansReq) Reset

func (x *AtTimeNewFansReq) Reset()

func (*AtTimeNewFansReq) String

func (x *AtTimeNewFansReq) String() string

func (*AtTimeNewFansReq) Validate

func (m *AtTimeNewFansReq) Validate() error

Validate checks the field values on AtTimeNewFansReq 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 (*AtTimeNewFansReq) ValidateAll

func (m *AtTimeNewFansReq) ValidateAll() error

ValidateAll checks the field values on AtTimeNewFansReq 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 AtTimeNewFansReqMultiError, or nil if none found.

type AtTimeNewFansReqMultiError

type AtTimeNewFansReqMultiError []error

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

func (AtTimeNewFansReqMultiError) AllErrors

func (m AtTimeNewFansReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AtTimeNewFansReqMultiError) Error

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

type AtTimeNewFansReqValidationError

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

AtTimeNewFansReqValidationError is the validation error returned by AtTimeNewFansReq.Validate if the designated constraints aren't met.

func (AtTimeNewFansReqValidationError) Cause

Cause function returns cause value.

func (AtTimeNewFansReqValidationError) Error

Error satisfies the builtin error interface

func (AtTimeNewFansReqValidationError) ErrorName

ErrorName returns error name.

func (AtTimeNewFansReqValidationError) Field

Field function returns field value.

func (AtTimeNewFansReqValidationError) Key

Key function returns key value.

func (AtTimeNewFansReqValidationError) Reason

Reason function returns reason value.

type BatchFansNumReq

type BatchFansNumReq struct {
	UserIds []int64 `protobuf:"varint,1,rep,packed,name=UserIds,proto3" json:"UserIds"` // 主播UID列表
	// contains filtered or unexported fields
}

批量获取粉丝数

func (*BatchFansNumReq) Descriptor deprecated

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

Deprecated: Use BatchFansNumReq.ProtoReflect.Descriptor instead.

func (*BatchFansNumReq) GetUserIds

func (x *BatchFansNumReq) GetUserIds() []int64

func (*BatchFansNumReq) ProtoMessage

func (*BatchFansNumReq) ProtoMessage()

func (*BatchFansNumReq) ProtoReflect

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

func (*BatchFansNumReq) Reset

func (x *BatchFansNumReq) Reset()

func (*BatchFansNumReq) String

func (x *BatchFansNumReq) String() string

func (*BatchFansNumReq) Validate

func (m *BatchFansNumReq) Validate() error

Validate checks the field values on BatchFansNumReq 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 (*BatchFansNumReq) ValidateAll

func (m *BatchFansNumReq) ValidateAll() error

ValidateAll checks the field values on BatchFansNumReq 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 BatchFansNumReqMultiError, or nil if none found.

type BatchFansNumReqMultiError

type BatchFansNumReqMultiError []error

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

func (BatchFansNumReqMultiError) AllErrors

func (m BatchFansNumReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchFansNumReqMultiError) Error

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

type BatchFansNumReqValidationError

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

BatchFansNumReqValidationError is the validation error returned by BatchFansNumReq.Validate if the designated constraints aren't met.

func (BatchFansNumReqValidationError) Cause

Cause function returns cause value.

func (BatchFansNumReqValidationError) Error

Error satisfies the builtin error interface

func (BatchFansNumReqValidationError) ErrorName

func (e BatchFansNumReqValidationError) ErrorName() string

ErrorName returns error name.

func (BatchFansNumReqValidationError) Field

Field function returns field value.

func (BatchFansNumReqValidationError) Key

Key function returns key value.

func (BatchFansNumReqValidationError) Reason

Reason function returns reason value.

type BatchFansNumResp

type BatchFansNumResp struct {
	Item map[string]string `` // 用户基本信息
	/* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchFansNumResp) Descriptor deprecated

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

Deprecated: Use BatchFansNumResp.ProtoReflect.Descriptor instead.

func (*BatchFansNumResp) GetItem

func (x *BatchFansNumResp) GetItem() map[string]string

func (*BatchFansNumResp) ProtoMessage

func (*BatchFansNumResp) ProtoMessage()

func (*BatchFansNumResp) ProtoReflect

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

func (*BatchFansNumResp) Reset

func (x *BatchFansNumResp) Reset()

func (*BatchFansNumResp) String

func (x *BatchFansNumResp) String() string

func (*BatchFansNumResp) Validate

func (m *BatchFansNumResp) Validate() error

Validate checks the field values on BatchFansNumResp 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 (*BatchFansNumResp) ValidateAll

func (m *BatchFansNumResp) ValidateAll() error

ValidateAll checks the field values on BatchFansNumResp 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 BatchFansNumRespMultiError, or nil if none found.

type BatchFansNumRespMultiError

type BatchFansNumRespMultiError []error

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

func (BatchFansNumRespMultiError) AllErrors

func (m BatchFansNumRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchFansNumRespMultiError) Error

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

type BatchFansNumRespValidationError

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

BatchFansNumRespValidationError is the validation error returned by BatchFansNumResp.Validate if the designated constraints aren't met.

func (BatchFansNumRespValidationError) Cause

Cause function returns cause value.

func (BatchFansNumRespValidationError) Error

Error satisfies the builtin error interface

func (BatchFansNumRespValidationError) ErrorName

ErrorName returns error name.

func (BatchFansNumRespValidationError) Field

Field function returns field value.

func (BatchFansNumRespValidationError) Key

Key function returns key value.

func (BatchFansNumRespValidationError) Reason

Reason function returns reason value.

type BatchFollowsHasReq

type BatchFollowsHasReq struct {
	UserId  int64   `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`          // 当前用户
	UserIds []int64 `protobuf:"varint,2,rep,packed,name=UserIds,proto3" json:"UserIds"` // 当前是否关注的ids
	// contains filtered or unexported fields
}

批量获取是否关注

func (*BatchFollowsHasReq) Descriptor deprecated

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

Deprecated: Use BatchFollowsHasReq.ProtoReflect.Descriptor instead.

func (*BatchFollowsHasReq) GetUserId

func (x *BatchFollowsHasReq) GetUserId() int64

func (*BatchFollowsHasReq) GetUserIds

func (x *BatchFollowsHasReq) GetUserIds() []int64

func (*BatchFollowsHasReq) ProtoMessage

func (*BatchFollowsHasReq) ProtoMessage()

func (*BatchFollowsHasReq) ProtoReflect

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

func (*BatchFollowsHasReq) Reset

func (x *BatchFollowsHasReq) Reset()

func (*BatchFollowsHasReq) String

func (x *BatchFollowsHasReq) String() string

func (*BatchFollowsHasReq) Validate

func (m *BatchFollowsHasReq) Validate() error

Validate checks the field values on BatchFollowsHasReq 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 (*BatchFollowsHasReq) ValidateAll

func (m *BatchFollowsHasReq) ValidateAll() error

ValidateAll checks the field values on BatchFollowsHasReq 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 BatchFollowsHasReqMultiError, or nil if none found.

type BatchFollowsHasReqMultiError

type BatchFollowsHasReqMultiError []error

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

func (BatchFollowsHasReqMultiError) AllErrors

func (m BatchFollowsHasReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchFollowsHasReqMultiError) Error

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

type BatchFollowsHasReqValidationError

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

BatchFollowsHasReqValidationError is the validation error returned by BatchFollowsHasReq.Validate if the designated constraints aren't met.

func (BatchFollowsHasReqValidationError) Cause

Cause function returns cause value.

func (BatchFollowsHasReqValidationError) Error

Error satisfies the builtin error interface

func (BatchFollowsHasReqValidationError) ErrorName

ErrorName returns error name.

func (BatchFollowsHasReqValidationError) Field

Field function returns field value.

func (BatchFollowsHasReqValidationError) Key

Key function returns key value.

func (BatchFollowsHasReqValidationError) Reason

Reason function returns reason value.

type BatchFollowsHasResp

type BatchFollowsHasResp struct {
	Item map[int64]bool `` // 批量关注关系
	/* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchFollowsHasResp) Descriptor deprecated

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

Deprecated: Use BatchFollowsHasResp.ProtoReflect.Descriptor instead.

func (*BatchFollowsHasResp) GetItem

func (x *BatchFollowsHasResp) GetItem() map[int64]bool

func (*BatchFollowsHasResp) ProtoMessage

func (*BatchFollowsHasResp) ProtoMessage()

func (*BatchFollowsHasResp) ProtoReflect

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

func (*BatchFollowsHasResp) Reset

func (x *BatchFollowsHasResp) Reset()

func (*BatchFollowsHasResp) String

func (x *BatchFollowsHasResp) String() string

func (*BatchFollowsHasResp) Validate

func (m *BatchFollowsHasResp) Validate() error

Validate checks the field values on BatchFollowsHasResp 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 (*BatchFollowsHasResp) ValidateAll

func (m *BatchFollowsHasResp) ValidateAll() error

ValidateAll checks the field values on BatchFollowsHasResp 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 BatchFollowsHasRespMultiError, or nil if none found.

type BatchFollowsHasRespMultiError

type BatchFollowsHasRespMultiError []error

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

func (BatchFollowsHasRespMultiError) AllErrors

func (m BatchFollowsHasRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchFollowsHasRespMultiError) Error

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

type BatchFollowsHasRespValidationError

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

BatchFollowsHasRespValidationError is the validation error returned by BatchFollowsHasResp.Validate if the designated constraints aren't met.

func (BatchFollowsHasRespValidationError) Cause

Cause function returns cause value.

func (BatchFollowsHasRespValidationError) Error

Error satisfies the builtin error interface

func (BatchFollowsHasRespValidationError) ErrorName

ErrorName returns error name.

func (BatchFollowsHasRespValidationError) Field

Field function returns field value.

func (BatchFollowsHasRespValidationError) Key

Key function returns key value.

func (BatchFollowsHasRespValidationError) Reason

Reason function returns reason value.

type BatchFollowsNumReq

type BatchFollowsNumReq struct {
	UserIds []int64 `protobuf:"varint,1,rep,packed,name=UserIds,proto3" json:"UserIds"` // 主播UID列表
	// contains filtered or unexported fields
}

批量获取关注数

func (*BatchFollowsNumReq) Descriptor deprecated

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

Deprecated: Use BatchFollowsNumReq.ProtoReflect.Descriptor instead.

func (*BatchFollowsNumReq) GetUserIds

func (x *BatchFollowsNumReq) GetUserIds() []int64

func (*BatchFollowsNumReq) ProtoMessage

func (*BatchFollowsNumReq) ProtoMessage()

func (*BatchFollowsNumReq) ProtoReflect

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

func (*BatchFollowsNumReq) Reset

func (x *BatchFollowsNumReq) Reset()

func (*BatchFollowsNumReq) String

func (x *BatchFollowsNumReq) String() string

func (*BatchFollowsNumReq) Validate

func (m *BatchFollowsNumReq) Validate() error

Validate checks the field values on BatchFollowsNumReq 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 (*BatchFollowsNumReq) ValidateAll

func (m *BatchFollowsNumReq) ValidateAll() error

ValidateAll checks the field values on BatchFollowsNumReq 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 BatchFollowsNumReqMultiError, or nil if none found.

type BatchFollowsNumReqMultiError

type BatchFollowsNumReqMultiError []error

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

func (BatchFollowsNumReqMultiError) AllErrors

func (m BatchFollowsNumReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchFollowsNumReqMultiError) Error

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

type BatchFollowsNumReqValidationError

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

BatchFollowsNumReqValidationError is the validation error returned by BatchFollowsNumReq.Validate if the designated constraints aren't met.

func (BatchFollowsNumReqValidationError) Cause

Cause function returns cause value.

func (BatchFollowsNumReqValidationError) Error

Error satisfies the builtin error interface

func (BatchFollowsNumReqValidationError) ErrorName

ErrorName returns error name.

func (BatchFollowsNumReqValidationError) Field

Field function returns field value.

func (BatchFollowsNumReqValidationError) Key

Key function returns key value.

func (BatchFollowsNumReqValidationError) Reason

Reason function returns reason value.

type BatchFollowsNumResp

type BatchFollowsNumResp struct {
	Item map[string]string `` // 用户基本信息
	/* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchFollowsNumResp) Descriptor deprecated

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

Deprecated: Use BatchFollowsNumResp.ProtoReflect.Descriptor instead.

func (*BatchFollowsNumResp) GetItem

func (x *BatchFollowsNumResp) GetItem() map[string]string

func (*BatchFollowsNumResp) ProtoMessage

func (*BatchFollowsNumResp) ProtoMessage()

func (*BatchFollowsNumResp) ProtoReflect

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

func (*BatchFollowsNumResp) Reset

func (x *BatchFollowsNumResp) Reset()

func (*BatchFollowsNumResp) String

func (x *BatchFollowsNumResp) String() string

func (*BatchFollowsNumResp) Validate

func (m *BatchFollowsNumResp) Validate() error

Validate checks the field values on BatchFollowsNumResp 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 (*BatchFollowsNumResp) ValidateAll

func (m *BatchFollowsNumResp) ValidateAll() error

ValidateAll checks the field values on BatchFollowsNumResp 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 BatchFollowsNumRespMultiError, or nil if none found.

type BatchFollowsNumRespMultiError

type BatchFollowsNumRespMultiError []error

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

func (BatchFollowsNumRespMultiError) AllErrors

func (m BatchFollowsNumRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchFollowsNumRespMultiError) Error

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

type BatchFollowsNumRespValidationError

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

BatchFollowsNumRespValidationError is the validation error returned by BatchFollowsNumResp.Validate if the designated constraints aren't met.

func (BatchFollowsNumRespValidationError) Cause

Cause function returns cause value.

func (BatchFollowsNumRespValidationError) Error

Error satisfies the builtin error interface

func (BatchFollowsNumRespValidationError) ErrorName

ErrorName returns error name.

func (BatchFollowsNumRespValidationError) Field

Field function returns field value.

func (BatchFollowsNumRespValidationError) Key

Key function returns key value.

func (BatchFollowsNumRespValidationError) Reason

Reason function returns reason value.

type FansHasReq

type FansHasReq struct {
	UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	FansId int64 `protobuf:"varint,2,opt,name=FansId,proto3" json:"FansId"`
	// contains filtered or unexported fields
}

是否是粉丝

func (*FansHasReq) Descriptor deprecated

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

Deprecated: Use FansHasReq.ProtoReflect.Descriptor instead.

func (*FansHasReq) GetFansId

func (x *FansHasReq) GetFansId() int64

func (*FansHasReq) GetUserId

func (x *FansHasReq) GetUserId() int64

func (*FansHasReq) ProtoMessage

func (*FansHasReq) ProtoMessage()

func (*FansHasReq) ProtoReflect

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

func (*FansHasReq) Reset

func (x *FansHasReq) Reset()

func (*FansHasReq) String

func (x *FansHasReq) String() string

func (*FansHasReq) Validate

func (m *FansHasReq) Validate() error

Validate checks the field values on FansHasReq 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 (*FansHasReq) ValidateAll

func (m *FansHasReq) ValidateAll() error

ValidateAll checks the field values on FansHasReq 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 FansHasReqMultiError, or nil if none found.

type FansHasReqMultiError

type FansHasReqMultiError []error

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

func (FansHasReqMultiError) AllErrors

func (m FansHasReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FansHasReqMultiError) Error

func (m FansHasReqMultiError) Error() string

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

type FansHasReqValidationError

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

FansHasReqValidationError is the validation error returned by FansHasReq.Validate if the designated constraints aren't met.

func (FansHasReqValidationError) Cause

func (e FansHasReqValidationError) Cause() error

Cause function returns cause value.

func (FansHasReqValidationError) Error

Error satisfies the builtin error interface

func (FansHasReqValidationError) ErrorName

func (e FansHasReqValidationError) ErrorName() string

ErrorName returns error name.

func (FansHasReqValidationError) Field

Field function returns field value.

func (FansHasReqValidationError) Key

Key function returns key value.

func (FansHasReqValidationError) Reason

func (e FansHasReqValidationError) Reason() string

Reason function returns reason value.

type FansHasResp

type FansHasResp struct {
	Result bool `protobuf:"varint,1,opt,name=Result,proto3" json:"Result"`
	// contains filtered or unexported fields
}

func (*FansHasResp) Descriptor deprecated

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

Deprecated: Use FansHasResp.ProtoReflect.Descriptor instead.

func (*FansHasResp) GetResult

func (x *FansHasResp) GetResult() bool

func (*FansHasResp) ProtoMessage

func (*FansHasResp) ProtoMessage()

func (*FansHasResp) ProtoReflect

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

func (*FansHasResp) Reset

func (x *FansHasResp) Reset()

func (*FansHasResp) String

func (x *FansHasResp) String() string

func (*FansHasResp) Validate

func (m *FansHasResp) Validate() error

Validate checks the field values on FansHasResp 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 (*FansHasResp) ValidateAll

func (m *FansHasResp) ValidateAll() error

ValidateAll checks the field values on FansHasResp 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 FansHasRespMultiError, or nil if none found.

type FansHasRespMultiError

type FansHasRespMultiError []error

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

func (FansHasRespMultiError) AllErrors

func (m FansHasRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FansHasRespMultiError) Error

func (m FansHasRespMultiError) Error() string

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

type FansHasRespValidationError

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

FansHasRespValidationError is the validation error returned by FansHasResp.Validate if the designated constraints aren't met.

func (FansHasRespValidationError) Cause

Cause function returns cause value.

func (FansHasRespValidationError) Error

Error satisfies the builtin error interface

func (FansHasRespValidationError) ErrorName

func (e FansHasRespValidationError) ErrorName() string

ErrorName returns error name.

func (FansHasRespValidationError) Field

Field function returns field value.

func (FansHasRespValidationError) Key

Key function returns key value.

func (FansHasRespValidationError) Reason

Reason function returns reason value.

type FansListReq

type FansListReq struct {
	UserId   int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	Page     int32 `protobuf:"varint,2,opt,name=Page,proto3" json:"Page"`
	PageSize int32 `protobuf:"varint,3,opt,name=PageSize,proto3" json:"PageSize"`
	// contains filtered or unexported fields
}

粉丝列表

func (*FansListReq) Descriptor deprecated

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

Deprecated: Use FansListReq.ProtoReflect.Descriptor instead.

func (*FansListReq) GetPage

func (x *FansListReq) GetPage() int32

func (*FansListReq) GetPageSize

func (x *FansListReq) GetPageSize() int32

func (*FansListReq) GetUserId

func (x *FansListReq) GetUserId() int64

func (*FansListReq) ProtoMessage

func (*FansListReq) ProtoMessage()

func (*FansListReq) ProtoReflect

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

func (*FansListReq) Reset

func (x *FansListReq) Reset()

func (*FansListReq) String

func (x *FansListReq) String() string

func (*FansListReq) Validate

func (m *FansListReq) Validate() error

Validate checks the field values on FansListReq 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 (*FansListReq) ValidateAll

func (m *FansListReq) ValidateAll() error

ValidateAll checks the field values on FansListReq 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 FansListReqMultiError, or nil if none found.

type FansListReqMultiError

type FansListReqMultiError []error

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

func (FansListReqMultiError) AllErrors

func (m FansListReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FansListReqMultiError) Error

func (m FansListReqMultiError) Error() string

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

type FansListReqValidationError

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

FansListReqValidationError is the validation error returned by FansListReq.Validate if the designated constraints aren't met.

func (FansListReqValidationError) Cause

Cause function returns cause value.

func (FansListReqValidationError) Error

Error satisfies the builtin error interface

func (FansListReqValidationError) ErrorName

func (e FansListReqValidationError) ErrorName() string

ErrorName returns error name.

func (FansListReqValidationError) Field

Field function returns field value.

func (FansListReqValidationError) Key

Key function returns key value.

func (FansListReqValidationError) Reason

Reason function returns reason value.

type FansListResp

type FansListResp struct {
	UserInfos []*RelationItem `protobuf:"bytes,1,rep,name=UserInfos,proto3" json:"UserInfos"`
	Total     int64           `protobuf:"varint,2,opt,name=Total,proto3" json:"Total"`
	Page      int32           `protobuf:"varint,3,opt,name=Page,proto3" json:"Page"`
	PageSize  int32           `protobuf:"varint,4,opt,name=PageSize,proto3" json:"PageSize"`
	// contains filtered or unexported fields
}

func (*FansListResp) Descriptor deprecated

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

Deprecated: Use FansListResp.ProtoReflect.Descriptor instead.

func (*FansListResp) GetPage

func (x *FansListResp) GetPage() int32

func (*FansListResp) GetPageSize

func (x *FansListResp) GetPageSize() int32

func (*FansListResp) GetTotal

func (x *FansListResp) GetTotal() int64

func (*FansListResp) GetUserInfos

func (x *FansListResp) GetUserInfos() []*RelationItem

func (*FansListResp) ProtoMessage

func (*FansListResp) ProtoMessage()

func (*FansListResp) ProtoReflect

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

func (*FansListResp) Reset

func (x *FansListResp) Reset()

func (*FansListResp) String

func (x *FansListResp) String() string

func (*FansListResp) Validate

func (m *FansListResp) Validate() error

Validate checks the field values on FansListResp 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 (*FansListResp) ValidateAll

func (m *FansListResp) ValidateAll() error

ValidateAll checks the field values on FansListResp 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 FansListRespMultiError, or nil if none found.

type FansListRespMultiError

type FansListRespMultiError []error

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

func (FansListRespMultiError) AllErrors

func (m FansListRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FansListRespMultiError) Error

func (m FansListRespMultiError) Error() string

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

type FansListRespValidationError

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

FansListRespValidationError is the validation error returned by FansListResp.Validate if the designated constraints aren't met.

func (FansListRespValidationError) Cause

Cause function returns cause value.

func (FansListRespValidationError) Error

Error satisfies the builtin error interface

func (FansListRespValidationError) ErrorName

func (e FansListRespValidationError) ErrorName() string

ErrorName returns error name.

func (FansListRespValidationError) Field

Field function returns field value.

func (FansListRespValidationError) Key

Key function returns key value.

func (FansListRespValidationError) Reason

Reason function returns reason value.

type FansNumReq

type FansNumReq struct {
	UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	// contains filtered or unexported fields
}

粉丝数

func (*FansNumReq) Descriptor deprecated

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

Deprecated: Use FansNumReq.ProtoReflect.Descriptor instead.

func (*FansNumReq) GetUserId

func (x *FansNumReq) GetUserId() int64

func (*FansNumReq) ProtoMessage

func (*FansNumReq) ProtoMessage()

func (*FansNumReq) ProtoReflect

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

func (*FansNumReq) Reset

func (x *FansNumReq) Reset()

func (*FansNumReq) String

func (x *FansNumReq) String() string

func (*FansNumReq) Validate

func (m *FansNumReq) Validate() error

Validate checks the field values on FansNumReq 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 (*FansNumReq) ValidateAll

func (m *FansNumReq) ValidateAll() error

ValidateAll checks the field values on FansNumReq 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 FansNumReqMultiError, or nil if none found.

type FansNumReqMultiError

type FansNumReqMultiError []error

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

func (FansNumReqMultiError) AllErrors

func (m FansNumReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FansNumReqMultiError) Error

func (m FansNumReqMultiError) Error() string

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

type FansNumReqValidationError

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

FansNumReqValidationError is the validation error returned by FansNumReq.Validate if the designated constraints aren't met.

func (FansNumReqValidationError) Cause

func (e FansNumReqValidationError) Cause() error

Cause function returns cause value.

func (FansNumReqValidationError) Error

Error satisfies the builtin error interface

func (FansNumReqValidationError) ErrorName

func (e FansNumReqValidationError) ErrorName() string

ErrorName returns error name.

func (FansNumReqValidationError) Field

Field function returns field value.

func (FansNumReqValidationError) Key

Key function returns key value.

func (FansNumReqValidationError) Reason

func (e FansNumReqValidationError) Reason() string

Reason function returns reason value.

type FansNumResp

type FansNumResp struct {
	Num int64 `protobuf:"varint,1,opt,name=Num,proto3" json:"Num"`
	// contains filtered or unexported fields
}

func (*FansNumResp) Descriptor deprecated

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

Deprecated: Use FansNumResp.ProtoReflect.Descriptor instead.

func (*FansNumResp) GetNum

func (x *FansNumResp) GetNum() int64

func (*FansNumResp) ProtoMessage

func (*FansNumResp) ProtoMessage()

func (*FansNumResp) ProtoReflect

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

func (*FansNumResp) Reset

func (x *FansNumResp) Reset()

func (*FansNumResp) String

func (x *FansNumResp) String() string

func (*FansNumResp) Validate

func (m *FansNumResp) Validate() error

Validate checks the field values on FansNumResp 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 (*FansNumResp) ValidateAll

func (m *FansNumResp) ValidateAll() error

ValidateAll checks the field values on FansNumResp 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 FansNumRespMultiError, or nil if none found.

type FansNumRespMultiError

type FansNumRespMultiError []error

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

func (FansNumRespMultiError) AllErrors

func (m FansNumRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FansNumRespMultiError) Error

func (m FansNumRespMultiError) Error() string

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

type FansNumRespValidationError

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

FansNumRespValidationError is the validation error returned by FansNumResp.Validate if the designated constraints aren't met.

func (FansNumRespValidationError) Cause

Cause function returns cause value.

func (FansNumRespValidationError) Error

Error satisfies the builtin error interface

func (FansNumRespValidationError) ErrorName

func (e FansNumRespValidationError) ErrorName() string

ErrorName returns error name.

func (FansNumRespValidationError) Field

Field function returns field value.

func (FansNumRespValidationError) Key

Key function returns key value.

func (FansNumRespValidationError) Reason

Reason function returns reason value.

type FollowsAddReq

type FollowsAddReq struct {
	UserId          int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	FollowId        int64 `protobuf:"varint,2,opt,name=FollowId,proto3" json:"FollowId"`
	SendChatroomMsg int32 `protobuf:"varint,3,opt,name=SendChatroomMsg,proto3" json:"SendChatroomMsg"`
	LiveId          int64 `protobuf:"varint,4,opt,name=LiveId,proto3" json:"LiveId"`
	// contains filtered or unexported fields
}

关注

func (*FollowsAddReq) Descriptor deprecated

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

Deprecated: Use FollowsAddReq.ProtoReflect.Descriptor instead.

func (*FollowsAddReq) GetFollowId

func (x *FollowsAddReq) GetFollowId() int64

func (*FollowsAddReq) GetLiveId

func (x *FollowsAddReq) GetLiveId() int64

func (*FollowsAddReq) GetSendChatroomMsg

func (x *FollowsAddReq) GetSendChatroomMsg() int32

func (*FollowsAddReq) GetUserId

func (x *FollowsAddReq) GetUserId() int64

func (*FollowsAddReq) ProtoMessage

func (*FollowsAddReq) ProtoMessage()

func (*FollowsAddReq) ProtoReflect

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

func (*FollowsAddReq) Reset

func (x *FollowsAddReq) Reset()

func (*FollowsAddReq) String

func (x *FollowsAddReq) String() string

func (*FollowsAddReq) Validate

func (m *FollowsAddReq) Validate() error

Validate checks the field values on FollowsAddReq 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 (*FollowsAddReq) ValidateAll

func (m *FollowsAddReq) ValidateAll() error

ValidateAll checks the field values on FollowsAddReq 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 FollowsAddReqMultiError, or nil if none found.

type FollowsAddReqMultiError

type FollowsAddReqMultiError []error

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

func (FollowsAddReqMultiError) AllErrors

func (m FollowsAddReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FollowsAddReqMultiError) Error

func (m FollowsAddReqMultiError) Error() string

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

type FollowsAddReqValidationError

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

FollowsAddReqValidationError is the validation error returned by FollowsAddReq.Validate if the designated constraints aren't met.

func (FollowsAddReqValidationError) Cause

Cause function returns cause value.

func (FollowsAddReqValidationError) Error

Error satisfies the builtin error interface

func (FollowsAddReqValidationError) ErrorName

func (e FollowsAddReqValidationError) ErrorName() string

ErrorName returns error name.

func (FollowsAddReqValidationError) Field

Field function returns field value.

func (FollowsAddReqValidationError) Key

Key function returns key value.

func (FollowsAddReqValidationError) Reason

Reason function returns reason value.

type FollowsDelReq

type FollowsDelReq struct {
	UserId   int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	FollowId int64 `protobuf:"varint,2,opt,name=FollowId,proto3" json:"FollowId"`
	// contains filtered or unexported fields
}

取消关注

func (*FollowsDelReq) Descriptor deprecated

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

Deprecated: Use FollowsDelReq.ProtoReflect.Descriptor instead.

func (*FollowsDelReq) GetFollowId

func (x *FollowsDelReq) GetFollowId() int64

func (*FollowsDelReq) GetUserId

func (x *FollowsDelReq) GetUserId() int64

func (*FollowsDelReq) ProtoMessage

func (*FollowsDelReq) ProtoMessage()

func (*FollowsDelReq) ProtoReflect

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

func (*FollowsDelReq) Reset

func (x *FollowsDelReq) Reset()

func (*FollowsDelReq) String

func (x *FollowsDelReq) String() string

func (*FollowsDelReq) Validate

func (m *FollowsDelReq) Validate() error

Validate checks the field values on FollowsDelReq 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 (*FollowsDelReq) ValidateAll

func (m *FollowsDelReq) ValidateAll() error

ValidateAll checks the field values on FollowsDelReq 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 FollowsDelReqMultiError, or nil if none found.

type FollowsDelReqMultiError

type FollowsDelReqMultiError []error

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

func (FollowsDelReqMultiError) AllErrors

func (m FollowsDelReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FollowsDelReqMultiError) Error

func (m FollowsDelReqMultiError) Error() string

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

type FollowsDelReqValidationError

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

FollowsDelReqValidationError is the validation error returned by FollowsDelReq.Validate if the designated constraints aren't met.

func (FollowsDelReqValidationError) Cause

Cause function returns cause value.

func (FollowsDelReqValidationError) Error

Error satisfies the builtin error interface

func (FollowsDelReqValidationError) ErrorName

func (e FollowsDelReqValidationError) ErrorName() string

ErrorName returns error name.

func (FollowsDelReqValidationError) Field

Field function returns field value.

func (FollowsDelReqValidationError) Key

Key function returns key value.

func (FollowsDelReqValidationError) Reason

Reason function returns reason value.

type FollowsHasReq

type FollowsHasReq struct {
	UserId   int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	FollowId int64 `protobuf:"varint,2,opt,name=FollowId,proto3" json:"FollowId"`
	// contains filtered or unexported fields
}

是否关注

func (*FollowsHasReq) Descriptor deprecated

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

Deprecated: Use FollowsHasReq.ProtoReflect.Descriptor instead.

func (*FollowsHasReq) GetFollowId

func (x *FollowsHasReq) GetFollowId() int64

func (*FollowsHasReq) GetUserId

func (x *FollowsHasReq) GetUserId() int64

func (*FollowsHasReq) ProtoMessage

func (*FollowsHasReq) ProtoMessage()

func (*FollowsHasReq) ProtoReflect

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

func (*FollowsHasReq) Reset

func (x *FollowsHasReq) Reset()

func (*FollowsHasReq) String

func (x *FollowsHasReq) String() string

func (*FollowsHasReq) Validate

func (m *FollowsHasReq) Validate() error

Validate checks the field values on FollowsHasReq 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 (*FollowsHasReq) ValidateAll

func (m *FollowsHasReq) ValidateAll() error

ValidateAll checks the field values on FollowsHasReq 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 FollowsHasReqMultiError, or nil if none found.

type FollowsHasReqMultiError

type FollowsHasReqMultiError []error

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

func (FollowsHasReqMultiError) AllErrors

func (m FollowsHasReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FollowsHasReqMultiError) Error

func (m FollowsHasReqMultiError) Error() string

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

type FollowsHasReqValidationError

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

FollowsHasReqValidationError is the validation error returned by FollowsHasReq.Validate if the designated constraints aren't met.

func (FollowsHasReqValidationError) Cause

Cause function returns cause value.

func (FollowsHasReqValidationError) Error

Error satisfies the builtin error interface

func (FollowsHasReqValidationError) ErrorName

func (e FollowsHasReqValidationError) ErrorName() string

ErrorName returns error name.

func (FollowsHasReqValidationError) Field

Field function returns field value.

func (FollowsHasReqValidationError) Key

Key function returns key value.

func (FollowsHasReqValidationError) Reason

Reason function returns reason value.

type FollowsHasResp

type FollowsHasResp struct {
	Result bool `protobuf:"varint,1,opt,name=Result,proto3" json:"Result"`
	// contains filtered or unexported fields
}

func (*FollowsHasResp) Descriptor deprecated

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

Deprecated: Use FollowsHasResp.ProtoReflect.Descriptor instead.

func (*FollowsHasResp) GetResult

func (x *FollowsHasResp) GetResult() bool

func (*FollowsHasResp) ProtoMessage

func (*FollowsHasResp) ProtoMessage()

func (*FollowsHasResp) ProtoReflect

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

func (*FollowsHasResp) Reset

func (x *FollowsHasResp) Reset()

func (*FollowsHasResp) String

func (x *FollowsHasResp) String() string

func (*FollowsHasResp) Validate

func (m *FollowsHasResp) Validate() error

Validate checks the field values on FollowsHasResp 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 (*FollowsHasResp) ValidateAll

func (m *FollowsHasResp) ValidateAll() error

ValidateAll checks the field values on FollowsHasResp 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 FollowsHasRespMultiError, or nil if none found.

type FollowsHasRespMultiError

type FollowsHasRespMultiError []error

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

func (FollowsHasRespMultiError) AllErrors

func (m FollowsHasRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FollowsHasRespMultiError) Error

func (m FollowsHasRespMultiError) Error() string

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

type FollowsHasRespValidationError

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

FollowsHasRespValidationError is the validation error returned by FollowsHasResp.Validate if the designated constraints aren't met.

func (FollowsHasRespValidationError) Cause

Cause function returns cause value.

func (FollowsHasRespValidationError) Error

Error satisfies the builtin error interface

func (FollowsHasRespValidationError) ErrorName

func (e FollowsHasRespValidationError) ErrorName() string

ErrorName returns error name.

func (FollowsHasRespValidationError) Field

Field function returns field value.

func (FollowsHasRespValidationError) Key

Key function returns key value.

func (FollowsHasRespValidationError) Reason

Reason function returns reason value.

type FollowsListReq

type FollowsListReq struct {
	UserId   int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	Page     int32 `protobuf:"varint,2,opt,name=Page,proto3" json:"Page"`
	PageSize int32 `protobuf:"varint,3,opt,name=PageSize,proto3" json:"PageSize"`
	// contains filtered or unexported fields
}

关注列表

func (*FollowsListReq) Descriptor deprecated

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

Deprecated: Use FollowsListReq.ProtoReflect.Descriptor instead.

func (*FollowsListReq) GetPage

func (x *FollowsListReq) GetPage() int32

func (*FollowsListReq) GetPageSize

func (x *FollowsListReq) GetPageSize() int32

func (*FollowsListReq) GetUserId

func (x *FollowsListReq) GetUserId() int64

func (*FollowsListReq) ProtoMessage

func (*FollowsListReq) ProtoMessage()

func (*FollowsListReq) ProtoReflect

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

func (*FollowsListReq) Reset

func (x *FollowsListReq) Reset()

func (*FollowsListReq) String

func (x *FollowsListReq) String() string

func (*FollowsListReq) Validate

func (m *FollowsListReq) Validate() error

Validate checks the field values on FollowsListReq 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 (*FollowsListReq) ValidateAll

func (m *FollowsListReq) ValidateAll() error

ValidateAll checks the field values on FollowsListReq 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 FollowsListReqMultiError, or nil if none found.

type FollowsListReqMultiError

type FollowsListReqMultiError []error

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

func (FollowsListReqMultiError) AllErrors

func (m FollowsListReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FollowsListReqMultiError) Error

func (m FollowsListReqMultiError) Error() string

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

type FollowsListReqValidationError

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

FollowsListReqValidationError is the validation error returned by FollowsListReq.Validate if the designated constraints aren't met.

func (FollowsListReqValidationError) Cause

Cause function returns cause value.

func (FollowsListReqValidationError) Error

Error satisfies the builtin error interface

func (FollowsListReqValidationError) ErrorName

func (e FollowsListReqValidationError) ErrorName() string

ErrorName returns error name.

func (FollowsListReqValidationError) Field

Field function returns field value.

func (FollowsListReqValidationError) Key

Key function returns key value.

func (FollowsListReqValidationError) Reason

Reason function returns reason value.

type FollowsListResp

type FollowsListResp struct {
	UserInfos []*RelationItem `protobuf:"bytes,1,rep,name=UserInfos,proto3" json:"UserInfos"`
	Total     int64           `protobuf:"varint,2,opt,name=Total,proto3" json:"Total"`
	Page      int32           `protobuf:"varint,3,opt,name=Page,proto3" json:"Page"`
	PageSize  int32           `protobuf:"varint,4,opt,name=PageSize,proto3" json:"PageSize"`
	// contains filtered or unexported fields
}

关注列表

func (*FollowsListResp) Descriptor deprecated

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

Deprecated: Use FollowsListResp.ProtoReflect.Descriptor instead.

func (*FollowsListResp) GetPage

func (x *FollowsListResp) GetPage() int32

func (*FollowsListResp) GetPageSize

func (x *FollowsListResp) GetPageSize() int32

func (*FollowsListResp) GetTotal

func (x *FollowsListResp) GetTotal() int64

func (*FollowsListResp) GetUserInfos

func (x *FollowsListResp) GetUserInfos() []*RelationItem

func (*FollowsListResp) ProtoMessage

func (*FollowsListResp) ProtoMessage()

func (*FollowsListResp) ProtoReflect

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

func (*FollowsListResp) Reset

func (x *FollowsListResp) Reset()

func (*FollowsListResp) String

func (x *FollowsListResp) String() string

func (*FollowsListResp) Validate

func (m *FollowsListResp) Validate() error

Validate checks the field values on FollowsListResp 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 (*FollowsListResp) ValidateAll

func (m *FollowsListResp) ValidateAll() error

ValidateAll checks the field values on FollowsListResp 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 FollowsListRespMultiError, or nil if none found.

type FollowsListRespMultiError

type FollowsListRespMultiError []error

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

func (FollowsListRespMultiError) AllErrors

func (m FollowsListRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FollowsListRespMultiError) Error

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

type FollowsListRespValidationError

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

FollowsListRespValidationError is the validation error returned by FollowsListResp.Validate if the designated constraints aren't met.

func (FollowsListRespValidationError) Cause

Cause function returns cause value.

func (FollowsListRespValidationError) Error

Error satisfies the builtin error interface

func (FollowsListRespValidationError) ErrorName

func (e FollowsListRespValidationError) ErrorName() string

ErrorName returns error name.

func (FollowsListRespValidationError) Field

Field function returns field value.

func (FollowsListRespValidationError) Key

Key function returns key value.

func (FollowsListRespValidationError) Reason

Reason function returns reason value.

type FollowsNumReq

type FollowsNumReq struct {
	UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	// contains filtered or unexported fields
}

关注数

func (*FollowsNumReq) Descriptor deprecated

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

Deprecated: Use FollowsNumReq.ProtoReflect.Descriptor instead.

func (*FollowsNumReq) GetUserId

func (x *FollowsNumReq) GetUserId() int64

func (*FollowsNumReq) ProtoMessage

func (*FollowsNumReq) ProtoMessage()

func (*FollowsNumReq) ProtoReflect

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

func (*FollowsNumReq) Reset

func (x *FollowsNumReq) Reset()

func (*FollowsNumReq) String

func (x *FollowsNumReq) String() string

func (*FollowsNumReq) Validate

func (m *FollowsNumReq) Validate() error

Validate checks the field values on FollowsNumReq 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 (*FollowsNumReq) ValidateAll

func (m *FollowsNumReq) ValidateAll() error

ValidateAll checks the field values on FollowsNumReq 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 FollowsNumReqMultiError, or nil if none found.

type FollowsNumReqMultiError

type FollowsNumReqMultiError []error

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

func (FollowsNumReqMultiError) AllErrors

func (m FollowsNumReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FollowsNumReqMultiError) Error

func (m FollowsNumReqMultiError) Error() string

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

type FollowsNumReqValidationError

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

FollowsNumReqValidationError is the validation error returned by FollowsNumReq.Validate if the designated constraints aren't met.

func (FollowsNumReqValidationError) Cause

Cause function returns cause value.

func (FollowsNumReqValidationError) Error

Error satisfies the builtin error interface

func (FollowsNumReqValidationError) ErrorName

func (e FollowsNumReqValidationError) ErrorName() string

ErrorName returns error name.

func (FollowsNumReqValidationError) Field

Field function returns field value.

func (FollowsNumReqValidationError) Key

Key function returns key value.

func (FollowsNumReqValidationError) Reason

Reason function returns reason value.

type FollowsNumResp

type FollowsNumResp struct {
	Num int64 `protobuf:"varint,1,opt,name=Num,proto3" json:"Num"`
	// contains filtered or unexported fields
}

func (*FollowsNumResp) Descriptor deprecated

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

Deprecated: Use FollowsNumResp.ProtoReflect.Descriptor instead.

func (*FollowsNumResp) GetNum

func (x *FollowsNumResp) GetNum() int64

func (*FollowsNumResp) ProtoMessage

func (*FollowsNumResp) ProtoMessage()

func (*FollowsNumResp) ProtoReflect

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

func (*FollowsNumResp) Reset

func (x *FollowsNumResp) Reset()

func (*FollowsNumResp) String

func (x *FollowsNumResp) String() string

func (*FollowsNumResp) Validate

func (m *FollowsNumResp) Validate() error

Validate checks the field values on FollowsNumResp 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 (*FollowsNumResp) ValidateAll

func (m *FollowsNumResp) ValidateAll() error

ValidateAll checks the field values on FollowsNumResp 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 FollowsNumRespMultiError, or nil if none found.

type FollowsNumRespMultiError

type FollowsNumRespMultiError []error

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

func (FollowsNumRespMultiError) AllErrors

func (m FollowsNumRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FollowsNumRespMultiError) Error

func (m FollowsNumRespMultiError) Error() string

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

type FollowsNumRespValidationError

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

FollowsNumRespValidationError is the validation error returned by FollowsNumResp.Validate if the designated constraints aren't met.

func (FollowsNumRespValidationError) Cause

Cause function returns cause value.

func (FollowsNumRespValidationError) Error

Error satisfies the builtin error interface

func (FollowsNumRespValidationError) ErrorName

func (e FollowsNumRespValidationError) ErrorName() string

ErrorName returns error name.

func (FollowsNumRespValidationError) Field

Field function returns field value.

func (FollowsNumRespValidationError) Key

Key function returns key value.

func (FollowsNumRespValidationError) Reason

Reason function returns reason value.

type FriendsListReq

type FriendsListReq struct {
	UserId   int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	Page     int32 `protobuf:"varint,2,opt,name=Page,proto3" json:"Page"`
	PageSize int32 `protobuf:"varint,3,opt,name=PageSize,proto3" json:"PageSize"`
	// contains filtered or unexported fields
}

好友列表

func (*FriendsListReq) Descriptor deprecated

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

Deprecated: Use FriendsListReq.ProtoReflect.Descriptor instead.

func (*FriendsListReq) GetPage

func (x *FriendsListReq) GetPage() int32

func (*FriendsListReq) GetPageSize

func (x *FriendsListReq) GetPageSize() int32

func (*FriendsListReq) GetUserId

func (x *FriendsListReq) GetUserId() int64

func (*FriendsListReq) ProtoMessage

func (*FriendsListReq) ProtoMessage()

func (*FriendsListReq) ProtoReflect

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

func (*FriendsListReq) Reset

func (x *FriendsListReq) Reset()

func (*FriendsListReq) String

func (x *FriendsListReq) String() string

func (*FriendsListReq) Validate

func (m *FriendsListReq) Validate() error

Validate checks the field values on FriendsListReq 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 (*FriendsListReq) ValidateAll

func (m *FriendsListReq) ValidateAll() error

ValidateAll checks the field values on FriendsListReq 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 FriendsListReqMultiError, or nil if none found.

type FriendsListReqMultiError

type FriendsListReqMultiError []error

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

func (FriendsListReqMultiError) AllErrors

func (m FriendsListReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FriendsListReqMultiError) Error

func (m FriendsListReqMultiError) Error() string

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

type FriendsListReqValidationError

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

FriendsListReqValidationError is the validation error returned by FriendsListReq.Validate if the designated constraints aren't met.

func (FriendsListReqValidationError) Cause

Cause function returns cause value.

func (FriendsListReqValidationError) Error

Error satisfies the builtin error interface

func (FriendsListReqValidationError) ErrorName

func (e FriendsListReqValidationError) ErrorName() string

ErrorName returns error name.

func (FriendsListReqValidationError) Field

Field function returns field value.

func (FriendsListReqValidationError) Key

Key function returns key value.

func (FriendsListReqValidationError) Reason

Reason function returns reason value.

type FriendsListResp

type FriendsListResp struct {
	UserInfos []*RelationItem `protobuf:"bytes,1,rep,name=UserInfos,proto3" json:"UserInfos"`
	Total     int64           `protobuf:"varint,2,opt,name=Total,proto3" json:"Total"`
	Page      int32           `protobuf:"varint,3,opt,name=Page,proto3" json:"Page"`
	PageSize  int32           `protobuf:"varint,4,opt,name=PageSize,proto3" json:"PageSize"`
	// contains filtered or unexported fields
}

func (*FriendsListResp) Descriptor deprecated

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

Deprecated: Use FriendsListResp.ProtoReflect.Descriptor instead.

func (*FriendsListResp) GetPage

func (x *FriendsListResp) GetPage() int32

func (*FriendsListResp) GetPageSize

func (x *FriendsListResp) GetPageSize() int32

func (*FriendsListResp) GetTotal

func (x *FriendsListResp) GetTotal() int64

func (*FriendsListResp) GetUserInfos

func (x *FriendsListResp) GetUserInfos() []*RelationItem

func (*FriendsListResp) ProtoMessage

func (*FriendsListResp) ProtoMessage()

func (*FriendsListResp) ProtoReflect

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

func (*FriendsListResp) Reset

func (x *FriendsListResp) Reset()

func (*FriendsListResp) String

func (x *FriendsListResp) String() string

func (*FriendsListResp) Validate

func (m *FriendsListResp) Validate() error

Validate checks the field values on FriendsListResp 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 (*FriendsListResp) ValidateAll

func (m *FriendsListResp) ValidateAll() error

ValidateAll checks the field values on FriendsListResp 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 FriendsListRespMultiError, or nil if none found.

type FriendsListRespMultiError

type FriendsListRespMultiError []error

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

func (FriendsListRespMultiError) AllErrors

func (m FriendsListRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FriendsListRespMultiError) Error

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

type FriendsListRespValidationError

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

FriendsListRespValidationError is the validation error returned by FriendsListResp.Validate if the designated constraints aren't met.

func (FriendsListRespValidationError) Cause

Cause function returns cause value.

func (FriendsListRespValidationError) Error

Error satisfies the builtin error interface

func (FriendsListRespValidationError) ErrorName

func (e FriendsListRespValidationError) ErrorName() string

ErrorName returns error name.

func (FriendsListRespValidationError) Field

Field function returns field value.

func (FriendsListRespValidationError) Key

Key function returns key value.

func (FriendsListRespValidationError) Reason

Reason function returns reason value.

type FriendsNumReq

type FriendsNumReq struct {
	UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`
	// contains filtered or unexported fields
}

好有数

func (*FriendsNumReq) Descriptor deprecated

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

Deprecated: Use FriendsNumReq.ProtoReflect.Descriptor instead.

func (*FriendsNumReq) GetUserId

func (x *FriendsNumReq) GetUserId() int64

func (*FriendsNumReq) ProtoMessage

func (*FriendsNumReq) ProtoMessage()

func (*FriendsNumReq) ProtoReflect

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

func (*FriendsNumReq) Reset

func (x *FriendsNumReq) Reset()

func (*FriendsNumReq) String

func (x *FriendsNumReq) String() string

func (*FriendsNumReq) Validate

func (m *FriendsNumReq) Validate() error

Validate checks the field values on FriendsNumReq 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 (*FriendsNumReq) ValidateAll

func (m *FriendsNumReq) ValidateAll() error

ValidateAll checks the field values on FriendsNumReq 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 FriendsNumReqMultiError, or nil if none found.

type FriendsNumReqMultiError

type FriendsNumReqMultiError []error

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

func (FriendsNumReqMultiError) AllErrors

func (m FriendsNumReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FriendsNumReqMultiError) Error

func (m FriendsNumReqMultiError) Error() string

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

type FriendsNumReqValidationError

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

FriendsNumReqValidationError is the validation error returned by FriendsNumReq.Validate if the designated constraints aren't met.

func (FriendsNumReqValidationError) Cause

Cause function returns cause value.

func (FriendsNumReqValidationError) Error

Error satisfies the builtin error interface

func (FriendsNumReqValidationError) ErrorName

func (e FriendsNumReqValidationError) ErrorName() string

ErrorName returns error name.

func (FriendsNumReqValidationError) Field

Field function returns field value.

func (FriendsNumReqValidationError) Key

Key function returns key value.

func (FriendsNumReqValidationError) Reason

Reason function returns reason value.

type FriendsNumResp

type FriendsNumResp struct {
	Num int64 `protobuf:"varint,1,opt,name=Num,proto3" json:"Num"`
	// contains filtered or unexported fields
}

func (*FriendsNumResp) Descriptor deprecated

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

Deprecated: Use FriendsNumResp.ProtoReflect.Descriptor instead.

func (*FriendsNumResp) GetNum

func (x *FriendsNumResp) GetNum() int64

func (*FriendsNumResp) ProtoMessage

func (*FriendsNumResp) ProtoMessage()

func (*FriendsNumResp) ProtoReflect

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

func (*FriendsNumResp) Reset

func (x *FriendsNumResp) Reset()

func (*FriendsNumResp) String

func (x *FriendsNumResp) String() string

func (*FriendsNumResp) Validate

func (m *FriendsNumResp) Validate() error

Validate checks the field values on FriendsNumResp 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 (*FriendsNumResp) ValidateAll

func (m *FriendsNumResp) ValidateAll() error

ValidateAll checks the field values on FriendsNumResp 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 FriendsNumRespMultiError, or nil if none found.

type FriendsNumRespMultiError

type FriendsNumRespMultiError []error

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

func (FriendsNumRespMultiError) AllErrors

func (m FriendsNumRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FriendsNumRespMultiError) Error

func (m FriendsNumRespMultiError) Error() string

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

type FriendsNumRespValidationError

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

FriendsNumRespValidationError is the validation error returned by FriendsNumResp.Validate if the designated constraints aren't met.

func (FriendsNumRespValidationError) Cause

Cause function returns cause value.

func (FriendsNumRespValidationError) Error

Error satisfies the builtin error interface

func (FriendsNumRespValidationError) ErrorName

func (e FriendsNumRespValidationError) ErrorName() string

ErrorName returns error name.

func (FriendsNumRespValidationError) Field

Field function returns field value.

func (FriendsNumRespValidationError) Key

Key function returns key value.

func (FriendsNumRespValidationError) Reason

Reason function returns reason value.

type RelationHandler

type RelationHandler interface {
	// 关注列表
	FollowsList(context.Context, *FollowsListReq, *FollowsListResp) error
	// 粉丝列表
	FansList(context.Context, *FansListReq, *FansListResp) error
	// 好友列表
	FriendsList(context.Context, *FriendsListReq, *FriendsListResp) error
	// 添加关注
	FollowsAdd(context.Context, *FollowsAddReq, *emptypb.Empty) error
	// 取消关注
	FollowsDel(context.Context, *FollowsDelReq, *emptypb.Empty) error
	// 是否关注
	FollowsHas(context.Context, *FollowsHasReq, *FollowsHasResp) error
	// 是否是粉丝
	FansHas(context.Context, *FansHasReq, *FollowsHasResp) error
	// 批量查询是否关注
	BatchFollowsHas(context.Context, *BatchFollowsHasReq, *BatchFollowsHasResp) error
	// 某个人的关注人数
	FollowsNum(context.Context, *FollowsNumReq, *FollowsNumResp) error
	// 某个人的粉丝数
	FansNum(context.Context, *FansNumReq, *FansNumResp) error
	// 某个人的粉丝数
	FriendsNum(context.Context, *FriendsNumReq, *FriendsNumResp) error
	// 批量关注人数
	BatchFollowNum(context.Context, *BatchFollowsNumReq, *FollowsNumResp) error
	// 某个人的粉丝数
	BatchFansNum(context.Context, *FansNumReq, *FansNumResp) error
	// 某个人的某个时间新增粉丝数
	AtTimeNewFans(context.Context, *AtTimeNewFansReq, *wrapperspb.Int32Value) error
	// 解散与多个用户的关系
	RemoveRelations(context.Context, *RemoveRelationsReq, *emptypb.Empty) error
}

type RelationItem

type RelationItem struct {
	CreateTime string `protobuf:"bytes,1,opt,name=CreateTime,proto3" json:"CreateTime"`
	UserId     int64  `protobuf:"varint,2,opt,name=UserId,proto3" json:"UserId"`
	// contains filtered or unexported fields
}

func (*RelationItem) Descriptor deprecated

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

Deprecated: Use RelationItem.ProtoReflect.Descriptor instead.

func (*RelationItem) GetCreateTime

func (x *RelationItem) GetCreateTime() string

func (*RelationItem) GetUserId

func (x *RelationItem) GetUserId() int64

func (*RelationItem) ProtoMessage

func (*RelationItem) ProtoMessage()

func (*RelationItem) ProtoReflect

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

func (*RelationItem) Reset

func (x *RelationItem) Reset()

func (*RelationItem) String

func (x *RelationItem) String() string

func (*RelationItem) Validate

func (m *RelationItem) Validate() error

Validate checks the field values on RelationItem 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 (*RelationItem) ValidateAll

func (m *RelationItem) ValidateAll() error

ValidateAll checks the field values on RelationItem 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 RelationItemMultiError, or nil if none found.

type RelationItemMultiError

type RelationItemMultiError []error

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

func (RelationItemMultiError) AllErrors

func (m RelationItemMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RelationItemMultiError) Error

func (m RelationItemMultiError) Error() string

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

type RelationItemValidationError

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

RelationItemValidationError is the validation error returned by RelationItem.Validate if the designated constraints aren't met.

func (RelationItemValidationError) Cause

Cause function returns cause value.

func (RelationItemValidationError) Error

Error satisfies the builtin error interface

func (RelationItemValidationError) ErrorName

func (e RelationItemValidationError) ErrorName() string

ErrorName returns error name.

func (RelationItemValidationError) Field

Field function returns field value.

func (RelationItemValidationError) Key

Key function returns key value.

func (RelationItemValidationError) Reason

Reason function returns reason value.

type RelationService

type RelationService interface {
	// 关注列表
	FollowsList(ctx context.Context, in *FollowsListReq, opts ...client.CallOption) (*FollowsListResp, error)
	// 粉丝列表
	FansList(ctx context.Context, in *FansListReq, opts ...client.CallOption) (*FansListResp, error)
	// 好友列表
	FriendsList(ctx context.Context, in *FriendsListReq, opts ...client.CallOption) (*FriendsListResp, error)
	// 添加关注
	FollowsAdd(ctx context.Context, in *FollowsAddReq, opts ...client.CallOption) (*emptypb.Empty, error)
	// 取消关注
	FollowsDel(ctx context.Context, in *FollowsDelReq, opts ...client.CallOption) (*emptypb.Empty, error)
	// 是否关注
	FollowsHas(ctx context.Context, in *FollowsHasReq, opts ...client.CallOption) (*FollowsHasResp, error)
	// 是否是粉丝
	FansHas(ctx context.Context, in *FansHasReq, opts ...client.CallOption) (*FollowsHasResp, error)
	// 批量查询是否关注
	BatchFollowsHas(ctx context.Context, in *BatchFollowsHasReq, opts ...client.CallOption) (*BatchFollowsHasResp, error)
	// 某个人的关注人数
	FollowsNum(ctx context.Context, in *FollowsNumReq, opts ...client.CallOption) (*FollowsNumResp, error)
	// 某个人的粉丝数
	FansNum(ctx context.Context, in *FansNumReq, opts ...client.CallOption) (*FansNumResp, error)
	// 某个人的粉丝数
	FriendsNum(ctx context.Context, in *FriendsNumReq, opts ...client.CallOption) (*FriendsNumResp, error)
	// 批量关注人数
	BatchFollowNum(ctx context.Context, in *BatchFollowsNumReq, opts ...client.CallOption) (*FollowsNumResp, error)
	// 某个人的粉丝数
	BatchFansNum(ctx context.Context, in *FansNumReq, opts ...client.CallOption) (*FansNumResp, error)
	// 某个人的某个时间新增粉丝数
	AtTimeNewFans(ctx context.Context, in *AtTimeNewFansReq, opts ...client.CallOption) (*wrapperspb.Int32Value, error)
	// 解散与多个用户的关系
	RemoveRelations(ctx context.Context, in *RemoveRelationsReq, opts ...client.CallOption) (*emptypb.Empty, error)
}

func NewRelationService

func NewRelationService(name string, c client.Client) RelationService

type RemoveRelationsReq

type RemoveRelationsReq struct {
	UserId          int64   `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"`                          // 用户id
	RelationUserIds []int64 `protobuf:"varint,2,rep,packed,name=RelationUserIds,proto3" json:"RelationUserIds"` // UserId 拉黑 RelationUserIds
	// contains filtered or unexported fields
}

func (*RemoveRelationsReq) Descriptor deprecated

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

Deprecated: Use RemoveRelationsReq.ProtoReflect.Descriptor instead.

func (*RemoveRelationsReq) GetRelationUserIds

func (x *RemoveRelationsReq) GetRelationUserIds() []int64

func (*RemoveRelationsReq) GetUserId

func (x *RemoveRelationsReq) GetUserId() int64

func (*RemoveRelationsReq) ProtoMessage

func (*RemoveRelationsReq) ProtoMessage()

func (*RemoveRelationsReq) ProtoReflect

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

func (*RemoveRelationsReq) Reset

func (x *RemoveRelationsReq) Reset()

func (*RemoveRelationsReq) String

func (x *RemoveRelationsReq) String() string

func (*RemoveRelationsReq) Validate

func (m *RemoveRelationsReq) Validate() error

Validate checks the field values on RemoveRelationsReq 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 (*RemoveRelationsReq) ValidateAll

func (m *RemoveRelationsReq) ValidateAll() error

ValidateAll checks the field values on RemoveRelationsReq 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 RemoveRelationsReqMultiError, or nil if none found.

type RemoveRelationsReqMultiError

type RemoveRelationsReqMultiError []error

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

func (RemoveRelationsReqMultiError) AllErrors

func (m RemoveRelationsReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RemoveRelationsReqMultiError) Error

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

type RemoveRelationsReqValidationError

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

RemoveRelationsReqValidationError is the validation error returned by RemoveRelationsReq.Validate if the designated constraints aren't met.

func (RemoveRelationsReqValidationError) Cause

Cause function returns cause value.

func (RemoveRelationsReqValidationError) Error

Error satisfies the builtin error interface

func (RemoveRelationsReqValidationError) ErrorName

ErrorName returns error name.

func (RemoveRelationsReqValidationError) Field

Field function returns field value.

func (RemoveRelationsReqValidationError) Key

Key function returns key value.

func (RemoveRelationsReqValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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