Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorCreateBlackDataFail(format string, args ...interface{}) *errors.Error
- func ErrorCreateFriendDataFail(format string, args ...interface{}) *errors.Error
- func ErrorDelFriendCacheDataFAIl(format string, args ...interface{}) *errors.Error
- func ErrorDelFriendRelationDataFail(format string, args ...interface{}) *errors.Error
- func ErrorFriendApplyListByIdFail(format string, args ...interface{}) *errors.Error
- func ErrorFriendNotExist(format string, args ...interface{}) *errors.Error
- func ErrorGetAllFriendIdFail(format string, args ...interface{}) *errors.Error
- func ErrorGetApplyFriendsFromByIdFail(format string, args ...interface{}) *errors.Error
- func ErrorGetFriendApplyDataFail(format string, args ...interface{}) *errors.Error
- func ErrorGetFriendApplyRequestDataFail(format string, args ...interface{}) *errors.Error
- func ErrorGetFriendBlacklistByIdFail(format string, args ...interface{}) *errors.Error
- func ErrorGetFriendByIdsFail(format string, args ...interface{}) *errors.Error
- func ErrorGetFriendInfoFail(format string, args ...interface{}) *errors.Error
- func ErrorGetInvitableFriendDataFAIl(format string, args ...interface{}) *errors.Error
- func ErrorGetUntreatedFriendsApplyReceiveFail(format string, args ...interface{}) *errors.Error
- func ErrorGetUserBlacklistinfoFail(format string, args ...interface{}) *errors.Error
- func ErrorRemoveUserBlackDataFail(format string, args ...interface{}) *errors.Error
- func ErrorUnknownSourceType(format string, args ...interface{}) *errors.Error
- func ErrorUpdateFriendRelationDataFAIl(format string, args ...interface{}) *errors.Error
- func ErrorUserCloseCardAdd(format string, args ...interface{}) *errors.Error
- func ErrorUserCloseGroupAdd(format string, args ...interface{}) *errors.Error
- func ErrorUserCloseIdAdd(format string, args ...interface{}) *errors.Error
- func ErrorUserClosePhoneAdd(format string, args ...interface{}) *errors.Error
- func ErrorUserCloseRqCodeAdd(format string, args ...interface{}) *errors.Error
- func IsCreateBlackDataFail(err error) bool
- func IsCreateFriendDataFail(err error) bool
- func IsDelFriendCacheDataFAIl(err error) bool
- func IsDelFriendRelationDataFail(err error) bool
- func IsFriendApplyListByIdFail(err error) bool
- func IsFriendNotExist(err error) bool
- func IsGetAllFriendIdFail(err error) bool
- func IsGetApplyFriendsFromByIdFail(err error) bool
- func IsGetFriendApplyDataFail(err error) bool
- func IsGetFriendApplyRequestDataFail(err error) bool
- func IsGetFriendBlacklistByIdFail(err error) bool
- func IsGetFriendByIdsFail(err error) bool
- func IsGetFriendInfoFail(err error) bool
- func IsGetInvitableFriendDataFAIl(err error) bool
- func IsGetUntreatedFriendsApplyReceiveFail(err error) bool
- func IsGetUserBlacklistinfoFail(err error) bool
- func IsRemoveUserBlackDataFail(err error) bool
- func IsUnknownSourceType(err error) bool
- func IsUpdateFriendRelationDataFAIl(err error) bool
- func IsUserCloseCardAdd(err error) bool
- func IsUserCloseGroupAdd(err error) bool
- func IsUserCloseIdAdd(err error) bool
- func IsUserClosePhoneAdd(err error) bool
- func IsUserCloseRqCodeAdd(err error) bool
- func RegisterFriendServer(s grpc.ServiceRegistrar, srv FriendServer)
- type AddBlackReq
- func (*AddBlackReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddBlackReq) GetBlackUserID() string
- func (x *AddBlackReq) GetOwnerUserID() string
- func (*AddBlackReq) ProtoMessage()
- func (x *AddBlackReq) ProtoReflect() protoreflect.Message
- func (x *AddBlackReq) Reset()
- func (x *AddBlackReq) String() string
- func (m *AddBlackReq) Validate() error
- func (m *AddBlackReq) ValidateAll() error
- type AddBlackReqMultiError
- type AddBlackReqValidationError
- func (e AddBlackReqValidationError) Cause() error
- func (e AddBlackReqValidationError) Error() string
- func (e AddBlackReqValidationError) ErrorName() string
- func (e AddBlackReqValidationError) Field() string
- func (e AddBlackReqValidationError) Key() bool
- func (e AddBlackReqValidationError) Reason() string
- type AddFriendReq
- func (*AddFriendReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddFriendReq) GetExtraMsg() string
- func (x *AddFriendReq) GetFromUserID() string
- func (x *AddFriendReq) GetRemarkMsg() string
- func (x *AddFriendReq) GetReqMsg() string
- func (x *AddFriendReq) GetToUserID() string
- func (x *AddFriendReq) GetType() int64
- func (x *AddFriendReq) GetUserID() string
- func (*AddFriendReq) ProtoMessage()
- func (x *AddFriendReq) ProtoReflect() protoreflect.Message
- func (x *AddFriendReq) Reset()
- func (x *AddFriendReq) String() string
- func (m *AddFriendReq) Validate() error
- func (m *AddFriendReq) ValidateAll() error
- type AddFriendReqMultiError
- type AddFriendReqValidationError
- func (e AddFriendReqValidationError) Cause() error
- func (e AddFriendReqValidationError) Error() string
- func (e AddFriendReqValidationError) ErrorName() string
- func (e AddFriendReqValidationError) Field() string
- func (e AddFriendReqValidationError) Key() bool
- func (e AddFriendReqValidationError) Reason() string
- type BlackListReply
- func (*BlackListReply) Descriptor() ([]byte, []int)deprecated
- func (x *BlackListReply) GetList() []*v2.BlackInfo
- func (x *BlackListReply) GetTotal() int64
- func (*BlackListReply) ProtoMessage()
- func (x *BlackListReply) ProtoReflect() protoreflect.Message
- func (x *BlackListReply) Reset()
- func (x *BlackListReply) String() string
- func (m *BlackListReply) Validate() error
- func (m *BlackListReply) ValidateAll() error
- type BlackListReplyMultiError
- type BlackListReplyValidationError
- func (e BlackListReplyValidationError) Cause() error
- func (e BlackListReplyValidationError) Error() string
- func (e BlackListReplyValidationError) ErrorName() string
- func (e BlackListReplyValidationError) Field() string
- func (e BlackListReplyValidationError) Key() bool
- func (e BlackListReplyValidationError) Reason() string
- type BlackListReq
- func (*BlackListReq) Descriptor() ([]byte, []int)deprecated
- func (x *BlackListReq) GetFromUserID() string
- func (x *BlackListReq) GetPageNum() int64
- func (x *BlackListReq) GetPageSize() int64
- func (x *BlackListReq) GetUserID() string
- func (*BlackListReq) ProtoMessage()
- func (x *BlackListReq) ProtoReflect() protoreflect.Message
- func (x *BlackListReq) Reset()
- func (x *BlackListReq) String() string
- func (m *BlackListReq) Validate() error
- func (m *BlackListReq) ValidateAll() error
- type BlackListReqMultiError
- type BlackListReqValidationError
- func (e BlackListReqValidationError) Cause() error
- func (e BlackListReqValidationError) Error() string
- func (e BlackListReqValidationError) ErrorName() string
- func (e BlackListReqValidationError) Field() string
- func (e BlackListReqValidationError) Key() bool
- func (e BlackListReqValidationError) Reason() string
- type DeleteAllFriendsReq
- func (*DeleteAllFriendsReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAllFriendsReq) GetUserID() string
- func (*DeleteAllFriendsReq) ProtoMessage()
- func (x *DeleteAllFriendsReq) ProtoReflect() protoreflect.Message
- func (x *DeleteAllFriendsReq) Reset()
- func (x *DeleteAllFriendsReq) String() string
- func (m *DeleteAllFriendsReq) Validate() error
- func (m *DeleteAllFriendsReq) ValidateAll() error
- type DeleteAllFriendsReqMultiError
- type DeleteAllFriendsReqValidationError
- func (e DeleteAllFriendsReqValidationError) Cause() error
- func (e DeleteAllFriendsReqValidationError) Error() string
- func (e DeleteAllFriendsReqValidationError) ErrorName() string
- func (e DeleteAllFriendsReqValidationError) Field() string
- func (e DeleteAllFriendsReqValidationError) Key() bool
- func (e DeleteAllFriendsReqValidationError) Reason() string
- type DeleteFriendReq
- func (*DeleteFriendReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFriendReq) GetFromUserID() string
- func (x *DeleteFriendReq) GetToUserID() string
- func (x *DeleteFriendReq) GetUserID() string
- func (*DeleteFriendReq) ProtoMessage()
- func (x *DeleteFriendReq) ProtoReflect() protoreflect.Message
- func (x *DeleteFriendReq) Reset()
- func (x *DeleteFriendReq) String() string
- func (m *DeleteFriendReq) Validate() error
- func (m *DeleteFriendReq) ValidateAll() error
- type DeleteFriendReqMultiError
- type DeleteFriendReqValidationError
- func (e DeleteFriendReqValidationError) Cause() error
- func (e DeleteFriendReqValidationError) Error() string
- func (e DeleteFriendReqValidationError) ErrorName() string
- func (e DeleteFriendReqValidationError) Field() string
- func (e DeleteFriendReqValidationError) Key() bool
- func (e DeleteFriendReqValidationError) Reason() string
- type FriendClient
- type FriendErrorReason
- func (FriendErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x FriendErrorReason) Enum() *FriendErrorReason
- func (FriendErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x FriendErrorReason) Number() protoreflect.EnumNumber
- func (x FriendErrorReason) String() string
- func (FriendErrorReason) Type() protoreflect.EnumType
- type FriendServer
- type GetFriendIDsReply
- func (*GetFriendIDsReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetFriendIDsReply) GetIds() []string
- func (*GetFriendIDsReply) ProtoMessage()
- func (x *GetFriendIDsReply) ProtoReflect() protoreflect.Message
- func (x *GetFriendIDsReply) Reset()
- func (x *GetFriendIDsReply) String() string
- func (m *GetFriendIDsReply) Validate() error
- func (m *GetFriendIDsReply) ValidateAll() error
- type GetFriendIDsReplyMultiError
- type GetFriendIDsReplyValidationError
- func (e GetFriendIDsReplyValidationError) Cause() error
- func (e GetFriendIDsReplyValidationError) Error() string
- func (e GetFriendIDsReplyValidationError) ErrorName() string
- func (e GetFriendIDsReplyValidationError) Field() string
- func (e GetFriendIDsReplyValidationError) Key() bool
- func (e GetFriendIDsReplyValidationError) Reason() string
- type GetFriendIDsReq
- func (*GetFriendIDsReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetFriendIDsReq) GetUserID() string
- func (*GetFriendIDsReq) ProtoMessage()
- func (x *GetFriendIDsReq) ProtoReflect() protoreflect.Message
- func (x *GetFriendIDsReq) Reset()
- func (x *GetFriendIDsReq) String() string
- func (m *GetFriendIDsReq) Validate() error
- func (m *GetFriendIDsReq) ValidateAll() error
- type GetFriendIDsReqMultiError
- type GetFriendIDsReqValidationError
- func (e GetFriendIDsReqValidationError) Cause() error
- func (e GetFriendIDsReqValidationError) Error() string
- func (e GetFriendIDsReqValidationError) ErrorName() string
- func (e GetFriendIDsReqValidationError) Field() string
- func (e GetFriendIDsReqValidationError) Key() bool
- func (e GetFriendIDsReqValidationError) Reason() string
- type GetFriendRequestByApplicantReply
- func (*GetFriendRequestByApplicantReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetFriendRequestByApplicantReply) GetFriendRequest() *v2.FriendRequest
- func (*GetFriendRequestByApplicantReply) ProtoMessage()
- func (x *GetFriendRequestByApplicantReply) ProtoReflect() protoreflect.Message
- func (x *GetFriendRequestByApplicantReply) Reset()
- func (x *GetFriendRequestByApplicantReply) String() string
- func (m *GetFriendRequestByApplicantReply) Validate() error
- func (m *GetFriendRequestByApplicantReply) ValidateAll() error
- type GetFriendRequestByApplicantReplyMultiError
- type GetFriendRequestByApplicantReplyValidationError
- func (e GetFriendRequestByApplicantReplyValidationError) Cause() error
- func (e GetFriendRequestByApplicantReplyValidationError) Error() string
- func (e GetFriendRequestByApplicantReplyValidationError) ErrorName() string
- func (e GetFriendRequestByApplicantReplyValidationError) Field() string
- func (e GetFriendRequestByApplicantReplyValidationError) Key() bool
- func (e GetFriendRequestByApplicantReplyValidationError) Reason() string
- type GetFriendRequestByApplicantReq
- func (*GetFriendRequestByApplicantReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetFriendRequestByApplicantReq) GetFromUserID() string
- func (x *GetFriendRequestByApplicantReq) GetToUserID() string
- func (x *GetFriendRequestByApplicantReq) GetUserId() string
- func (*GetFriendRequestByApplicantReq) ProtoMessage()
- func (x *GetFriendRequestByApplicantReq) ProtoReflect() protoreflect.Message
- func (x *GetFriendRequestByApplicantReq) Reset()
- func (x *GetFriendRequestByApplicantReq) String() string
- func (m *GetFriendRequestByApplicantReq) Validate() error
- func (m *GetFriendRequestByApplicantReq) ValidateAll() error
- type GetFriendRequestByApplicantReqMultiError
- type GetFriendRequestByApplicantReqValidationError
- func (e GetFriendRequestByApplicantReqValidationError) Cause() error
- func (e GetFriendRequestByApplicantReqValidationError) Error() string
- func (e GetFriendRequestByApplicantReqValidationError) ErrorName() string
- func (e GetFriendRequestByApplicantReqValidationError) Field() string
- func (e GetFriendRequestByApplicantReqValidationError) Key() bool
- func (e GetFriendRequestByApplicantReqValidationError) Reason() string
- type GetReceiveFriendsApplyReply
- func (*GetReceiveFriendsApplyReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetReceiveFriendsApplyReply) GetList() []*v2.FriendRequest
- func (x *GetReceiveFriendsApplyReply) GetTotal() int64
- func (*GetReceiveFriendsApplyReply) ProtoMessage()
- func (x *GetReceiveFriendsApplyReply) ProtoReflect() protoreflect.Message
- func (x *GetReceiveFriendsApplyReply) Reset()
- func (x *GetReceiveFriendsApplyReply) String() string
- func (m *GetReceiveFriendsApplyReply) Validate() error
- func (m *GetReceiveFriendsApplyReply) ValidateAll() error
- type GetReceiveFriendsApplyReplyMultiError
- type GetReceiveFriendsApplyReplyValidationError
- func (e GetReceiveFriendsApplyReplyValidationError) Cause() error
- func (e GetReceiveFriendsApplyReplyValidationError) Error() string
- func (e GetReceiveFriendsApplyReplyValidationError) ErrorName() string
- func (e GetReceiveFriendsApplyReplyValidationError) Field() string
- func (e GetReceiveFriendsApplyReplyValidationError) Key() bool
- func (e GetReceiveFriendsApplyReplyValidationError) Reason() string
- type GetReceiveFriendsApplyReq
- func (*GetReceiveFriendsApplyReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetReceiveFriendsApplyReq) GetHasHandled() int32
- func (x *GetReceiveFriendsApplyReq) GetPageNum() int64
- func (x *GetReceiveFriendsApplyReq) GetPageSize() int64
- func (x *GetReceiveFriendsApplyReq) GetUserID() string
- func (*GetReceiveFriendsApplyReq) ProtoMessage()
- func (x *GetReceiveFriendsApplyReq) ProtoReflect() protoreflect.Message
- func (x *GetReceiveFriendsApplyReq) Reset()
- func (x *GetReceiveFriendsApplyReq) String() string
- func (m *GetReceiveFriendsApplyReq) Validate() error
- func (m *GetReceiveFriendsApplyReq) ValidateAll() error
- type GetReceiveFriendsApplyReqMultiError
- type GetReceiveFriendsApplyReqValidationError
- func (e GetReceiveFriendsApplyReqValidationError) Cause() error
- func (e GetReceiveFriendsApplyReqValidationError) Error() string
- func (e GetReceiveFriendsApplyReqValidationError) ErrorName() string
- func (e GetReceiveFriendsApplyReqValidationError) Field() string
- func (e GetReceiveFriendsApplyReqValidationError) Key() bool
- func (e GetReceiveFriendsApplyReqValidationError) Reason() string
- type GetSendFriendsApplyReply
- func (*GetSendFriendsApplyReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetSendFriendsApplyReply) GetList() []*v2.FriendRequest
- func (x *GetSendFriendsApplyReply) GetTotal() int64
- func (*GetSendFriendsApplyReply) ProtoMessage()
- func (x *GetSendFriendsApplyReply) ProtoReflect() protoreflect.Message
- func (x *GetSendFriendsApplyReply) Reset()
- func (x *GetSendFriendsApplyReply) String() string
- func (m *GetSendFriendsApplyReply) Validate() error
- func (m *GetSendFriendsApplyReply) ValidateAll() error
- type GetSendFriendsApplyReplyMultiError
- type GetSendFriendsApplyReplyValidationError
- func (e GetSendFriendsApplyReplyValidationError) Cause() error
- func (e GetSendFriendsApplyReplyValidationError) Error() string
- func (e GetSendFriendsApplyReplyValidationError) ErrorName() string
- func (e GetSendFriendsApplyReplyValidationError) Field() string
- func (e GetSendFriendsApplyReplyValidationError) Key() bool
- func (e GetSendFriendsApplyReplyValidationError) Reason() string
- type GetSendFriendsApplyReq
- func (*GetSendFriendsApplyReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetSendFriendsApplyReq) GetHasHandled() int32
- func (x *GetSendFriendsApplyReq) GetPageNum() int64
- func (x *GetSendFriendsApplyReq) GetPageSize() int64
- func (x *GetSendFriendsApplyReq) GetUserID() string
- func (*GetSendFriendsApplyReq) ProtoMessage()
- func (x *GetSendFriendsApplyReq) ProtoReflect() protoreflect.Message
- func (x *GetSendFriendsApplyReq) Reset()
- func (x *GetSendFriendsApplyReq) String() string
- func (m *GetSendFriendsApplyReq) Validate() error
- func (m *GetSendFriendsApplyReq) ValidateAll() error
- type GetSendFriendsApplyReqMultiError
- type GetSendFriendsApplyReqValidationError
- func (e GetSendFriendsApplyReqValidationError) Cause() error
- func (e GetSendFriendsApplyReqValidationError) Error() string
- func (e GetSendFriendsApplyReqValidationError) ErrorName() string
- func (e GetSendFriendsApplyReqValidationError) Field() string
- func (e GetSendFriendsApplyReqValidationError) Key() bool
- func (e GetSendFriendsApplyReqValidationError) Reason() string
- type GetUntreatedFriendsApplyReceiveReply
- func (*GetUntreatedFriendsApplyReceiveReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUntreatedFriendsApplyReceiveReply) GetList() []*v2.FriendRequest
- func (x *GetUntreatedFriendsApplyReceiveReply) GetTotal() int64
- func (*GetUntreatedFriendsApplyReceiveReply) ProtoMessage()
- func (x *GetUntreatedFriendsApplyReceiveReply) ProtoReflect() protoreflect.Message
- func (x *GetUntreatedFriendsApplyReceiveReply) Reset()
- func (x *GetUntreatedFriendsApplyReceiveReply) String() string
- func (m *GetUntreatedFriendsApplyReceiveReply) Validate() error
- func (m *GetUntreatedFriendsApplyReceiveReply) ValidateAll() error
- type GetUntreatedFriendsApplyReceiveReplyMultiError
- type GetUntreatedFriendsApplyReceiveReplyValidationError
- func (e GetUntreatedFriendsApplyReceiveReplyValidationError) Cause() error
- func (e GetUntreatedFriendsApplyReceiveReplyValidationError) Error() string
- func (e GetUntreatedFriendsApplyReceiveReplyValidationError) ErrorName() string
- func (e GetUntreatedFriendsApplyReceiveReplyValidationError) Field() string
- func (e GetUntreatedFriendsApplyReceiveReplyValidationError) Key() bool
- func (e GetUntreatedFriendsApplyReceiveReplyValidationError) Reason() string
- type GetUntreatedFriendsApplyReceiveReq
- func (*GetUntreatedFriendsApplyReceiveReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUntreatedFriendsApplyReceiveReq) GetPageNum() int64
- func (x *GetUntreatedFriendsApplyReceiveReq) GetPageSize() int64
- func (x *GetUntreatedFriendsApplyReceiveReq) GetUserID() string
- func (*GetUntreatedFriendsApplyReceiveReq) ProtoMessage()
- func (x *GetUntreatedFriendsApplyReceiveReq) ProtoReflect() protoreflect.Message
- func (x *GetUntreatedFriendsApplyReceiveReq) Reset()
- func (x *GetUntreatedFriendsApplyReceiveReq) String() string
- func (m *GetUntreatedFriendsApplyReceiveReq) Validate() error
- func (m *GetUntreatedFriendsApplyReceiveReq) ValidateAll() error
- type GetUntreatedFriendsApplyReceiveReqMultiError
- type GetUntreatedFriendsApplyReceiveReqValidationError
- func (e GetUntreatedFriendsApplyReceiveReqValidationError) Cause() error
- func (e GetUntreatedFriendsApplyReceiveReqValidationError) Error() string
- func (e GetUntreatedFriendsApplyReceiveReqValidationError) ErrorName() string
- func (e GetUntreatedFriendsApplyReceiveReqValidationError) Field() string
- func (e GetUntreatedFriendsApplyReceiveReqValidationError) Key() bool
- func (e GetUntreatedFriendsApplyReceiveReqValidationError) Reason() string
- type IsBlackReply
- func (*IsBlackReply) Descriptor() ([]byte, []int)deprecated
- func (x *IsBlackReply) GetIsBlack() bool
- func (*IsBlackReply) ProtoMessage()
- func (x *IsBlackReply) ProtoReflect() protoreflect.Message
- func (x *IsBlackReply) Reset()
- func (x *IsBlackReply) String() string
- func (m *IsBlackReply) Validate() error
- func (m *IsBlackReply) ValidateAll() error
- type IsBlackReplyMultiError
- type IsBlackReplyValidationError
- func (e IsBlackReplyValidationError) Cause() error
- func (e IsBlackReplyValidationError) Error() string
- func (e IsBlackReplyValidationError) ErrorName() string
- func (e IsBlackReplyValidationError) Field() string
- func (e IsBlackReplyValidationError) Key() bool
- func (e IsBlackReplyValidationError) Reason() string
- type IsBlackReq
- func (*IsBlackReq) Descriptor() ([]byte, []int)deprecated
- func (x *IsBlackReq) GetOwnerUserID() string
- func (x *IsBlackReq) GetToUserID() string
- func (*IsBlackReq) ProtoMessage()
- func (x *IsBlackReq) ProtoReflect() protoreflect.Message
- func (x *IsBlackReq) Reset()
- func (x *IsBlackReq) String() string
- func (m *IsBlackReq) Validate() error
- func (m *IsBlackReq) ValidateAll() error
- type IsBlackReqMultiError
- type IsBlackReqValidationError
- type IsFriendReply
- func (*IsFriendReply) Descriptor() ([]byte, []int)deprecated
- func (x *IsFriendReply) GetIsFriend() bool
- func (*IsFriendReply) ProtoMessage()
- func (x *IsFriendReply) ProtoReflect() protoreflect.Message
- func (x *IsFriendReply) Reset()
- func (x *IsFriendReply) String() string
- func (m *IsFriendReply) Validate() error
- func (m *IsFriendReply) ValidateAll() error
- type IsFriendReplyMultiError
- type IsFriendReplyValidationError
- func (e IsFriendReplyValidationError) Cause() error
- func (e IsFriendReplyValidationError) Error() string
- func (e IsFriendReplyValidationError) ErrorName() string
- func (e IsFriendReplyValidationError) Field() string
- func (e IsFriendReplyValidationError) Key() bool
- func (e IsFriendReplyValidationError) Reason() string
- type IsFriendReq
- func (*IsFriendReq) Descriptor() ([]byte, []int)deprecated
- func (x *IsFriendReq) GetFromUserID() string
- func (x *IsFriendReq) GetOwnerUserID() string
- func (*IsFriendReq) ProtoMessage()
- func (x *IsFriendReq) ProtoReflect() protoreflect.Message
- func (x *IsFriendReq) Reset()
- func (x *IsFriendReq) String() string
- func (m *IsFriendReq) Validate() error
- func (m *IsFriendReq) ValidateAll() error
- type IsFriendReqMultiError
- type IsFriendReqValidationError
- func (e IsFriendReqValidationError) Cause() error
- func (e IsFriendReqValidationError) Error() string
- func (e IsFriendReqValidationError) ErrorName() string
- func (e IsFriendReqValidationError) Field() string
- func (e IsFriendReqValidationError) Key() bool
- func (e IsFriendReqValidationError) Reason() string
- type ListFriendApplyReply
- func (*ListFriendApplyReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListFriendApplyReply) GetList() []*v2.FriendRequest
- func (x *ListFriendApplyReply) GetTotal() int64
- func (*ListFriendApplyReply) ProtoMessage()
- func (x *ListFriendApplyReply) ProtoReflect() protoreflect.Message
- func (x *ListFriendApplyReply) Reset()
- func (x *ListFriendApplyReply) String() string
- func (m *ListFriendApplyReply) Validate() error
- func (m *ListFriendApplyReply) ValidateAll() error
- type ListFriendApplyReplyMultiError
- type ListFriendApplyReplyValidationError
- func (e ListFriendApplyReplyValidationError) Cause() error
- func (e ListFriendApplyReplyValidationError) Error() string
- func (e ListFriendApplyReplyValidationError) ErrorName() string
- func (e ListFriendApplyReplyValidationError) Field() string
- func (e ListFriendApplyReplyValidationError) Key() bool
- func (e ListFriendApplyReplyValidationError) Reason() string
- type ListFriendApplyReq
- func (*ListFriendApplyReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListFriendApplyReq) GetKind() int64
- func (x *ListFriendApplyReq) GetOwnerID() string
- func (x *ListFriendApplyReq) GetPageNum() int64
- func (x *ListFriendApplyReq) GetPageSize() int64
- func (x *ListFriendApplyReq) GetUserID() string
- func (*ListFriendApplyReq) ProtoMessage()
- func (x *ListFriendApplyReq) ProtoReflect() protoreflect.Message
- func (x *ListFriendApplyReq) Reset()
- func (x *ListFriendApplyReq) String() string
- func (m *ListFriendApplyReq) Validate() error
- func (m *ListFriendApplyReq) ValidateAll() error
- type ListFriendApplyReqMultiError
- type ListFriendApplyReqValidationError
- func (e ListFriendApplyReqValidationError) Cause() error
- func (e ListFriendApplyReqValidationError) Error() string
- func (e ListFriendApplyReqValidationError) ErrorName() string
- func (e ListFriendApplyReqValidationError) Field() string
- func (e ListFriendApplyReqValidationError) Key() bool
- func (e ListFriendApplyReqValidationError) Reason() string
- type ListFriendByIdsReply
- func (*ListFriendByIdsReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListFriendByIdsReply) GetList() []*v2.FriendInfo
- func (*ListFriendByIdsReply) ProtoMessage()
- func (x *ListFriendByIdsReply) ProtoReflect() protoreflect.Message
- func (x *ListFriendByIdsReply) Reset()
- func (x *ListFriendByIdsReply) String() string
- func (m *ListFriendByIdsReply) Validate() error
- func (m *ListFriendByIdsReply) ValidateAll() error
- type ListFriendByIdsReplyMultiError
- type ListFriendByIdsReplyValidationError
- func (e ListFriendByIdsReplyValidationError) Cause() error
- func (e ListFriendByIdsReplyValidationError) Error() string
- func (e ListFriendByIdsReplyValidationError) ErrorName() string
- func (e ListFriendByIdsReplyValidationError) Field() string
- func (e ListFriendByIdsReplyValidationError) Key() bool
- func (e ListFriendByIdsReplyValidationError) Reason() string
- type ListFriendByIdsReq
- func (*ListFriendByIdsReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListFriendByIdsReq) GetFriendIds() []string
- func (x *ListFriendByIdsReq) GetUserID() string
- func (*ListFriendByIdsReq) ProtoMessage()
- func (x *ListFriendByIdsReq) ProtoReflect() protoreflect.Message
- func (x *ListFriendByIdsReq) Reset()
- func (x *ListFriendByIdsReq) String() string
- func (m *ListFriendByIdsReq) Validate() error
- func (m *ListFriendByIdsReq) ValidateAll() error
- type ListFriendByIdsReqMultiError
- type ListFriendByIdsReqValidationError
- func (e ListFriendByIdsReqValidationError) Cause() error
- func (e ListFriendByIdsReqValidationError) Error() string
- func (e ListFriendByIdsReqValidationError) ErrorName() string
- func (e ListFriendByIdsReqValidationError) Field() string
- func (e ListFriendByIdsReqValidationError) Key() bool
- func (e ListFriendByIdsReqValidationError) Reason() string
- type ListFriendReply
- func (*ListFriendReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListFriendReply) GetList() []*v2.FriendInfo
- func (x *ListFriendReply) GetTotal() int64
- func (*ListFriendReply) ProtoMessage()
- func (x *ListFriendReply) ProtoReflect() protoreflect.Message
- func (x *ListFriendReply) Reset()
- func (x *ListFriendReply) String() string
- func (m *ListFriendReply) Validate() error
- func (m *ListFriendReply) ValidateAll() error
- type ListFriendReplyMultiError
- type ListFriendReplyValidationError
- func (e ListFriendReplyValidationError) Cause() error
- func (e ListFriendReplyValidationError) Error() string
- func (e ListFriendReplyValidationError) ErrorName() string
- func (e ListFriendReplyValidationError) Field() string
- func (e ListFriendReplyValidationError) Key() bool
- func (e ListFriendReplyValidationError) Reason() string
- type ListFriendReq
- func (*ListFriendReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListFriendReq) GetCode() string
- func (x *ListFriendReq) GetName() string
- func (x *ListFriendReq) GetPageNum() int64
- func (x *ListFriendReq) GetPageSize() int64
- func (x *ListFriendReq) GetPhone() string
- func (x *ListFriendReq) GetUserID() string
- func (*ListFriendReq) ProtoMessage()
- func (x *ListFriendReq) ProtoReflect() protoreflect.Message
- func (x *ListFriendReq) Reset()
- func (x *ListFriendReq) String() string
- func (m *ListFriendReq) Validate() error
- func (m *ListFriendReq) ValidateAll() error
- type ListFriendReqMultiError
- type ListFriendReqValidationError
- func (e ListFriendReqValidationError) Cause() error
- func (e ListFriendReqValidationError) Error() string
- func (e ListFriendReqValidationError) ErrorName() string
- func (e ListFriendReqValidationError) Field() string
- func (e ListFriendReqValidationError) Key() bool
- func (e ListFriendReqValidationError) Reason() string
- type ProcessFriendApplicationReq
- func (*ProcessFriendApplicationReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessFriendApplicationReq) GetFlag() int64
- func (x *ProcessFriendApplicationReq) GetFromUserID() string
- func (x *ProcessFriendApplicationReq) GetHandleMsg() string
- func (x *ProcessFriendApplicationReq) GetPlatform() string
- func (x *ProcessFriendApplicationReq) GetToUserID() string
- func (x *ProcessFriendApplicationReq) GetUserID() string
- func (*ProcessFriendApplicationReq) ProtoMessage()
- func (x *ProcessFriendApplicationReq) ProtoReflect() protoreflect.Message
- func (x *ProcessFriendApplicationReq) Reset()
- func (x *ProcessFriendApplicationReq) String() string
- func (m *ProcessFriendApplicationReq) Validate() error
- func (m *ProcessFriendApplicationReq) ValidateAll() error
- type ProcessFriendApplicationReqMultiError
- type ProcessFriendApplicationReqValidationError
- func (e ProcessFriendApplicationReqValidationError) Cause() error
- func (e ProcessFriendApplicationReqValidationError) Error() string
- func (e ProcessFriendApplicationReqValidationError) ErrorName() string
- func (e ProcessFriendApplicationReqValidationError) Field() string
- func (e ProcessFriendApplicationReqValidationError) Key() bool
- func (e ProcessFriendApplicationReqValidationError) Reason() string
- type RemoveBlackListReq
- func (*RemoveBlackListReq) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveBlackListReq) GetFromUserID() string
- func (x *RemoveBlackListReq) GetToUserID() string
- func (*RemoveBlackListReq) ProtoMessage()
- func (x *RemoveBlackListReq) ProtoReflect() protoreflect.Message
- func (x *RemoveBlackListReq) Reset()
- func (x *RemoveBlackListReq) String() string
- func (m *RemoveBlackListReq) Validate() error
- func (m *RemoveBlackListReq) ValidateAll() error
- type RemoveBlackListReqMultiError
- type RemoveBlackListReqValidationError
- func (e RemoveBlackListReqValidationError) Cause() error
- func (e RemoveBlackListReqValidationError) Error() string
- func (e RemoveBlackListReqValidationError) ErrorName() string
- func (e RemoveBlackListReqValidationError) Field() string
- func (e RemoveBlackListReqValidationError) Key() bool
- func (e RemoveBlackListReqValidationError) Reason() string
- type SetFriendInfoReq
- func (*SetFriendInfoReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetFriendInfoReq) GetBackgroundUrl() string
- func (x *SetFriendInfoReq) GetFromUserID() string
- func (x *SetFriendInfoReq) GetRemark() string
- func (x *SetFriendInfoReq) GetToUserID() string
- func (x *SetFriendInfoReq) GetUserID() string
- func (*SetFriendInfoReq) ProtoMessage()
- func (x *SetFriendInfoReq) ProtoReflect() protoreflect.Message
- func (x *SetFriendInfoReq) Reset()
- func (x *SetFriendInfoReq) String() string
- func (m *SetFriendInfoReq) Validate() error
- func (m *SetFriendInfoReq) ValidateAll() error
- type SetFriendInfoReqMultiError
- type SetFriendInfoReqValidationError
- func (e SetFriendInfoReqValidationError) Cause() error
- func (e SetFriendInfoReqValidationError) Error() string
- func (e SetFriendInfoReqValidationError) ErrorName() string
- func (e SetFriendInfoReqValidationError) Field() string
- func (e SetFriendInfoReqValidationError) Key() bool
- func (e SetFriendInfoReqValidationError) Reason() string
- type UnimplementedFriendServer
- func (UnimplementedFriendServer) AddBlack(context.Context, *AddBlackReq) (*emptypb.Empty, error)
- func (UnimplementedFriendServer) AddFriend(context.Context, *AddFriendReq) (*emptypb.Empty, error)
- func (UnimplementedFriendServer) Blacklist(context.Context, *BlackListReq) (*BlackListReply, error)
- func (UnimplementedFriendServer) DeleteAllFriends(context.Context, *DeleteAllFriendsReq) (*emptypb.Empty, error)
- func (UnimplementedFriendServer) DeleteFriend(context.Context, *DeleteFriendReq) (*emptypb.Empty, error)
- func (UnimplementedFriendServer) FriendApplyList(context.Context, *ListFriendApplyReq) (*ListFriendApplyReply, error)
- func (UnimplementedFriendServer) GetFriendIDs(context.Context, *GetFriendIDsReq) (*GetFriendIDsReply, error)
- func (UnimplementedFriendServer) GetFriendRequestByApplicant(context.Context, *GetFriendRequestByApplicantReq) (*GetFriendRequestByApplicantReply, error)
- func (UnimplementedFriendServer) GetReceiveFriendsApply(context.Context, *GetReceiveFriendsApplyReq) (*GetReceiveFriendsApplyReply, error)
- func (UnimplementedFriendServer) GetSendFriendsApply(context.Context, *GetSendFriendsApplyReq) (*GetSendFriendsApplyReply, error)
- func (UnimplementedFriendServer) GetUntreatedFriendsApplyReceive(context.Context, *GetUntreatedFriendsApplyReceiveReq) (*GetUntreatedFriendsApplyReceiveReply, error)
- func (UnimplementedFriendServer) IsBlack(context.Context, *IsBlackReq) (*IsBlackReply, error)
- func (UnimplementedFriendServer) IsFriend(context.Context, *IsFriendReq) (*IsFriendReply, error)
- func (UnimplementedFriendServer) ListFriend(context.Context, *ListFriendReq) (*ListFriendReply, error)
- func (UnimplementedFriendServer) ListFriendByIds(context.Context, *ListFriendByIdsReq) (*ListFriendByIdsReply, error)
- func (UnimplementedFriendServer) ProcessFriendApplication(context.Context, *ProcessFriendApplicationReq) (*emptypb.Empty, error)
- func (UnimplementedFriendServer) RemoveBlackList(context.Context, *RemoveBlackListReq) (*emptypb.Empty, error)
- func (UnimplementedFriendServer) SetFriendInfo(context.Context, *SetFriendInfoReq) (*emptypb.Empty, error)
- type UnsafeFriendServer
Constants ¶
const ( Friend_AddFriend_FullMethodName = "/api.im_cloud.friend.v2.Friend/AddFriend" Friend_ProcessFriendApplication_FullMethodName = "/api.im_cloud.friend.v2.Friend/ProcessFriendApplication" Friend_DeleteFriend_FullMethodName = "/api.im_cloud.friend.v2.Friend/DeleteFriend" Friend_DeleteAllFriends_FullMethodName = "/api.im_cloud.friend.v2.Friend/DeleteAllFriends" Friend_SetFriendInfo_FullMethodName = "/api.im_cloud.friend.v2.Friend/SetFriendInfo" Friend_ListFriend_FullMethodName = "/api.im_cloud.friend.v2.Friend/ListFriend" Friend_ListFriendByIds_FullMethodName = "/api.im_cloud.friend.v2.Friend/ListFriendByIds" Friend_FriendApplyList_FullMethodName = "/api.im_cloud.friend.v2.Friend/FriendApplyList" Friend_Blacklist_FullMethodName = "/api.im_cloud.friend.v2.Friend/Blacklist" Friend_GetFriendIDs_FullMethodName = "/api.im_cloud.friend.v2.Friend/GetFriendIDs" Friend_AddBlack_FullMethodName = "/api.im_cloud.friend.v2.Friend/AddBlack" Friend_RemoveBlackList_FullMethodName = "/api.im_cloud.friend.v2.Friend/RemoveBlackList" Friend_IsFriend_FullMethodName = "/api.im_cloud.friend.v2.Friend/IsFriend" Friend_IsBlack_FullMethodName = "/api.im_cloud.friend.v2.Friend/IsBlack" Friend_GetSendFriendsApply_FullMethodName = "/api.im_cloud.friend.v2.Friend/GetSendFriendsApply" Friend_GetReceiveFriendsApply_FullMethodName = "/api.im_cloud.friend.v2.Friend/GetReceiveFriendsApply" Friend_GetUntreatedFriendsApplyReceive_FullMethodName = "/api.im_cloud.friend.v2.Friend/GetUntreatedFriendsApplyReceive" Friend_GetFriendRequestByApplicant_FullMethodName = "/api.im_cloud.friend.v2.Friend/GetFriendRequestByApplicant" )
Variables ¶
var ( FriendErrorReason_name = map[int32]string{ 0: "GET_FRIEND_INFO_FAIL", 1: "DEL_FRIEND_RELATION_DATA_FAIL", 2: "CREATE_FRIEND_DATA_FAIL", 3: "UPDATE_FRIEND_RELATION_DATA_FAIl", 4: "DEL_FRIEND_CACHE_DATA_FAIl", 5: "GET_FRIEND_APPLY_DATA_FAIL", 6: "GET_USER_BLACKLISTINFO_FAIL", 7: "REMOVE_USER_BLACK_DATA_FAIL", 8: "CREATE_BLACK_DATA_FAIL", 9: "GET_INVITABLE_FRIEND_DATA_FAIl", 10: "GET_FRIEND_APPLY_REQUEST_DATA_FAIL", 11: "GET_ALL_FRIEND_ID_FAIL", 12: "GET_FRIEND_BY_IDS_FAIL", 13: "GET_UNTREATED_FRIENDS_APPLY_RECEIVE_FAIL", 14: "FRIEND_NOT_EXIST", 15: "USER_CLOSE_CARD_ADD", 16: "USER_CLOSE_GROUP_ADD", 17: "USER_CLOSE_ID_ADD", 18: "USER_CLOSE_PHONE_ADD", 19: "USER_CLOSE_RQ_CODE_ADD", 20: "UNKNOWN_SOURCE_TYPE", 21: "GET_FRIEND_BLACKLIST_BY_ID_FAIL", 22: "FRIEND_APPLY_LIST_BY_ID_FAIL", 23: "GET_APPLY_FRIENDS_FROM_BY_ID_FAIL", } FriendErrorReason_value = map[string]int32{ "GET_FRIEND_INFO_FAIL": 0, "DEL_FRIEND_RELATION_DATA_FAIL": 1, "CREATE_FRIEND_DATA_FAIL": 2, "UPDATE_FRIEND_RELATION_DATA_FAIl": 3, "DEL_FRIEND_CACHE_DATA_FAIl": 4, "GET_FRIEND_APPLY_DATA_FAIL": 5, "GET_USER_BLACKLISTINFO_FAIL": 6, "REMOVE_USER_BLACK_DATA_FAIL": 7, "CREATE_BLACK_DATA_FAIL": 8, "GET_INVITABLE_FRIEND_DATA_FAIl": 9, "GET_FRIEND_APPLY_REQUEST_DATA_FAIL": 10, "GET_ALL_FRIEND_ID_FAIL": 11, "GET_FRIEND_BY_IDS_FAIL": 12, "GET_UNTREATED_FRIENDS_APPLY_RECEIVE_FAIL": 13, "FRIEND_NOT_EXIST": 14, "USER_CLOSE_CARD_ADD": 15, "USER_CLOSE_GROUP_ADD": 16, "USER_CLOSE_ID_ADD": 17, "USER_CLOSE_PHONE_ADD": 18, "USER_CLOSE_RQ_CODE_ADD": 19, "UNKNOWN_SOURCE_TYPE": 20, "GET_FRIEND_BLACKLIST_BY_ID_FAIL": 21, "FRIEND_APPLY_LIST_BY_ID_FAIL": 22, "GET_APPLY_FRIENDS_FROM_BY_ID_FAIL": 23, } )
Enum value maps for FriendErrorReason.
var File_api_im_cloud_friend_v2_friend_error_proto protoreflect.FileDescriptor
var File_im_cloud_friend_v2_friend_proto protoreflect.FileDescriptor
var Friend_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.im_cloud.friend.v2.Friend", HandlerType: (*FriendServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddFriend", Handler: _Friend_AddFriend_Handler, }, { MethodName: "ProcessFriendApplication", Handler: _Friend_ProcessFriendApplication_Handler, }, { MethodName: "DeleteFriend", Handler: _Friend_DeleteFriend_Handler, }, { MethodName: "DeleteAllFriends", Handler: _Friend_DeleteAllFriends_Handler, }, { MethodName: "SetFriendInfo", Handler: _Friend_SetFriendInfo_Handler, }, { MethodName: "ListFriend", Handler: _Friend_ListFriend_Handler, }, { MethodName: "ListFriendByIds", Handler: _Friend_ListFriendByIds_Handler, }, { MethodName: "FriendApplyList", Handler: _Friend_FriendApplyList_Handler, }, { MethodName: "Blacklist", Handler: _Friend_Blacklist_Handler, }, { MethodName: "GetFriendIDs", Handler: _Friend_GetFriendIDs_Handler, }, { MethodName: "AddBlack", Handler: _Friend_AddBlack_Handler, }, { MethodName: "RemoveBlackList", Handler: _Friend_RemoveBlackList_Handler, }, { MethodName: "IsFriend", Handler: _Friend_IsFriend_Handler, }, { MethodName: "IsBlack", Handler: _Friend_IsBlack_Handler, }, { MethodName: "GetSendFriendsApply", Handler: _Friend_GetSendFriendsApply_Handler, }, { MethodName: "GetReceiveFriendsApply", Handler: _Friend_GetReceiveFriendsApply_Handler, }, { MethodName: "GetUntreatedFriendsApplyReceive", Handler: _Friend_GetUntreatedFriendsApplyReceive_Handler, }, { MethodName: "GetFriendRequestByApplicant", Handler: _Friend_GetFriendRequestByApplicant_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "im_cloud/friend/v2/friend.proto", }
Friend_ServiceDesc is the grpc.ServiceDesc for Friend service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorCreateBlackDataFail ¶
创建黑名单数据失败
func ErrorCreateFriendDataFail ¶
创建好友关系数据失败
func ErrorDelFriendCacheDataFAIl ¶
删除好友缓存数据失败
func ErrorDelFriendRelationDataFail ¶
删除好友数据失败
func ErrorFriendApplyListByIdFail ¶
根据申请人id获取申请人信息失败
func ErrorFriendNotExist ¶
好友不存在
func ErrorGetAllFriendIdFail ¶
获取所有的id信息失败
func ErrorGetApplyFriendsFromByIdFail ¶
根据好友id获取主动发出去的好友申请信息
func ErrorGetFriendApplyDataFail ¶
获取好友请求数据失败
func ErrorGetFriendApplyRequestDataFail ¶
获取好友申请请求数据失败
func ErrorGetFriendBlacklistByIdFail ¶
根据被拉黑人id获取被拉黑人信息失败
func ErrorGetFriendByIdsFail ¶
根据好友id获取好友信息失败
func ErrorGetFriendInfoFail ¶
获取好友信息失败
func ErrorGetInvitableFriendDataFAIl ¶
获取可邀请好友数据失败
func ErrorGetUntreatedFriendsApplyReceiveFail ¶
获取所有未处理的数据
func ErrorGetUserBlacklistinfoFail ¶
获取用户黑名单数据失败
func ErrorRemoveUserBlackDataFail ¶
移除用户黑名单数据失败
func ErrorUnknownSourceType ¶
未知的来源类型
func ErrorUpdateFriendRelationDataFAIl ¶
更新好友关系信息失败
func ErrorUserCloseCardAdd ¶
关闭名片添加
func ErrorUserCloseGroupAdd ¶
关闭群添加
func ErrorUserCloseIdAdd ¶
关闭id添加
func ErrorUserClosePhoneAdd ¶
关闭手机号添加
func ErrorUserCloseRqCodeAdd ¶
关闭二维码添加
func IsGetApplyFriendsFromByIdFail ¶
根据好友id获取主动发出去的好友申请信息
func IsGetFriendApplyRequestDataFail ¶
获取好友申请请求数据失败
func IsGetFriendBlacklistByIdFail ¶
根据被拉黑人id获取被拉黑人信息失败
func IsGetUntreatedFriendsApplyReceiveFail ¶
获取所有未处理的数据
func IsUpdateFriendRelationDataFAIl ¶
更新好友关系信息失败
func RegisterFriendServer ¶
func RegisterFriendServer(s grpc.ServiceRegistrar, srv FriendServer)
Types ¶
type AddBlackReq ¶
type AddBlackReq struct { OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID,proto3" json:"ownerUserID,omitempty"` //用户ID BlackUserID string `protobuf:"bytes,2,opt,name=blackUserID,proto3" json:"blackUserID,omitempty"` //加入黑名单的用户ID // contains filtered or unexported fields }
加入黑名单 存在 -------------------------------------------
func (*AddBlackReq) Descriptor
deprecated
func (*AddBlackReq) Descriptor() ([]byte, []int)
Deprecated: Use AddBlackReq.ProtoReflect.Descriptor instead.
func (*AddBlackReq) GetBlackUserID ¶
func (x *AddBlackReq) GetBlackUserID() string
func (*AddBlackReq) GetOwnerUserID ¶
func (x *AddBlackReq) GetOwnerUserID() string
func (*AddBlackReq) ProtoMessage ¶
func (*AddBlackReq) ProtoMessage()
func (*AddBlackReq) ProtoReflect ¶
func (x *AddBlackReq) ProtoReflect() protoreflect.Message
func (*AddBlackReq) Reset ¶
func (x *AddBlackReq) Reset()
func (*AddBlackReq) String ¶
func (x *AddBlackReq) String() string
func (*AddBlackReq) Validate ¶
func (m *AddBlackReq) Validate() error
Validate checks the field values on AddBlackReq 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 (*AddBlackReq) ValidateAll ¶
func (m *AddBlackReq) ValidateAll() error
ValidateAll checks the field values on AddBlackReq 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 AddBlackReqMultiError, or nil if none found.
type AddBlackReqMultiError ¶
type AddBlackReqMultiError []error
AddBlackReqMultiError is an error wrapping multiple validation errors returned by AddBlackReq.ValidateAll() if the designated constraints aren't met.
func (AddBlackReqMultiError) AllErrors ¶
func (m AddBlackReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddBlackReqMultiError) Error ¶
func (m AddBlackReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddBlackReqValidationError ¶
type AddBlackReqValidationError struct {
// contains filtered or unexported fields
}
AddBlackReqValidationError is the validation error returned by AddBlackReq.Validate if the designated constraints aren't met.
func (AddBlackReqValidationError) Cause ¶
func (e AddBlackReqValidationError) Cause() error
Cause function returns cause value.
func (AddBlackReqValidationError) Error ¶
func (e AddBlackReqValidationError) Error() string
Error satisfies the builtin error interface
func (AddBlackReqValidationError) ErrorName ¶
func (e AddBlackReqValidationError) ErrorName() string
ErrorName returns error name.
func (AddBlackReqValidationError) Field ¶
func (e AddBlackReqValidationError) Field() string
Field function returns field value.
func (AddBlackReqValidationError) Key ¶
func (e AddBlackReqValidationError) Key() bool
Key function returns key value.
func (AddBlackReqValidationError) Reason ¶
func (e AddBlackReqValidationError) Reason() string
Reason function returns reason value.
type AddFriendReq ¶
type AddFriendReq struct { // 发起方 FromUserID string `protobuf:"bytes,1,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` // 接收方 ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` // 备注 RemarkMsg string `protobuf:"bytes,3,opt,name=remarkMsg,proto3" json:"remarkMsg,omitempty"` // 添加好友的请求验证 ReqMsg string `protobuf:"bytes,4,opt,name=reqMsg,proto3" json:"reqMsg,omitempty"` // 来源类型(可选) 1:名片2:群3:id4:手机号5:二维码 Type int64 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"` UserID string `protobuf:"bytes,6,opt,name=userID,proto3" json:"userID,omitempty"` ExtraMsg string `protobuf:"bytes,7,opt,name=extraMsg,proto3" json:"extraMsg,omitempty"` // contains filtered or unexported fields }
添加好友 存在 -------------------------------------------
func (*AddFriendReq) Descriptor
deprecated
func (*AddFriendReq) Descriptor() ([]byte, []int)
Deprecated: Use AddFriendReq.ProtoReflect.Descriptor instead.
func (*AddFriendReq) GetExtraMsg ¶
func (x *AddFriendReq) GetExtraMsg() string
func (*AddFriendReq) GetFromUserID ¶
func (x *AddFriendReq) GetFromUserID() string
func (*AddFriendReq) GetRemarkMsg ¶
func (x *AddFriendReq) GetRemarkMsg() string
func (*AddFriendReq) GetReqMsg ¶
func (x *AddFriendReq) GetReqMsg() string
func (*AddFriendReq) GetToUserID ¶
func (x *AddFriendReq) GetToUserID() string
func (*AddFriendReq) GetType ¶
func (x *AddFriendReq) GetType() int64
func (*AddFriendReq) GetUserID ¶
func (x *AddFriendReq) GetUserID() string
func (*AddFriendReq) ProtoMessage ¶
func (*AddFriendReq) ProtoMessage()
func (*AddFriendReq) ProtoReflect ¶
func (x *AddFriendReq) ProtoReflect() protoreflect.Message
func (*AddFriendReq) Reset ¶
func (x *AddFriendReq) Reset()
func (*AddFriendReq) String ¶
func (x *AddFriendReq) String() string
func (*AddFriendReq) Validate ¶
func (m *AddFriendReq) Validate() error
Validate checks the field values on AddFriendReq 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 (*AddFriendReq) ValidateAll ¶
func (m *AddFriendReq) ValidateAll() error
ValidateAll checks the field values on AddFriendReq 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 AddFriendReqMultiError, or nil if none found.
type AddFriendReqMultiError ¶
type AddFriendReqMultiError []error
AddFriendReqMultiError is an error wrapping multiple validation errors returned by AddFriendReq.ValidateAll() if the designated constraints aren't met.
func (AddFriendReqMultiError) AllErrors ¶
func (m AddFriendReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddFriendReqMultiError) Error ¶
func (m AddFriendReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddFriendReqValidationError ¶
type AddFriendReqValidationError struct {
// contains filtered or unexported fields
}
AddFriendReqValidationError is the validation error returned by AddFriendReq.Validate if the designated constraints aren't met.
func (AddFriendReqValidationError) Cause ¶
func (e AddFriendReqValidationError) Cause() error
Cause function returns cause value.
func (AddFriendReqValidationError) Error ¶
func (e AddFriendReqValidationError) Error() string
Error satisfies the builtin error interface
func (AddFriendReqValidationError) ErrorName ¶
func (e AddFriendReqValidationError) ErrorName() string
ErrorName returns error name.
func (AddFriendReqValidationError) Field ¶
func (e AddFriendReqValidationError) Field() string
Field function returns field value.
func (AddFriendReqValidationError) Key ¶
func (e AddFriendReqValidationError) Key() bool
Key function returns key value.
func (AddFriendReqValidationError) Reason ¶
func (e AddFriendReqValidationError) Reason() string
Reason function returns reason value.
type BlackListReply ¶
type BlackListReply struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*v2.BlackInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*BlackListReply) Descriptor
deprecated
func (*BlackListReply) Descriptor() ([]byte, []int)
Deprecated: Use BlackListReply.ProtoReflect.Descriptor instead.
func (*BlackListReply) GetList ¶
func (x *BlackListReply) GetList() []*v2.BlackInfo
func (*BlackListReply) GetTotal ¶
func (x *BlackListReply) GetTotal() int64
func (*BlackListReply) ProtoMessage ¶
func (*BlackListReply) ProtoMessage()
func (*BlackListReply) ProtoReflect ¶
func (x *BlackListReply) ProtoReflect() protoreflect.Message
func (*BlackListReply) Reset ¶
func (x *BlackListReply) Reset()
func (*BlackListReply) String ¶
func (x *BlackListReply) String() string
func (*BlackListReply) Validate ¶
func (m *BlackListReply) Validate() error
Validate checks the field values on BlackListReply 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 (*BlackListReply) ValidateAll ¶
func (m *BlackListReply) ValidateAll() error
ValidateAll checks the field values on BlackListReply 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 BlackListReplyMultiError, or nil if none found.
type BlackListReplyMultiError ¶
type BlackListReplyMultiError []error
BlackListReplyMultiError is an error wrapping multiple validation errors returned by BlackListReply.ValidateAll() if the designated constraints aren't met.
func (BlackListReplyMultiError) AllErrors ¶
func (m BlackListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BlackListReplyMultiError) Error ¶
func (m BlackListReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BlackListReplyValidationError ¶
type BlackListReplyValidationError struct {
// contains filtered or unexported fields
}
BlackListReplyValidationError is the validation error returned by BlackListReply.Validate if the designated constraints aren't met.
func (BlackListReplyValidationError) Cause ¶
func (e BlackListReplyValidationError) Cause() error
Cause function returns cause value.
func (BlackListReplyValidationError) Error ¶
func (e BlackListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (BlackListReplyValidationError) ErrorName ¶
func (e BlackListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (BlackListReplyValidationError) Field ¶
func (e BlackListReplyValidationError) Field() string
Field function returns field value.
func (BlackListReplyValidationError) Key ¶
func (e BlackListReplyValidationError) Key() bool
Key function returns key value.
func (BlackListReplyValidationError) Reason ¶
func (e BlackListReplyValidationError) Reason() string
Reason function returns reason value.
type BlackListReq ¶
type BlackListReq struct { PageSize int64 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` PageNum int64 `protobuf:"varint,2,opt,name=pageNum,proto3" json:"pageNum,omitempty"` FromUserID string `protobuf:"bytes,3,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` UserID string `protobuf:"bytes,4,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
黑名单列表 存在 -------------------------------------------
func (*BlackListReq) Descriptor
deprecated
func (*BlackListReq) Descriptor() ([]byte, []int)
Deprecated: Use BlackListReq.ProtoReflect.Descriptor instead.
func (*BlackListReq) GetFromUserID ¶
func (x *BlackListReq) GetFromUserID() string
func (*BlackListReq) GetPageNum ¶
func (x *BlackListReq) GetPageNum() int64
func (*BlackListReq) GetPageSize ¶
func (x *BlackListReq) GetPageSize() int64
func (*BlackListReq) GetUserID ¶
func (x *BlackListReq) GetUserID() string
func (*BlackListReq) ProtoMessage ¶
func (*BlackListReq) ProtoMessage()
func (*BlackListReq) ProtoReflect ¶
func (x *BlackListReq) ProtoReflect() protoreflect.Message
func (*BlackListReq) Reset ¶
func (x *BlackListReq) Reset()
func (*BlackListReq) String ¶
func (x *BlackListReq) String() string
func (*BlackListReq) Validate ¶
func (m *BlackListReq) Validate() error
Validate checks the field values on BlackListReq 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 (*BlackListReq) ValidateAll ¶
func (m *BlackListReq) ValidateAll() error
ValidateAll checks the field values on BlackListReq 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 BlackListReqMultiError, or nil if none found.
type BlackListReqMultiError ¶
type BlackListReqMultiError []error
BlackListReqMultiError is an error wrapping multiple validation errors returned by BlackListReq.ValidateAll() if the designated constraints aren't met.
func (BlackListReqMultiError) AllErrors ¶
func (m BlackListReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BlackListReqMultiError) Error ¶
func (m BlackListReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BlackListReqValidationError ¶
type BlackListReqValidationError struct {
// contains filtered or unexported fields
}
BlackListReqValidationError is the validation error returned by BlackListReq.Validate if the designated constraints aren't met.
func (BlackListReqValidationError) Cause ¶
func (e BlackListReqValidationError) Cause() error
Cause function returns cause value.
func (BlackListReqValidationError) Error ¶
func (e BlackListReqValidationError) Error() string
Error satisfies the builtin error interface
func (BlackListReqValidationError) ErrorName ¶
func (e BlackListReqValidationError) ErrorName() string
ErrorName returns error name.
func (BlackListReqValidationError) Field ¶
func (e BlackListReqValidationError) Field() string
Field function returns field value.
func (BlackListReqValidationError) Key ¶
func (e BlackListReqValidationError) Key() bool
Key function returns key value.
func (BlackListReqValidationError) Reason ¶
func (e BlackListReqValidationError) Reason() string
Reason function returns reason value.
type DeleteAllFriendsReq ¶
type DeleteAllFriendsReq struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` //用户id // contains filtered or unexported fields }
单方面删除所有好友(注销时用)
func (*DeleteAllFriendsReq) Descriptor
deprecated
func (*DeleteAllFriendsReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAllFriendsReq.ProtoReflect.Descriptor instead.
func (*DeleteAllFriendsReq) GetUserID ¶
func (x *DeleteAllFriendsReq) GetUserID() string
func (*DeleteAllFriendsReq) ProtoMessage ¶
func (*DeleteAllFriendsReq) ProtoMessage()
func (*DeleteAllFriendsReq) ProtoReflect ¶
func (x *DeleteAllFriendsReq) ProtoReflect() protoreflect.Message
func (*DeleteAllFriendsReq) Reset ¶
func (x *DeleteAllFriendsReq) Reset()
func (*DeleteAllFriendsReq) String ¶
func (x *DeleteAllFriendsReq) String() string
func (*DeleteAllFriendsReq) Validate ¶
func (m *DeleteAllFriendsReq) Validate() error
Validate checks the field values on DeleteAllFriendsReq 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 (*DeleteAllFriendsReq) ValidateAll ¶
func (m *DeleteAllFriendsReq) ValidateAll() error
ValidateAll checks the field values on DeleteAllFriendsReq 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 DeleteAllFriendsReqMultiError, or nil if none found.
type DeleteAllFriendsReqMultiError ¶
type DeleteAllFriendsReqMultiError []error
DeleteAllFriendsReqMultiError is an error wrapping multiple validation errors returned by DeleteAllFriendsReq.ValidateAll() if the designated constraints aren't met.
func (DeleteAllFriendsReqMultiError) AllErrors ¶
func (m DeleteAllFriendsReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteAllFriendsReqMultiError) Error ¶
func (m DeleteAllFriendsReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteAllFriendsReqValidationError ¶
type DeleteAllFriendsReqValidationError struct {
// contains filtered or unexported fields
}
DeleteAllFriendsReqValidationError is the validation error returned by DeleteAllFriendsReq.Validate if the designated constraints aren't met.
func (DeleteAllFriendsReqValidationError) Cause ¶
func (e DeleteAllFriendsReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteAllFriendsReqValidationError) Error ¶
func (e DeleteAllFriendsReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteAllFriendsReqValidationError) ErrorName ¶
func (e DeleteAllFriendsReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteAllFriendsReqValidationError) Field ¶
func (e DeleteAllFriendsReqValidationError) Field() string
Field function returns field value.
func (DeleteAllFriendsReqValidationError) Key ¶
func (e DeleteAllFriendsReqValidationError) Key() bool
Key function returns key value.
func (DeleteAllFriendsReqValidationError) Reason ¶
func (e DeleteAllFriendsReqValidationError) Reason() string
Reason function returns reason value.
type DeleteFriendReq ¶
type DeleteFriendReq struct { // 发起方 FromUserID string `protobuf:"bytes,1,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` // 接收方 ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
删除好友 存在 -------------------------------------------
func (*DeleteFriendReq) Descriptor
deprecated
func (*DeleteFriendReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFriendReq.ProtoReflect.Descriptor instead.
func (*DeleteFriendReq) GetFromUserID ¶
func (x *DeleteFriendReq) GetFromUserID() string
func (*DeleteFriendReq) GetToUserID ¶
func (x *DeleteFriendReq) GetToUserID() string
func (*DeleteFriendReq) GetUserID ¶
func (x *DeleteFriendReq) GetUserID() string
func (*DeleteFriendReq) ProtoMessage ¶
func (*DeleteFriendReq) ProtoMessage()
func (*DeleteFriendReq) ProtoReflect ¶
func (x *DeleteFriendReq) ProtoReflect() protoreflect.Message
func (*DeleteFriendReq) Reset ¶
func (x *DeleteFriendReq) Reset()
func (*DeleteFriendReq) String ¶
func (x *DeleteFriendReq) String() string
func (*DeleteFriendReq) Validate ¶
func (m *DeleteFriendReq) Validate() error
Validate checks the field values on DeleteFriendReq 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 (*DeleteFriendReq) ValidateAll ¶
func (m *DeleteFriendReq) ValidateAll() error
ValidateAll checks the field values on DeleteFriendReq 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 DeleteFriendReqMultiError, or nil if none found.
type DeleteFriendReqMultiError ¶
type DeleteFriendReqMultiError []error
DeleteFriendReqMultiError is an error wrapping multiple validation errors returned by DeleteFriendReq.ValidateAll() if the designated constraints aren't met.
func (DeleteFriendReqMultiError) AllErrors ¶
func (m DeleteFriendReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteFriendReqMultiError) Error ¶
func (m DeleteFriendReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteFriendReqValidationError ¶
type DeleteFriendReqValidationError struct {
// contains filtered or unexported fields
}
DeleteFriendReqValidationError is the validation error returned by DeleteFriendReq.Validate if the designated constraints aren't met.
func (DeleteFriendReqValidationError) Cause ¶
func (e DeleteFriendReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteFriendReqValidationError) Error ¶
func (e DeleteFriendReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteFriendReqValidationError) ErrorName ¶
func (e DeleteFriendReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteFriendReqValidationError) Field ¶
func (e DeleteFriendReqValidationError) Field() string
Field function returns field value.
func (DeleteFriendReqValidationError) Key ¶
func (e DeleteFriendReqValidationError) Key() bool
Key function returns key value.
func (DeleteFriendReqValidationError) Reason ¶
func (e DeleteFriendReqValidationError) Reason() string
Reason function returns reason value.
type FriendClient ¶
type FriendClient interface { // 添加好友 存在 AddFriend(ctx context.Context, in *AddFriendReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 同意或拒绝好友请求 存在 ProcessFriendApplication(ctx context.Context, in *ProcessFriendApplicationReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 删除好友 存在 DeleteFriend(ctx context.Context, in *DeleteFriendReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 单方面删除用户所有好友 DeleteAllFriends(ctx context.Context, in *DeleteAllFriendsReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 设置好友资料 存在 SetFriendInfo(ctx context.Context, in *SetFriendInfoReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 好友列表 存在 ListFriend(ctx context.Context, in *ListFriendReq, opts ...grpc.CallOption) (*ListFriendReply, error) // 根据好友id获取最新好友数据 存在 ListFriendByIds(ctx context.Context, in *ListFriendByIdsReq, opts ...grpc.CallOption) (*ListFriendByIdsReply, error) // 申请列表 存在 FriendApplyList(ctx context.Context, in *ListFriendApplyReq, opts ...grpc.CallOption) (*ListFriendApplyReply, error) // 黑名单列表 存在 Blacklist(ctx context.Context, in *BlackListReq, opts ...grpc.CallOption) (*BlackListReply, error) // 获取用户所有的好友id 存在 GetFriendIDs(ctx context.Context, in *GetFriendIDsReq, opts ...grpc.CallOption) (*GetFriendIDsReply, error) // 添加黑名单 存在 AddBlack(ctx context.Context, in *AddBlackReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 移除黑名单 存在 RemoveBlackList(ctx context.Context, in *RemoveBlackListReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 判断是否好友 存在 IsFriend(ctx context.Context, in *IsFriendReq, opts ...grpc.CallOption) (*IsFriendReply, error) // 判断是否在在黑名单中 存在 IsBlack(ctx context.Context, in *IsBlackReq, opts ...grpc.CallOption) (*IsBlackReply, error) // 获取主动发出去的好友申请列表 存在 GetSendFriendsApply(ctx context.Context, in *GetSendFriendsApplyReq, opts ...grpc.CallOption) (*GetSendFriendsApplyReply, error) // 获取收到的好友申请列表 存在 GetReceiveFriendsApply(ctx context.Context, in *GetReceiveFriendsApplyReq, opts ...grpc.CallOption) (*GetReceiveFriendsApplyReply, error) // 获取收到的未处理的好友请求 存在 GetUntreatedFriendsApplyReceive(ctx context.Context, in *GetUntreatedFriendsApplyReceiveReq, opts ...grpc.CallOption) (*GetUntreatedFriendsApplyReceiveReply, error) // 根据申请人和被申请人获取请求数据 存在 GetFriendRequestByApplicant(ctx context.Context, in *GetFriendRequestByApplicantReq, opts ...grpc.CallOption) (*GetFriendRequestByApplicantReply, error) }
FriendClient is the client API for Friend service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFriendClient ¶
func NewFriendClient(cc grpc.ClientConnInterface) FriendClient
type FriendErrorReason ¶
type FriendErrorReason int32
const ( // 获取好友信息失败 FriendErrorReason_GET_FRIEND_INFO_FAIL FriendErrorReason = 0 // 删除好友数据失败 FriendErrorReason_DEL_FRIEND_RELATION_DATA_FAIL FriendErrorReason = 1 // 创建好友关系数据失败 FriendErrorReason_CREATE_FRIEND_DATA_FAIL FriendErrorReason = 2 // 更新好友关系信息失败 FriendErrorReason_UPDATE_FRIEND_RELATION_DATA_FAIl FriendErrorReason = 3 // 删除好友缓存数据失败 FriendErrorReason_DEL_FRIEND_CACHE_DATA_FAIl FriendErrorReason = 4 // 获取好友请求数据失败 FriendErrorReason_GET_FRIEND_APPLY_DATA_FAIL FriendErrorReason = 5 // 获取用户黑名单数据失败 FriendErrorReason_GET_USER_BLACKLISTINFO_FAIL FriendErrorReason = 6 // 移除用户黑名单数据失败 FriendErrorReason_REMOVE_USER_BLACK_DATA_FAIL FriendErrorReason = 7 // 创建黑名单数据失败 FriendErrorReason_CREATE_BLACK_DATA_FAIL FriendErrorReason = 8 // 获取可邀请好友数据失败 FriendErrorReason_GET_INVITABLE_FRIEND_DATA_FAIl FriendErrorReason = 9 // 获取好友申请请求数据失败 FriendErrorReason_GET_FRIEND_APPLY_REQUEST_DATA_FAIL FriendErrorReason = 10 // 获取所有的id信息失败 FriendErrorReason_GET_ALL_FRIEND_ID_FAIL FriendErrorReason = 11 // 根据好友id获取好友信息失败 FriendErrorReason_GET_FRIEND_BY_IDS_FAIL FriendErrorReason = 12 // 获取所有未处理的数据 FriendErrorReason_GET_UNTREATED_FRIENDS_APPLY_RECEIVE_FAIL FriendErrorReason = 13 // 好友不存在 FriendErrorReason_FRIEND_NOT_EXIST FriendErrorReason = 14 // 关闭名片添加 FriendErrorReason_USER_CLOSE_CARD_ADD FriendErrorReason = 15 // 关闭群添加 FriendErrorReason_USER_CLOSE_GROUP_ADD FriendErrorReason = 16 // 关闭id添加 FriendErrorReason_USER_CLOSE_ID_ADD FriendErrorReason = 17 // 关闭手机号添加 FriendErrorReason_USER_CLOSE_PHONE_ADD FriendErrorReason = 18 // 关闭二维码添加 FriendErrorReason_USER_CLOSE_RQ_CODE_ADD FriendErrorReason = 19 // 未知的来源类型 FriendErrorReason_UNKNOWN_SOURCE_TYPE FriendErrorReason = 20 // 根据被拉黑人id获取被拉黑人信息失败 FriendErrorReason_GET_FRIEND_BLACKLIST_BY_ID_FAIL FriendErrorReason = 21 // 根据申请人id获取申请人信息失败 FriendErrorReason_FRIEND_APPLY_LIST_BY_ID_FAIL FriendErrorReason = 22 // 根据好友id获取主动发出去的好友申请信息 FriendErrorReason_GET_APPLY_FRIENDS_FROM_BY_ID_FAIL FriendErrorReason = 23 )
func (FriendErrorReason) Descriptor ¶
func (FriendErrorReason) Descriptor() protoreflect.EnumDescriptor
func (FriendErrorReason) Enum ¶
func (x FriendErrorReason) Enum() *FriendErrorReason
func (FriendErrorReason) EnumDescriptor
deprecated
func (FriendErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use FriendErrorReason.Descriptor instead.
func (FriendErrorReason) Number ¶
func (x FriendErrorReason) Number() protoreflect.EnumNumber
func (FriendErrorReason) String ¶
func (x FriendErrorReason) String() string
func (FriendErrorReason) Type ¶
func (FriendErrorReason) Type() protoreflect.EnumType
type FriendServer ¶
type FriendServer interface { // 添加好友 存在 AddFriend(context.Context, *AddFriendReq) (*emptypb.Empty, error) // 同意或拒绝好友请求 存在 ProcessFriendApplication(context.Context, *ProcessFriendApplicationReq) (*emptypb.Empty, error) // 删除好友 存在 DeleteFriend(context.Context, *DeleteFriendReq) (*emptypb.Empty, error) // 单方面删除用户所有好友 DeleteAllFriends(context.Context, *DeleteAllFriendsReq) (*emptypb.Empty, error) // 设置好友资料 存在 SetFriendInfo(context.Context, *SetFriendInfoReq) (*emptypb.Empty, error) // 好友列表 存在 ListFriend(context.Context, *ListFriendReq) (*ListFriendReply, error) // 根据好友id获取最新好友数据 存在 ListFriendByIds(context.Context, *ListFriendByIdsReq) (*ListFriendByIdsReply, error) // 申请列表 存在 FriendApplyList(context.Context, *ListFriendApplyReq) (*ListFriendApplyReply, error) // 黑名单列表 存在 Blacklist(context.Context, *BlackListReq) (*BlackListReply, error) // 获取用户所有的好友id 存在 GetFriendIDs(context.Context, *GetFriendIDsReq) (*GetFriendIDsReply, error) // 添加黑名单 存在 AddBlack(context.Context, *AddBlackReq) (*emptypb.Empty, error) // 移除黑名单 存在 RemoveBlackList(context.Context, *RemoveBlackListReq) (*emptypb.Empty, error) // 判断是否好友 存在 IsFriend(context.Context, *IsFriendReq) (*IsFriendReply, error) // 判断是否在在黑名单中 存在 IsBlack(context.Context, *IsBlackReq) (*IsBlackReply, error) // 获取主动发出去的好友申请列表 存在 GetSendFriendsApply(context.Context, *GetSendFriendsApplyReq) (*GetSendFriendsApplyReply, error) // 获取收到的好友申请列表 存在 GetReceiveFriendsApply(context.Context, *GetReceiveFriendsApplyReq) (*GetReceiveFriendsApplyReply, error) // 获取收到的未处理的好友请求 存在 GetUntreatedFriendsApplyReceive(context.Context, *GetUntreatedFriendsApplyReceiveReq) (*GetUntreatedFriendsApplyReceiveReply, error) // 根据申请人和被申请人获取请求数据 存在 GetFriendRequestByApplicant(context.Context, *GetFriendRequestByApplicantReq) (*GetFriendRequestByApplicantReply, error) // contains filtered or unexported methods }
FriendServer is the server API for Friend service. All implementations must embed UnimplementedFriendServer for forward compatibility
type GetFriendIDsReply ¶
type GetFriendIDsReply struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*GetFriendIDsReply) Descriptor
deprecated
func (*GetFriendIDsReply) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendIDsReply.ProtoReflect.Descriptor instead.
func (*GetFriendIDsReply) GetIds ¶
func (x *GetFriendIDsReply) GetIds() []string
func (*GetFriendIDsReply) ProtoMessage ¶
func (*GetFriendIDsReply) ProtoMessage()
func (*GetFriendIDsReply) ProtoReflect ¶
func (x *GetFriendIDsReply) ProtoReflect() protoreflect.Message
func (*GetFriendIDsReply) Reset ¶
func (x *GetFriendIDsReply) Reset()
func (*GetFriendIDsReply) String ¶
func (x *GetFriendIDsReply) String() string
func (*GetFriendIDsReply) Validate ¶
func (m *GetFriendIDsReply) Validate() error
Validate checks the field values on GetFriendIDsReply 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 (*GetFriendIDsReply) ValidateAll ¶
func (m *GetFriendIDsReply) ValidateAll() error
ValidateAll checks the field values on GetFriendIDsReply 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 GetFriendIDsReplyMultiError, or nil if none found.
type GetFriendIDsReplyMultiError ¶
type GetFriendIDsReplyMultiError []error
GetFriendIDsReplyMultiError is an error wrapping multiple validation errors returned by GetFriendIDsReply.ValidateAll() if the designated constraints aren't met.
func (GetFriendIDsReplyMultiError) AllErrors ¶
func (m GetFriendIDsReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFriendIDsReplyMultiError) Error ¶
func (m GetFriendIDsReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFriendIDsReplyValidationError ¶
type GetFriendIDsReplyValidationError struct {
// contains filtered or unexported fields
}
GetFriendIDsReplyValidationError is the validation error returned by GetFriendIDsReply.Validate if the designated constraints aren't met.
func (GetFriendIDsReplyValidationError) Cause ¶
func (e GetFriendIDsReplyValidationError) Cause() error
Cause function returns cause value.
func (GetFriendIDsReplyValidationError) Error ¶
func (e GetFriendIDsReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetFriendIDsReplyValidationError) ErrorName ¶
func (e GetFriendIDsReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetFriendIDsReplyValidationError) Field ¶
func (e GetFriendIDsReplyValidationError) Field() string
Field function returns field value.
func (GetFriendIDsReplyValidationError) Key ¶
func (e GetFriendIDsReplyValidationError) Key() bool
Key function returns key value.
func (GetFriendIDsReplyValidationError) Reason ¶
func (e GetFriendIDsReplyValidationError) Reason() string
Reason function returns reason value.
type GetFriendIDsReq ¶
type GetFriendIDsReq struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
获取用户的所有好友ID 存在 -------------------------------------------
func (*GetFriendIDsReq) Descriptor
deprecated
func (*GetFriendIDsReq) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendIDsReq.ProtoReflect.Descriptor instead.
func (*GetFriendIDsReq) GetUserID ¶
func (x *GetFriendIDsReq) GetUserID() string
func (*GetFriendIDsReq) ProtoMessage ¶
func (*GetFriendIDsReq) ProtoMessage()
func (*GetFriendIDsReq) ProtoReflect ¶
func (x *GetFriendIDsReq) ProtoReflect() protoreflect.Message
func (*GetFriendIDsReq) Reset ¶
func (x *GetFriendIDsReq) Reset()
func (*GetFriendIDsReq) String ¶
func (x *GetFriendIDsReq) String() string
func (*GetFriendIDsReq) Validate ¶
func (m *GetFriendIDsReq) Validate() error
Validate checks the field values on GetFriendIDsReq 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 (*GetFriendIDsReq) ValidateAll ¶
func (m *GetFriendIDsReq) ValidateAll() error
ValidateAll checks the field values on GetFriendIDsReq 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 GetFriendIDsReqMultiError, or nil if none found.
type GetFriendIDsReqMultiError ¶
type GetFriendIDsReqMultiError []error
GetFriendIDsReqMultiError is an error wrapping multiple validation errors returned by GetFriendIDsReq.ValidateAll() if the designated constraints aren't met.
func (GetFriendIDsReqMultiError) AllErrors ¶
func (m GetFriendIDsReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFriendIDsReqMultiError) Error ¶
func (m GetFriendIDsReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFriendIDsReqValidationError ¶
type GetFriendIDsReqValidationError struct {
// contains filtered or unexported fields
}
GetFriendIDsReqValidationError is the validation error returned by GetFriendIDsReq.Validate if the designated constraints aren't met.
func (GetFriendIDsReqValidationError) Cause ¶
func (e GetFriendIDsReqValidationError) Cause() error
Cause function returns cause value.
func (GetFriendIDsReqValidationError) Error ¶
func (e GetFriendIDsReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetFriendIDsReqValidationError) ErrorName ¶
func (e GetFriendIDsReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetFriendIDsReqValidationError) Field ¶
func (e GetFriendIDsReqValidationError) Field() string
Field function returns field value.
func (GetFriendIDsReqValidationError) Key ¶
func (e GetFriendIDsReqValidationError) Key() bool
Key function returns key value.
func (GetFriendIDsReqValidationError) Reason ¶
func (e GetFriendIDsReqValidationError) Reason() string
Reason function returns reason value.
type GetFriendRequestByApplicantReply ¶
type GetFriendRequestByApplicantReply struct { FriendRequest *v2.FriendRequest `protobuf:"bytes,1,opt,name=friendRequest,proto3" json:"friendRequest,omitempty"` //好友请求 // contains filtered or unexported fields }
func (*GetFriendRequestByApplicantReply) Descriptor
deprecated
func (*GetFriendRequestByApplicantReply) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendRequestByApplicantReply.ProtoReflect.Descriptor instead.
func (*GetFriendRequestByApplicantReply) GetFriendRequest ¶
func (x *GetFriendRequestByApplicantReply) GetFriendRequest() *v2.FriendRequest
func (*GetFriendRequestByApplicantReply) ProtoMessage ¶
func (*GetFriendRequestByApplicantReply) ProtoMessage()
func (*GetFriendRequestByApplicantReply) ProtoReflect ¶
func (x *GetFriendRequestByApplicantReply) ProtoReflect() protoreflect.Message
func (*GetFriendRequestByApplicantReply) Reset ¶
func (x *GetFriendRequestByApplicantReply) Reset()
func (*GetFriendRequestByApplicantReply) String ¶
func (x *GetFriendRequestByApplicantReply) String() string
func (*GetFriendRequestByApplicantReply) Validate ¶
func (m *GetFriendRequestByApplicantReply) Validate() error
Validate checks the field values on GetFriendRequestByApplicantReply 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 (*GetFriendRequestByApplicantReply) ValidateAll ¶
func (m *GetFriendRequestByApplicantReply) ValidateAll() error
ValidateAll checks the field values on GetFriendRequestByApplicantReply 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 GetFriendRequestByApplicantReplyMultiError, or nil if none found.
type GetFriendRequestByApplicantReplyMultiError ¶
type GetFriendRequestByApplicantReplyMultiError []error
GetFriendRequestByApplicantReplyMultiError is an error wrapping multiple validation errors returned by GetFriendRequestByApplicantReply.ValidateAll() if the designated constraints aren't met.
func (GetFriendRequestByApplicantReplyMultiError) AllErrors ¶
func (m GetFriendRequestByApplicantReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFriendRequestByApplicantReplyMultiError) Error ¶
func (m GetFriendRequestByApplicantReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFriendRequestByApplicantReplyValidationError ¶
type GetFriendRequestByApplicantReplyValidationError struct {
// contains filtered or unexported fields
}
GetFriendRequestByApplicantReplyValidationError is the validation error returned by GetFriendRequestByApplicantReply.Validate if the designated constraints aren't met.
func (GetFriendRequestByApplicantReplyValidationError) Cause ¶
func (e GetFriendRequestByApplicantReplyValidationError) Cause() error
Cause function returns cause value.
func (GetFriendRequestByApplicantReplyValidationError) Error ¶
func (e GetFriendRequestByApplicantReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetFriendRequestByApplicantReplyValidationError) ErrorName ¶
func (e GetFriendRequestByApplicantReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetFriendRequestByApplicantReplyValidationError) Field ¶
func (e GetFriendRequestByApplicantReplyValidationError) Field() string
Field function returns field value.
func (GetFriendRequestByApplicantReplyValidationError) Key ¶
func (e GetFriendRequestByApplicantReplyValidationError) Key() bool
Key function returns key value.
func (GetFriendRequestByApplicantReplyValidationError) Reason ¶
func (e GetFriendRequestByApplicantReplyValidationError) Reason() string
Reason function returns reason value.
type GetFriendRequestByApplicantReq ¶
type GetFriendRequestByApplicantReq struct { FromUserID string `protobuf:"bytes,1,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` //发起者 ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` //接受者 UserId string `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"` //当前用户 // contains filtered or unexported fields }
根据申请和背申请人获取好友请求 存在 -------------------------------------------
func (*GetFriendRequestByApplicantReq) Descriptor
deprecated
func (*GetFriendRequestByApplicantReq) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendRequestByApplicantReq.ProtoReflect.Descriptor instead.
func (*GetFriendRequestByApplicantReq) GetFromUserID ¶
func (x *GetFriendRequestByApplicantReq) GetFromUserID() string
func (*GetFriendRequestByApplicantReq) GetToUserID ¶
func (x *GetFriendRequestByApplicantReq) GetToUserID() string
func (*GetFriendRequestByApplicantReq) GetUserId ¶ added in v0.0.3
func (x *GetFriendRequestByApplicantReq) GetUserId() string
func (*GetFriendRequestByApplicantReq) ProtoMessage ¶
func (*GetFriendRequestByApplicantReq) ProtoMessage()
func (*GetFriendRequestByApplicantReq) ProtoReflect ¶
func (x *GetFriendRequestByApplicantReq) ProtoReflect() protoreflect.Message
func (*GetFriendRequestByApplicantReq) Reset ¶
func (x *GetFriendRequestByApplicantReq) Reset()
func (*GetFriendRequestByApplicantReq) String ¶
func (x *GetFriendRequestByApplicantReq) String() string
func (*GetFriendRequestByApplicantReq) Validate ¶
func (m *GetFriendRequestByApplicantReq) Validate() error
Validate checks the field values on GetFriendRequestByApplicantReq 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 (*GetFriendRequestByApplicantReq) ValidateAll ¶
func (m *GetFriendRequestByApplicantReq) ValidateAll() error
ValidateAll checks the field values on GetFriendRequestByApplicantReq 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 GetFriendRequestByApplicantReqMultiError, or nil if none found.
type GetFriendRequestByApplicantReqMultiError ¶
type GetFriendRequestByApplicantReqMultiError []error
GetFriendRequestByApplicantReqMultiError is an error wrapping multiple validation errors returned by GetFriendRequestByApplicantReq.ValidateAll() if the designated constraints aren't met.
func (GetFriendRequestByApplicantReqMultiError) AllErrors ¶
func (m GetFriendRequestByApplicantReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFriendRequestByApplicantReqMultiError) Error ¶
func (m GetFriendRequestByApplicantReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFriendRequestByApplicantReqValidationError ¶
type GetFriendRequestByApplicantReqValidationError struct {
// contains filtered or unexported fields
}
GetFriendRequestByApplicantReqValidationError is the validation error returned by GetFriendRequestByApplicantReq.Validate if the designated constraints aren't met.
func (GetFriendRequestByApplicantReqValidationError) Cause ¶
func (e GetFriendRequestByApplicantReqValidationError) Cause() error
Cause function returns cause value.
func (GetFriendRequestByApplicantReqValidationError) Error ¶
func (e GetFriendRequestByApplicantReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetFriendRequestByApplicantReqValidationError) ErrorName ¶
func (e GetFriendRequestByApplicantReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetFriendRequestByApplicantReqValidationError) Field ¶
func (e GetFriendRequestByApplicantReqValidationError) Field() string
Field function returns field value.
func (GetFriendRequestByApplicantReqValidationError) Key ¶
func (e GetFriendRequestByApplicantReqValidationError) Key() bool
Key function returns key value.
func (GetFriendRequestByApplicantReqValidationError) Reason ¶
func (e GetFriendRequestByApplicantReqValidationError) Reason() string
Reason function returns reason value.
type GetReceiveFriendsApplyReply ¶
type GetReceiveFriendsApplyReply struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*v2.FriendRequest `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetReceiveFriendsApplyReply) Descriptor
deprecated
func (*GetReceiveFriendsApplyReply) Descriptor() ([]byte, []int)
Deprecated: Use GetReceiveFriendsApplyReply.ProtoReflect.Descriptor instead.
func (*GetReceiveFriendsApplyReply) GetList ¶
func (x *GetReceiveFriendsApplyReply) GetList() []*v2.FriendRequest
func (*GetReceiveFriendsApplyReply) GetTotal ¶
func (x *GetReceiveFriendsApplyReply) GetTotal() int64
func (*GetReceiveFriendsApplyReply) ProtoMessage ¶
func (*GetReceiveFriendsApplyReply) ProtoMessage()
func (*GetReceiveFriendsApplyReply) ProtoReflect ¶
func (x *GetReceiveFriendsApplyReply) ProtoReflect() protoreflect.Message
func (*GetReceiveFriendsApplyReply) Reset ¶
func (x *GetReceiveFriendsApplyReply) Reset()
func (*GetReceiveFriendsApplyReply) String ¶
func (x *GetReceiveFriendsApplyReply) String() string
func (*GetReceiveFriendsApplyReply) Validate ¶
func (m *GetReceiveFriendsApplyReply) Validate() error
Validate checks the field values on GetReceiveFriendsApplyReply 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 (*GetReceiveFriendsApplyReply) ValidateAll ¶
func (m *GetReceiveFriendsApplyReply) ValidateAll() error
ValidateAll checks the field values on GetReceiveFriendsApplyReply 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 GetReceiveFriendsApplyReplyMultiError, or nil if none found.
type GetReceiveFriendsApplyReplyMultiError ¶
type GetReceiveFriendsApplyReplyMultiError []error
GetReceiveFriendsApplyReplyMultiError is an error wrapping multiple validation errors returned by GetReceiveFriendsApplyReply.ValidateAll() if the designated constraints aren't met.
func (GetReceiveFriendsApplyReplyMultiError) AllErrors ¶
func (m GetReceiveFriendsApplyReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetReceiveFriendsApplyReplyMultiError) Error ¶
func (m GetReceiveFriendsApplyReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetReceiveFriendsApplyReplyValidationError ¶
type GetReceiveFriendsApplyReplyValidationError struct {
// contains filtered or unexported fields
}
GetReceiveFriendsApplyReplyValidationError is the validation error returned by GetReceiveFriendsApplyReply.Validate if the designated constraints aren't met.
func (GetReceiveFriendsApplyReplyValidationError) Cause ¶
func (e GetReceiveFriendsApplyReplyValidationError) Cause() error
Cause function returns cause value.
func (GetReceiveFriendsApplyReplyValidationError) Error ¶
func (e GetReceiveFriendsApplyReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetReceiveFriendsApplyReplyValidationError) ErrorName ¶
func (e GetReceiveFriendsApplyReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetReceiveFriendsApplyReplyValidationError) Field ¶
func (e GetReceiveFriendsApplyReplyValidationError) Field() string
Field function returns field value.
func (GetReceiveFriendsApplyReplyValidationError) Key ¶
func (e GetReceiveFriendsApplyReplyValidationError) Key() bool
Key function returns key value.
func (GetReceiveFriendsApplyReplyValidationError) Reason ¶
func (e GetReceiveFriendsApplyReplyValidationError) Reason() string
Reason function returns reason value.
type GetReceiveFriendsApplyReq ¶
type GetReceiveFriendsApplyReq struct { PageSize int64 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` PageNum int64 `protobuf:"varint,2,opt,name=pageNum,proto3" json:"pageNum,omitempty"` UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID,omitempty"` HasHandled int32 `protobuf:"varint,4,opt,name=hasHandled,proto3" json:"hasHandled,omitempty"` // 是否包含已处理请求 0-不包含 1-包含 // contains filtered or unexported fields }
获取收到的请求 存在 -------------------------------------------
func (*GetReceiveFriendsApplyReq) Descriptor
deprecated
func (*GetReceiveFriendsApplyReq) Descriptor() ([]byte, []int)
Deprecated: Use GetReceiveFriendsApplyReq.ProtoReflect.Descriptor instead.
func (*GetReceiveFriendsApplyReq) GetHasHandled ¶
func (x *GetReceiveFriendsApplyReq) GetHasHandled() int32
func (*GetReceiveFriendsApplyReq) GetPageNum ¶
func (x *GetReceiveFriendsApplyReq) GetPageNum() int64
func (*GetReceiveFriendsApplyReq) GetPageSize ¶
func (x *GetReceiveFriendsApplyReq) GetPageSize() int64
func (*GetReceiveFriendsApplyReq) GetUserID ¶
func (x *GetReceiveFriendsApplyReq) GetUserID() string
func (*GetReceiveFriendsApplyReq) ProtoMessage ¶
func (*GetReceiveFriendsApplyReq) ProtoMessage()
func (*GetReceiveFriendsApplyReq) ProtoReflect ¶
func (x *GetReceiveFriendsApplyReq) ProtoReflect() protoreflect.Message
func (*GetReceiveFriendsApplyReq) Reset ¶
func (x *GetReceiveFriendsApplyReq) Reset()
func (*GetReceiveFriendsApplyReq) String ¶
func (x *GetReceiveFriendsApplyReq) String() string
func (*GetReceiveFriendsApplyReq) Validate ¶
func (m *GetReceiveFriendsApplyReq) Validate() error
Validate checks the field values on GetReceiveFriendsApplyReq 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 (*GetReceiveFriendsApplyReq) ValidateAll ¶
func (m *GetReceiveFriendsApplyReq) ValidateAll() error
ValidateAll checks the field values on GetReceiveFriendsApplyReq 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 GetReceiveFriendsApplyReqMultiError, or nil if none found.
type GetReceiveFriendsApplyReqMultiError ¶
type GetReceiveFriendsApplyReqMultiError []error
GetReceiveFriendsApplyReqMultiError is an error wrapping multiple validation errors returned by GetReceiveFriendsApplyReq.ValidateAll() if the designated constraints aren't met.
func (GetReceiveFriendsApplyReqMultiError) AllErrors ¶
func (m GetReceiveFriendsApplyReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetReceiveFriendsApplyReqMultiError) Error ¶
func (m GetReceiveFriendsApplyReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetReceiveFriendsApplyReqValidationError ¶
type GetReceiveFriendsApplyReqValidationError struct {
// contains filtered or unexported fields
}
GetReceiveFriendsApplyReqValidationError is the validation error returned by GetReceiveFriendsApplyReq.Validate if the designated constraints aren't met.
func (GetReceiveFriendsApplyReqValidationError) Cause ¶
func (e GetReceiveFriendsApplyReqValidationError) Cause() error
Cause function returns cause value.
func (GetReceiveFriendsApplyReqValidationError) Error ¶
func (e GetReceiveFriendsApplyReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetReceiveFriendsApplyReqValidationError) ErrorName ¶
func (e GetReceiveFriendsApplyReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetReceiveFriendsApplyReqValidationError) Field ¶
func (e GetReceiveFriendsApplyReqValidationError) Field() string
Field function returns field value.
func (GetReceiveFriendsApplyReqValidationError) Key ¶
func (e GetReceiveFriendsApplyReqValidationError) Key() bool
Key function returns key value.
func (GetReceiveFriendsApplyReqValidationError) Reason ¶
func (e GetReceiveFriendsApplyReqValidationError) Reason() string
Reason function returns reason value.
type GetSendFriendsApplyReply ¶
type GetSendFriendsApplyReply struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*v2.FriendRequest `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetSendFriendsApplyReply) Descriptor
deprecated
func (*GetSendFriendsApplyReply) Descriptor() ([]byte, []int)
Deprecated: Use GetSendFriendsApplyReply.ProtoReflect.Descriptor instead.
func (*GetSendFriendsApplyReply) GetList ¶
func (x *GetSendFriendsApplyReply) GetList() []*v2.FriendRequest
func (*GetSendFriendsApplyReply) GetTotal ¶
func (x *GetSendFriendsApplyReply) GetTotal() int64
func (*GetSendFriendsApplyReply) ProtoMessage ¶
func (*GetSendFriendsApplyReply) ProtoMessage()
func (*GetSendFriendsApplyReply) ProtoReflect ¶
func (x *GetSendFriendsApplyReply) ProtoReflect() protoreflect.Message
func (*GetSendFriendsApplyReply) Reset ¶
func (x *GetSendFriendsApplyReply) Reset()
func (*GetSendFriendsApplyReply) String ¶
func (x *GetSendFriendsApplyReply) String() string
func (*GetSendFriendsApplyReply) Validate ¶
func (m *GetSendFriendsApplyReply) Validate() error
Validate checks the field values on GetSendFriendsApplyReply 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 (*GetSendFriendsApplyReply) ValidateAll ¶
func (m *GetSendFriendsApplyReply) ValidateAll() error
ValidateAll checks the field values on GetSendFriendsApplyReply 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 GetSendFriendsApplyReplyMultiError, or nil if none found.
type GetSendFriendsApplyReplyMultiError ¶
type GetSendFriendsApplyReplyMultiError []error
GetSendFriendsApplyReplyMultiError is an error wrapping multiple validation errors returned by GetSendFriendsApplyReply.ValidateAll() if the designated constraints aren't met.
func (GetSendFriendsApplyReplyMultiError) AllErrors ¶
func (m GetSendFriendsApplyReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetSendFriendsApplyReplyMultiError) Error ¶
func (m GetSendFriendsApplyReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetSendFriendsApplyReplyValidationError ¶
type GetSendFriendsApplyReplyValidationError struct {
// contains filtered or unexported fields
}
GetSendFriendsApplyReplyValidationError is the validation error returned by GetSendFriendsApplyReply.Validate if the designated constraints aren't met.
func (GetSendFriendsApplyReplyValidationError) Cause ¶
func (e GetSendFriendsApplyReplyValidationError) Cause() error
Cause function returns cause value.
func (GetSendFriendsApplyReplyValidationError) Error ¶
func (e GetSendFriendsApplyReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetSendFriendsApplyReplyValidationError) ErrorName ¶
func (e GetSendFriendsApplyReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetSendFriendsApplyReplyValidationError) Field ¶
func (e GetSendFriendsApplyReplyValidationError) Field() string
Field function returns field value.
func (GetSendFriendsApplyReplyValidationError) Key ¶
func (e GetSendFriendsApplyReplyValidationError) Key() bool
Key function returns key value.
func (GetSendFriendsApplyReplyValidationError) Reason ¶
func (e GetSendFriendsApplyReplyValidationError) Reason() string
Reason function returns reason value.
type GetSendFriendsApplyReq ¶
type GetSendFriendsApplyReq struct { PageSize int64 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` PageNum int64 `protobuf:"varint,2,opt,name=pageNum,proto3" json:"pageNum,omitempty"` UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID,omitempty"` HasHandled int32 `protobuf:"varint,4,opt,name=hasHandled,proto3" json:"hasHandled,omitempty"` // 是否包含已处理请求 0-不包含 1-包含 // contains filtered or unexported fields }
获取自己主动发出的请求 存在 -------------------------------------------
func (*GetSendFriendsApplyReq) Descriptor
deprecated
func (*GetSendFriendsApplyReq) Descriptor() ([]byte, []int)
Deprecated: Use GetSendFriendsApplyReq.ProtoReflect.Descriptor instead.
func (*GetSendFriendsApplyReq) GetHasHandled ¶
func (x *GetSendFriendsApplyReq) GetHasHandled() int32
func (*GetSendFriendsApplyReq) GetPageNum ¶
func (x *GetSendFriendsApplyReq) GetPageNum() int64
func (*GetSendFriendsApplyReq) GetPageSize ¶
func (x *GetSendFriendsApplyReq) GetPageSize() int64
func (*GetSendFriendsApplyReq) GetUserID ¶
func (x *GetSendFriendsApplyReq) GetUserID() string
func (*GetSendFriendsApplyReq) ProtoMessage ¶
func (*GetSendFriendsApplyReq) ProtoMessage()
func (*GetSendFriendsApplyReq) ProtoReflect ¶
func (x *GetSendFriendsApplyReq) ProtoReflect() protoreflect.Message
func (*GetSendFriendsApplyReq) Reset ¶
func (x *GetSendFriendsApplyReq) Reset()
func (*GetSendFriendsApplyReq) String ¶
func (x *GetSendFriendsApplyReq) String() string
func (*GetSendFriendsApplyReq) Validate ¶
func (m *GetSendFriendsApplyReq) Validate() error
Validate checks the field values on GetSendFriendsApplyReq 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 (*GetSendFriendsApplyReq) ValidateAll ¶
func (m *GetSendFriendsApplyReq) ValidateAll() error
ValidateAll checks the field values on GetSendFriendsApplyReq 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 GetSendFriendsApplyReqMultiError, or nil if none found.
type GetSendFriendsApplyReqMultiError ¶
type GetSendFriendsApplyReqMultiError []error
GetSendFriendsApplyReqMultiError is an error wrapping multiple validation errors returned by GetSendFriendsApplyReq.ValidateAll() if the designated constraints aren't met.
func (GetSendFriendsApplyReqMultiError) AllErrors ¶
func (m GetSendFriendsApplyReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetSendFriendsApplyReqMultiError) Error ¶
func (m GetSendFriendsApplyReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetSendFriendsApplyReqValidationError ¶
type GetSendFriendsApplyReqValidationError struct {
// contains filtered or unexported fields
}
GetSendFriendsApplyReqValidationError is the validation error returned by GetSendFriendsApplyReq.Validate if the designated constraints aren't met.
func (GetSendFriendsApplyReqValidationError) Cause ¶
func (e GetSendFriendsApplyReqValidationError) Cause() error
Cause function returns cause value.
func (GetSendFriendsApplyReqValidationError) Error ¶
func (e GetSendFriendsApplyReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetSendFriendsApplyReqValidationError) ErrorName ¶
func (e GetSendFriendsApplyReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetSendFriendsApplyReqValidationError) Field ¶
func (e GetSendFriendsApplyReqValidationError) Field() string
Field function returns field value.
func (GetSendFriendsApplyReqValidationError) Key ¶
func (e GetSendFriendsApplyReqValidationError) Key() bool
Key function returns key value.
func (GetSendFriendsApplyReqValidationError) Reason ¶
func (e GetSendFriendsApplyReqValidationError) Reason() string
Reason function returns reason value.
type GetUntreatedFriendsApplyReceiveReply ¶
type GetUntreatedFriendsApplyReceiveReply struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*v2.FriendRequest `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetUntreatedFriendsApplyReceiveReply) Descriptor
deprecated
func (*GetUntreatedFriendsApplyReceiveReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUntreatedFriendsApplyReceiveReply.ProtoReflect.Descriptor instead.
func (*GetUntreatedFriendsApplyReceiveReply) GetList ¶
func (x *GetUntreatedFriendsApplyReceiveReply) GetList() []*v2.FriendRequest
func (*GetUntreatedFriendsApplyReceiveReply) GetTotal ¶
func (x *GetUntreatedFriendsApplyReceiveReply) GetTotal() int64
func (*GetUntreatedFriendsApplyReceiveReply) ProtoMessage ¶
func (*GetUntreatedFriendsApplyReceiveReply) ProtoMessage()
func (*GetUntreatedFriendsApplyReceiveReply) ProtoReflect ¶
func (x *GetUntreatedFriendsApplyReceiveReply) ProtoReflect() protoreflect.Message
func (*GetUntreatedFriendsApplyReceiveReply) Reset ¶
func (x *GetUntreatedFriendsApplyReceiveReply) Reset()
func (*GetUntreatedFriendsApplyReceiveReply) String ¶
func (x *GetUntreatedFriendsApplyReceiveReply) String() string
func (*GetUntreatedFriendsApplyReceiveReply) Validate ¶
func (m *GetUntreatedFriendsApplyReceiveReply) Validate() error
Validate checks the field values on GetUntreatedFriendsApplyReceiveReply 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 (*GetUntreatedFriendsApplyReceiveReply) ValidateAll ¶
func (m *GetUntreatedFriendsApplyReceiveReply) ValidateAll() error
ValidateAll checks the field values on GetUntreatedFriendsApplyReceiveReply 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 GetUntreatedFriendsApplyReceiveReplyMultiError, or nil if none found.
type GetUntreatedFriendsApplyReceiveReplyMultiError ¶
type GetUntreatedFriendsApplyReceiveReplyMultiError []error
GetUntreatedFriendsApplyReceiveReplyMultiError is an error wrapping multiple validation errors returned by GetUntreatedFriendsApplyReceiveReply.ValidateAll() if the designated constraints aren't met.
func (GetUntreatedFriendsApplyReceiveReplyMultiError) AllErrors ¶
func (m GetUntreatedFriendsApplyReceiveReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUntreatedFriendsApplyReceiveReplyMultiError) Error ¶
func (m GetUntreatedFriendsApplyReceiveReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUntreatedFriendsApplyReceiveReplyValidationError ¶
type GetUntreatedFriendsApplyReceiveReplyValidationError struct {
// contains filtered or unexported fields
}
GetUntreatedFriendsApplyReceiveReplyValidationError is the validation error returned by GetUntreatedFriendsApplyReceiveReply.Validate if the designated constraints aren't met.
func (GetUntreatedFriendsApplyReceiveReplyValidationError) Cause ¶
func (e GetUntreatedFriendsApplyReceiveReplyValidationError) Cause() error
Cause function returns cause value.
func (GetUntreatedFriendsApplyReceiveReplyValidationError) Error ¶
func (e GetUntreatedFriendsApplyReceiveReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetUntreatedFriendsApplyReceiveReplyValidationError) ErrorName ¶
func (e GetUntreatedFriendsApplyReceiveReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetUntreatedFriendsApplyReceiveReplyValidationError) Field ¶
func (e GetUntreatedFriendsApplyReceiveReplyValidationError) Field() string
Field function returns field value.
func (GetUntreatedFriendsApplyReceiveReplyValidationError) Key ¶
func (e GetUntreatedFriendsApplyReceiveReplyValidationError) Key() bool
Key function returns key value.
func (GetUntreatedFriendsApplyReceiveReplyValidationError) Reason ¶
func (e GetUntreatedFriendsApplyReceiveReplyValidationError) Reason() string
Reason function returns reason value.
type GetUntreatedFriendsApplyReceiveReq ¶
type GetUntreatedFriendsApplyReceiveReq struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` PageNum int64 `protobuf:"varint,2,opt,name=pageNum,proto3" json:"pageNum,omitempty"` PageSize int64 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
获取所有未处理的好友请求 存在 -------------------------------------------
func (*GetUntreatedFriendsApplyReceiveReq) Descriptor
deprecated
func (*GetUntreatedFriendsApplyReceiveReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUntreatedFriendsApplyReceiveReq.ProtoReflect.Descriptor instead.
func (*GetUntreatedFriendsApplyReceiveReq) GetPageNum ¶
func (x *GetUntreatedFriendsApplyReceiveReq) GetPageNum() int64
func (*GetUntreatedFriendsApplyReceiveReq) GetPageSize ¶
func (x *GetUntreatedFriendsApplyReceiveReq) GetPageSize() int64
func (*GetUntreatedFriendsApplyReceiveReq) GetUserID ¶
func (x *GetUntreatedFriendsApplyReceiveReq) GetUserID() string
func (*GetUntreatedFriendsApplyReceiveReq) ProtoMessage ¶
func (*GetUntreatedFriendsApplyReceiveReq) ProtoMessage()
func (*GetUntreatedFriendsApplyReceiveReq) ProtoReflect ¶
func (x *GetUntreatedFriendsApplyReceiveReq) ProtoReflect() protoreflect.Message
func (*GetUntreatedFriendsApplyReceiveReq) Reset ¶
func (x *GetUntreatedFriendsApplyReceiveReq) Reset()
func (*GetUntreatedFriendsApplyReceiveReq) String ¶
func (x *GetUntreatedFriendsApplyReceiveReq) String() string
func (*GetUntreatedFriendsApplyReceiveReq) Validate ¶
func (m *GetUntreatedFriendsApplyReceiveReq) Validate() error
Validate checks the field values on GetUntreatedFriendsApplyReceiveReq 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 (*GetUntreatedFriendsApplyReceiveReq) ValidateAll ¶
func (m *GetUntreatedFriendsApplyReceiveReq) ValidateAll() error
ValidateAll checks the field values on GetUntreatedFriendsApplyReceiveReq 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 GetUntreatedFriendsApplyReceiveReqMultiError, or nil if none found.
type GetUntreatedFriendsApplyReceiveReqMultiError ¶
type GetUntreatedFriendsApplyReceiveReqMultiError []error
GetUntreatedFriendsApplyReceiveReqMultiError is an error wrapping multiple validation errors returned by GetUntreatedFriendsApplyReceiveReq.ValidateAll() if the designated constraints aren't met.
func (GetUntreatedFriendsApplyReceiveReqMultiError) AllErrors ¶
func (m GetUntreatedFriendsApplyReceiveReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUntreatedFriendsApplyReceiveReqMultiError) Error ¶
func (m GetUntreatedFriendsApplyReceiveReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUntreatedFriendsApplyReceiveReqValidationError ¶
type GetUntreatedFriendsApplyReceiveReqValidationError struct {
// contains filtered or unexported fields
}
GetUntreatedFriendsApplyReceiveReqValidationError is the validation error returned by GetUntreatedFriendsApplyReceiveReq.Validate if the designated constraints aren't met.
func (GetUntreatedFriendsApplyReceiveReqValidationError) Cause ¶
func (e GetUntreatedFriendsApplyReceiveReqValidationError) Cause() error
Cause function returns cause value.
func (GetUntreatedFriendsApplyReceiveReqValidationError) Error ¶
func (e GetUntreatedFriendsApplyReceiveReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetUntreatedFriendsApplyReceiveReqValidationError) ErrorName ¶
func (e GetUntreatedFriendsApplyReceiveReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetUntreatedFriendsApplyReceiveReqValidationError) Field ¶
func (e GetUntreatedFriendsApplyReceiveReqValidationError) Field() string
Field function returns field value.
func (GetUntreatedFriendsApplyReceiveReqValidationError) Key ¶
func (e GetUntreatedFriendsApplyReceiveReqValidationError) Key() bool
Key function returns key value.
func (GetUntreatedFriendsApplyReceiveReqValidationError) Reason ¶
func (e GetUntreatedFriendsApplyReceiveReqValidationError) Reason() string
Reason function returns reason value.
type IsBlackReply ¶
type IsBlackReply struct { IsBlack bool `protobuf:"varint,1,opt,name=isBlack,proto3" json:"isBlack,omitempty"` // contains filtered or unexported fields }
func (*IsBlackReply) Descriptor
deprecated
func (*IsBlackReply) Descriptor() ([]byte, []int)
Deprecated: Use IsBlackReply.ProtoReflect.Descriptor instead.
func (*IsBlackReply) GetIsBlack ¶
func (x *IsBlackReply) GetIsBlack() bool
func (*IsBlackReply) ProtoMessage ¶
func (*IsBlackReply) ProtoMessage()
func (*IsBlackReply) ProtoReflect ¶
func (x *IsBlackReply) ProtoReflect() protoreflect.Message
func (*IsBlackReply) Reset ¶
func (x *IsBlackReply) Reset()
func (*IsBlackReply) String ¶
func (x *IsBlackReply) String() string
func (*IsBlackReply) Validate ¶
func (m *IsBlackReply) Validate() error
Validate checks the field values on IsBlackReply 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 (*IsBlackReply) ValidateAll ¶
func (m *IsBlackReply) ValidateAll() error
ValidateAll checks the field values on IsBlackReply 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 IsBlackReplyMultiError, or nil if none found.
type IsBlackReplyMultiError ¶
type IsBlackReplyMultiError []error
IsBlackReplyMultiError is an error wrapping multiple validation errors returned by IsBlackReply.ValidateAll() if the designated constraints aren't met.
func (IsBlackReplyMultiError) AllErrors ¶
func (m IsBlackReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IsBlackReplyMultiError) Error ¶
func (m IsBlackReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IsBlackReplyValidationError ¶
type IsBlackReplyValidationError struct {
// contains filtered or unexported fields
}
IsBlackReplyValidationError is the validation error returned by IsBlackReply.Validate if the designated constraints aren't met.
func (IsBlackReplyValidationError) Cause ¶
func (e IsBlackReplyValidationError) Cause() error
Cause function returns cause value.
func (IsBlackReplyValidationError) Error ¶
func (e IsBlackReplyValidationError) Error() string
Error satisfies the builtin error interface
func (IsBlackReplyValidationError) ErrorName ¶
func (e IsBlackReplyValidationError) ErrorName() string
ErrorName returns error name.
func (IsBlackReplyValidationError) Field ¶
func (e IsBlackReplyValidationError) Field() string
Field function returns field value.
func (IsBlackReplyValidationError) Key ¶
func (e IsBlackReplyValidationError) Key() bool
Key function returns key value.
func (IsBlackReplyValidationError) Reason ¶
func (e IsBlackReplyValidationError) Reason() string
Reason function returns reason value.
type IsBlackReq ¶
type IsBlackReq struct { OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID,proto3" json:"ownerUserID,omitempty"` ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` // contains filtered or unexported fields }
是否在黑名单中 存在 -------------------------------------------
func (*IsBlackReq) Descriptor
deprecated
func (*IsBlackReq) Descriptor() ([]byte, []int)
Deprecated: Use IsBlackReq.ProtoReflect.Descriptor instead.
func (*IsBlackReq) GetOwnerUserID ¶
func (x *IsBlackReq) GetOwnerUserID() string
func (*IsBlackReq) GetToUserID ¶
func (x *IsBlackReq) GetToUserID() string
func (*IsBlackReq) ProtoMessage ¶
func (*IsBlackReq) ProtoMessage()
func (*IsBlackReq) ProtoReflect ¶
func (x *IsBlackReq) ProtoReflect() protoreflect.Message
func (*IsBlackReq) Reset ¶
func (x *IsBlackReq) Reset()
func (*IsBlackReq) String ¶
func (x *IsBlackReq) String() string
func (*IsBlackReq) Validate ¶
func (m *IsBlackReq) Validate() error
Validate checks the field values on IsBlackReq 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 (*IsBlackReq) ValidateAll ¶
func (m *IsBlackReq) ValidateAll() error
ValidateAll checks the field values on IsBlackReq 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 IsBlackReqMultiError, or nil if none found.
type IsBlackReqMultiError ¶
type IsBlackReqMultiError []error
IsBlackReqMultiError is an error wrapping multiple validation errors returned by IsBlackReq.ValidateAll() if the designated constraints aren't met.
func (IsBlackReqMultiError) AllErrors ¶
func (m IsBlackReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IsBlackReqMultiError) Error ¶
func (m IsBlackReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IsBlackReqValidationError ¶
type IsBlackReqValidationError struct {
// contains filtered or unexported fields
}
IsBlackReqValidationError is the validation error returned by IsBlackReq.Validate if the designated constraints aren't met.
func (IsBlackReqValidationError) Cause ¶
func (e IsBlackReqValidationError) Cause() error
Cause function returns cause value.
func (IsBlackReqValidationError) Error ¶
func (e IsBlackReqValidationError) Error() string
Error satisfies the builtin error interface
func (IsBlackReqValidationError) ErrorName ¶
func (e IsBlackReqValidationError) ErrorName() string
ErrorName returns error name.
func (IsBlackReqValidationError) Field ¶
func (e IsBlackReqValidationError) Field() string
Field function returns field value.
func (IsBlackReqValidationError) Key ¶
func (e IsBlackReqValidationError) Key() bool
Key function returns key value.
func (IsBlackReqValidationError) Reason ¶
func (e IsBlackReqValidationError) Reason() string
Reason function returns reason value.
type IsFriendReply ¶
type IsFriendReply struct { IsFriend bool `protobuf:"varint,1,opt,name=isFriend,proto3" json:"isFriend,omitempty"` // contains filtered or unexported fields }
func (*IsFriendReply) Descriptor
deprecated
func (*IsFriendReply) Descriptor() ([]byte, []int)
Deprecated: Use IsFriendReply.ProtoReflect.Descriptor instead.
func (*IsFriendReply) GetIsFriend ¶
func (x *IsFriendReply) GetIsFriend() bool
func (*IsFriendReply) ProtoMessage ¶
func (*IsFriendReply) ProtoMessage()
func (*IsFriendReply) ProtoReflect ¶
func (x *IsFriendReply) ProtoReflect() protoreflect.Message
func (*IsFriendReply) Reset ¶
func (x *IsFriendReply) Reset()
func (*IsFriendReply) String ¶
func (x *IsFriendReply) String() string
func (*IsFriendReply) Validate ¶
func (m *IsFriendReply) Validate() error
Validate checks the field values on IsFriendReply 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 (*IsFriendReply) ValidateAll ¶
func (m *IsFriendReply) ValidateAll() error
ValidateAll checks the field values on IsFriendReply 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 IsFriendReplyMultiError, or nil if none found.
type IsFriendReplyMultiError ¶
type IsFriendReplyMultiError []error
IsFriendReplyMultiError is an error wrapping multiple validation errors returned by IsFriendReply.ValidateAll() if the designated constraints aren't met.
func (IsFriendReplyMultiError) AllErrors ¶
func (m IsFriendReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IsFriendReplyMultiError) Error ¶
func (m IsFriendReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IsFriendReplyValidationError ¶
type IsFriendReplyValidationError struct {
// contains filtered or unexported fields
}
IsFriendReplyValidationError is the validation error returned by IsFriendReply.Validate if the designated constraints aren't met.
func (IsFriendReplyValidationError) Cause ¶
func (e IsFriendReplyValidationError) Cause() error
Cause function returns cause value.
func (IsFriendReplyValidationError) Error ¶
func (e IsFriendReplyValidationError) Error() string
Error satisfies the builtin error interface
func (IsFriendReplyValidationError) ErrorName ¶
func (e IsFriendReplyValidationError) ErrorName() string
ErrorName returns error name.
func (IsFriendReplyValidationError) Field ¶
func (e IsFriendReplyValidationError) Field() string
Field function returns field value.
func (IsFriendReplyValidationError) Key ¶
func (e IsFriendReplyValidationError) Key() bool
Key function returns key value.
func (IsFriendReplyValidationError) Reason ¶
func (e IsFriendReplyValidationError) Reason() string
Reason function returns reason value.
type IsFriendReq ¶
type IsFriendReq struct { OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID,proto3" json:"ownerUserID,omitempty"` FromUserID string `protobuf:"bytes,2,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` // contains filtered or unexported fields }
是否好友 存在 -------------------------------------------
func (*IsFriendReq) Descriptor
deprecated
func (*IsFriendReq) Descriptor() ([]byte, []int)
Deprecated: Use IsFriendReq.ProtoReflect.Descriptor instead.
func (*IsFriendReq) GetFromUserID ¶
func (x *IsFriendReq) GetFromUserID() string
func (*IsFriendReq) GetOwnerUserID ¶
func (x *IsFriendReq) GetOwnerUserID() string
func (*IsFriendReq) ProtoMessage ¶
func (*IsFriendReq) ProtoMessage()
func (*IsFriendReq) ProtoReflect ¶
func (x *IsFriendReq) ProtoReflect() protoreflect.Message
func (*IsFriendReq) Reset ¶
func (x *IsFriendReq) Reset()
func (*IsFriendReq) String ¶
func (x *IsFriendReq) String() string
func (*IsFriendReq) Validate ¶
func (m *IsFriendReq) Validate() error
Validate checks the field values on IsFriendReq 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 (*IsFriendReq) ValidateAll ¶
func (m *IsFriendReq) ValidateAll() error
ValidateAll checks the field values on IsFriendReq 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 IsFriendReqMultiError, or nil if none found.
type IsFriendReqMultiError ¶
type IsFriendReqMultiError []error
IsFriendReqMultiError is an error wrapping multiple validation errors returned by IsFriendReq.ValidateAll() if the designated constraints aren't met.
func (IsFriendReqMultiError) AllErrors ¶
func (m IsFriendReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IsFriendReqMultiError) Error ¶
func (m IsFriendReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IsFriendReqValidationError ¶
type IsFriendReqValidationError struct {
// contains filtered or unexported fields
}
IsFriendReqValidationError is the validation error returned by IsFriendReq.Validate if the designated constraints aren't met.
func (IsFriendReqValidationError) Cause ¶
func (e IsFriendReqValidationError) Cause() error
Cause function returns cause value.
func (IsFriendReqValidationError) Error ¶
func (e IsFriendReqValidationError) Error() string
Error satisfies the builtin error interface
func (IsFriendReqValidationError) ErrorName ¶
func (e IsFriendReqValidationError) ErrorName() string
ErrorName returns error name.
func (IsFriendReqValidationError) Field ¶
func (e IsFriendReqValidationError) Field() string
Field function returns field value.
func (IsFriendReqValidationError) Key ¶
func (e IsFriendReqValidationError) Key() bool
Key function returns key value.
func (IsFriendReqValidationError) Reason ¶
func (e IsFriendReqValidationError) Reason() string
Reason function returns reason value.
type ListFriendApplyReply ¶
type ListFriendApplyReply struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*v2.FriendRequest `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ListFriendApplyReply) Descriptor
deprecated
func (*ListFriendApplyReply) Descriptor() ([]byte, []int)
Deprecated: Use ListFriendApplyReply.ProtoReflect.Descriptor instead.
func (*ListFriendApplyReply) GetList ¶
func (x *ListFriendApplyReply) GetList() []*v2.FriendRequest
func (*ListFriendApplyReply) GetTotal ¶
func (x *ListFriendApplyReply) GetTotal() int64
func (*ListFriendApplyReply) ProtoMessage ¶
func (*ListFriendApplyReply) ProtoMessage()
func (*ListFriendApplyReply) ProtoReflect ¶
func (x *ListFriendApplyReply) ProtoReflect() protoreflect.Message
func (*ListFriendApplyReply) Reset ¶
func (x *ListFriendApplyReply) Reset()
func (*ListFriendApplyReply) String ¶
func (x *ListFriendApplyReply) String() string
func (*ListFriendApplyReply) Validate ¶
func (m *ListFriendApplyReply) Validate() error
Validate checks the field values on ListFriendApplyReply 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 (*ListFriendApplyReply) ValidateAll ¶
func (m *ListFriendApplyReply) ValidateAll() error
ValidateAll checks the field values on ListFriendApplyReply 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 ListFriendApplyReplyMultiError, or nil if none found.
type ListFriendApplyReplyMultiError ¶
type ListFriendApplyReplyMultiError []error
ListFriendApplyReplyMultiError is an error wrapping multiple validation errors returned by ListFriendApplyReply.ValidateAll() if the designated constraints aren't met.
func (ListFriendApplyReplyMultiError) AllErrors ¶
func (m ListFriendApplyReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFriendApplyReplyMultiError) Error ¶
func (m ListFriendApplyReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFriendApplyReplyValidationError ¶
type ListFriendApplyReplyValidationError struct {
// contains filtered or unexported fields
}
ListFriendApplyReplyValidationError is the validation error returned by ListFriendApplyReply.Validate if the designated constraints aren't met.
func (ListFriendApplyReplyValidationError) Cause ¶
func (e ListFriendApplyReplyValidationError) Cause() error
Cause function returns cause value.
func (ListFriendApplyReplyValidationError) Error ¶
func (e ListFriendApplyReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListFriendApplyReplyValidationError) ErrorName ¶
func (e ListFriendApplyReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListFriendApplyReplyValidationError) Field ¶
func (e ListFriendApplyReplyValidationError) Field() string
Field function returns field value.
func (ListFriendApplyReplyValidationError) Key ¶
func (e ListFriendApplyReplyValidationError) Key() bool
Key function returns key value.
func (ListFriendApplyReplyValidationError) Reason ¶
func (e ListFriendApplyReplyValidationError) Reason() string
Reason function returns reason value.
type ListFriendApplyReq ¶
type ListFriendApplyReq struct { OwnerID string `protobuf:"bytes,1,opt,name=ownerID,proto3" json:"ownerID,omitempty"` Kind int64 `protobuf:"varint,2,opt,name=kind,proto3" json:"kind,omitempty"` UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID,omitempty"` PageNum int64 `protobuf:"varint,4,opt,name=pageNum,proto3" json:"pageNum,omitempty"` PageSize int64 `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
好友请求列表 存在 -------------------------------------------
func (*ListFriendApplyReq) Descriptor
deprecated
func (*ListFriendApplyReq) Descriptor() ([]byte, []int)
Deprecated: Use ListFriendApplyReq.ProtoReflect.Descriptor instead.
func (*ListFriendApplyReq) GetKind ¶
func (x *ListFriendApplyReq) GetKind() int64
func (*ListFriendApplyReq) GetOwnerID ¶
func (x *ListFriendApplyReq) GetOwnerID() string
func (*ListFriendApplyReq) GetPageNum ¶
func (x *ListFriendApplyReq) GetPageNum() int64
func (*ListFriendApplyReq) GetPageSize ¶
func (x *ListFriendApplyReq) GetPageSize() int64
func (*ListFriendApplyReq) GetUserID ¶
func (x *ListFriendApplyReq) GetUserID() string
func (*ListFriendApplyReq) ProtoMessage ¶
func (*ListFriendApplyReq) ProtoMessage()
func (*ListFriendApplyReq) ProtoReflect ¶
func (x *ListFriendApplyReq) ProtoReflect() protoreflect.Message
func (*ListFriendApplyReq) Reset ¶
func (x *ListFriendApplyReq) Reset()
func (*ListFriendApplyReq) String ¶
func (x *ListFriendApplyReq) String() string
func (*ListFriendApplyReq) Validate ¶
func (m *ListFriendApplyReq) Validate() error
Validate checks the field values on ListFriendApplyReq 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 (*ListFriendApplyReq) ValidateAll ¶
func (m *ListFriendApplyReq) ValidateAll() error
ValidateAll checks the field values on ListFriendApplyReq 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 ListFriendApplyReqMultiError, or nil if none found.
type ListFriendApplyReqMultiError ¶
type ListFriendApplyReqMultiError []error
ListFriendApplyReqMultiError is an error wrapping multiple validation errors returned by ListFriendApplyReq.ValidateAll() if the designated constraints aren't met.
func (ListFriendApplyReqMultiError) AllErrors ¶
func (m ListFriendApplyReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFriendApplyReqMultiError) Error ¶
func (m ListFriendApplyReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFriendApplyReqValidationError ¶
type ListFriendApplyReqValidationError struct {
// contains filtered or unexported fields
}
ListFriendApplyReqValidationError is the validation error returned by ListFriendApplyReq.Validate if the designated constraints aren't met.
func (ListFriendApplyReqValidationError) Cause ¶
func (e ListFriendApplyReqValidationError) Cause() error
Cause function returns cause value.
func (ListFriendApplyReqValidationError) Error ¶
func (e ListFriendApplyReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListFriendApplyReqValidationError) ErrorName ¶
func (e ListFriendApplyReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListFriendApplyReqValidationError) Field ¶
func (e ListFriendApplyReqValidationError) Field() string
Field function returns field value.
func (ListFriendApplyReqValidationError) Key ¶
func (e ListFriendApplyReqValidationError) Key() bool
Key function returns key value.
func (ListFriendApplyReqValidationError) Reason ¶
func (e ListFriendApplyReqValidationError) Reason() string
Reason function returns reason value.
type ListFriendByIdsReply ¶
type ListFriendByIdsReply struct { List []*v2.FriendInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` //好友信息 // contains filtered or unexported fields }
func (*ListFriendByIdsReply) Descriptor
deprecated
func (*ListFriendByIdsReply) Descriptor() ([]byte, []int)
Deprecated: Use ListFriendByIdsReply.ProtoReflect.Descriptor instead.
func (*ListFriendByIdsReply) GetList ¶
func (x *ListFriendByIdsReply) GetList() []*v2.FriendInfo
func (*ListFriendByIdsReply) ProtoMessage ¶
func (*ListFriendByIdsReply) ProtoMessage()
func (*ListFriendByIdsReply) ProtoReflect ¶
func (x *ListFriendByIdsReply) ProtoReflect() protoreflect.Message
func (*ListFriendByIdsReply) Reset ¶
func (x *ListFriendByIdsReply) Reset()
func (*ListFriendByIdsReply) String ¶
func (x *ListFriendByIdsReply) String() string
func (*ListFriendByIdsReply) Validate ¶
func (m *ListFriendByIdsReply) Validate() error
Validate checks the field values on ListFriendByIdsReply 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 (*ListFriendByIdsReply) ValidateAll ¶
func (m *ListFriendByIdsReply) ValidateAll() error
ValidateAll checks the field values on ListFriendByIdsReply 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 ListFriendByIdsReplyMultiError, or nil if none found.
type ListFriendByIdsReplyMultiError ¶
type ListFriendByIdsReplyMultiError []error
ListFriendByIdsReplyMultiError is an error wrapping multiple validation errors returned by ListFriendByIdsReply.ValidateAll() if the designated constraints aren't met.
func (ListFriendByIdsReplyMultiError) AllErrors ¶
func (m ListFriendByIdsReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFriendByIdsReplyMultiError) Error ¶
func (m ListFriendByIdsReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFriendByIdsReplyValidationError ¶
type ListFriendByIdsReplyValidationError struct {
// contains filtered or unexported fields
}
ListFriendByIdsReplyValidationError is the validation error returned by ListFriendByIdsReply.Validate if the designated constraints aren't met.
func (ListFriendByIdsReplyValidationError) Cause ¶
func (e ListFriendByIdsReplyValidationError) Cause() error
Cause function returns cause value.
func (ListFriendByIdsReplyValidationError) Error ¶
func (e ListFriendByIdsReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListFriendByIdsReplyValidationError) ErrorName ¶
func (e ListFriendByIdsReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListFriendByIdsReplyValidationError) Field ¶
func (e ListFriendByIdsReplyValidationError) Field() string
Field function returns field value.
func (ListFriendByIdsReplyValidationError) Key ¶
func (e ListFriendByIdsReplyValidationError) Key() bool
Key function returns key value.
func (ListFriendByIdsReplyValidationError) Reason ¶
func (e ListFriendByIdsReplyValidationError) Reason() string
Reason function returns reason value.
type ListFriendByIdsReq ¶
type ListFriendByIdsReq struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` //用户id FriendIds []string `protobuf:"bytes,2,rep,name=friendIds,proto3" json:"friendIds,omitempty"` //好友id列表 // contains filtered or unexported fields }
根据id获取好友信息 存在 -------------------------------------------
func (*ListFriendByIdsReq) Descriptor
deprecated
func (*ListFriendByIdsReq) Descriptor() ([]byte, []int)
Deprecated: Use ListFriendByIdsReq.ProtoReflect.Descriptor instead.
func (*ListFriendByIdsReq) GetFriendIds ¶
func (x *ListFriendByIdsReq) GetFriendIds() []string
func (*ListFriendByIdsReq) GetUserID ¶
func (x *ListFriendByIdsReq) GetUserID() string
func (*ListFriendByIdsReq) ProtoMessage ¶
func (*ListFriendByIdsReq) ProtoMessage()
func (*ListFriendByIdsReq) ProtoReflect ¶
func (x *ListFriendByIdsReq) ProtoReflect() protoreflect.Message
func (*ListFriendByIdsReq) Reset ¶
func (x *ListFriendByIdsReq) Reset()
func (*ListFriendByIdsReq) String ¶
func (x *ListFriendByIdsReq) String() string
func (*ListFriendByIdsReq) Validate ¶
func (m *ListFriendByIdsReq) Validate() error
Validate checks the field values on ListFriendByIdsReq 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 (*ListFriendByIdsReq) ValidateAll ¶
func (m *ListFriendByIdsReq) ValidateAll() error
ValidateAll checks the field values on ListFriendByIdsReq 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 ListFriendByIdsReqMultiError, or nil if none found.
type ListFriendByIdsReqMultiError ¶
type ListFriendByIdsReqMultiError []error
ListFriendByIdsReqMultiError is an error wrapping multiple validation errors returned by ListFriendByIdsReq.ValidateAll() if the designated constraints aren't met.
func (ListFriendByIdsReqMultiError) AllErrors ¶
func (m ListFriendByIdsReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFriendByIdsReqMultiError) Error ¶
func (m ListFriendByIdsReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFriendByIdsReqValidationError ¶
type ListFriendByIdsReqValidationError struct {
// contains filtered or unexported fields
}
ListFriendByIdsReqValidationError is the validation error returned by ListFriendByIdsReq.Validate if the designated constraints aren't met.
func (ListFriendByIdsReqValidationError) Cause ¶
func (e ListFriendByIdsReqValidationError) Cause() error
Cause function returns cause value.
func (ListFriendByIdsReqValidationError) Error ¶
func (e ListFriendByIdsReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListFriendByIdsReqValidationError) ErrorName ¶
func (e ListFriendByIdsReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListFriendByIdsReqValidationError) Field ¶
func (e ListFriendByIdsReqValidationError) Field() string
Field function returns field value.
func (ListFriendByIdsReqValidationError) Key ¶
func (e ListFriendByIdsReqValidationError) Key() bool
Key function returns key value.
func (ListFriendByIdsReqValidationError) Reason ¶
func (e ListFriendByIdsReqValidationError) Reason() string
Reason function returns reason value.
type ListFriendReply ¶
type ListFriendReply struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*v2.FriendInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ListFriendReply) Descriptor
deprecated
func (*ListFriendReply) Descriptor() ([]byte, []int)
Deprecated: Use ListFriendReply.ProtoReflect.Descriptor instead.
func (*ListFriendReply) GetList ¶
func (x *ListFriendReply) GetList() []*v2.FriendInfo
func (*ListFriendReply) GetTotal ¶
func (x *ListFriendReply) GetTotal() int64
func (*ListFriendReply) ProtoMessage ¶
func (*ListFriendReply) ProtoMessage()
func (*ListFriendReply) ProtoReflect ¶
func (x *ListFriendReply) ProtoReflect() protoreflect.Message
func (*ListFriendReply) Reset ¶
func (x *ListFriendReply) Reset()
func (*ListFriendReply) String ¶
func (x *ListFriendReply) String() string
func (*ListFriendReply) Validate ¶
func (m *ListFriendReply) Validate() error
Validate checks the field values on ListFriendReply 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 (*ListFriendReply) ValidateAll ¶
func (m *ListFriendReply) ValidateAll() error
ValidateAll checks the field values on ListFriendReply 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 ListFriendReplyMultiError, or nil if none found.
type ListFriendReplyMultiError ¶
type ListFriendReplyMultiError []error
ListFriendReplyMultiError is an error wrapping multiple validation errors returned by ListFriendReply.ValidateAll() if the designated constraints aren't met.
func (ListFriendReplyMultiError) AllErrors ¶
func (m ListFriendReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFriendReplyMultiError) Error ¶
func (m ListFriendReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFriendReplyValidationError ¶
type ListFriendReplyValidationError struct {
// contains filtered or unexported fields
}
ListFriendReplyValidationError is the validation error returned by ListFriendReply.Validate if the designated constraints aren't met.
func (ListFriendReplyValidationError) Cause ¶
func (e ListFriendReplyValidationError) Cause() error
Cause function returns cause value.
func (ListFriendReplyValidationError) Error ¶
func (e ListFriendReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListFriendReplyValidationError) ErrorName ¶
func (e ListFriendReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListFriendReplyValidationError) Field ¶
func (e ListFriendReplyValidationError) Field() string
Field function returns field value.
func (ListFriendReplyValidationError) Key ¶
func (e ListFriendReplyValidationError) Key() bool
Key function returns key value.
func (ListFriendReplyValidationError) Reason ¶
func (e ListFriendReplyValidationError) Reason() string
Reason function returns reason value.
type ListFriendReq ¶
type ListFriendReq struct { Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` PageNum int64 `protobuf:"varint,5,opt,name=pageNum,proto3" json:"pageNum,omitempty"` PageSize int64 `protobuf:"varint,6,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
获取好友列表 存在 -------------------------------------------
func (*ListFriendReq) Descriptor
deprecated
func (*ListFriendReq) Descriptor() ([]byte, []int)
Deprecated: Use ListFriendReq.ProtoReflect.Descriptor instead.
func (*ListFriendReq) GetCode ¶
func (x *ListFriendReq) GetCode() string
func (*ListFriendReq) GetName ¶
func (x *ListFriendReq) GetName() string
func (*ListFriendReq) GetPageNum ¶
func (x *ListFriendReq) GetPageNum() int64
func (*ListFriendReq) GetPageSize ¶
func (x *ListFriendReq) GetPageSize() int64
func (*ListFriendReq) GetPhone ¶
func (x *ListFriendReq) GetPhone() string
func (*ListFriendReq) GetUserID ¶
func (x *ListFriendReq) GetUserID() string
func (*ListFriendReq) ProtoMessage ¶
func (*ListFriendReq) ProtoMessage()
func (*ListFriendReq) ProtoReflect ¶
func (x *ListFriendReq) ProtoReflect() protoreflect.Message
func (*ListFriendReq) Reset ¶
func (x *ListFriendReq) Reset()
func (*ListFriendReq) String ¶
func (x *ListFriendReq) String() string
func (*ListFriendReq) Validate ¶
func (m *ListFriendReq) Validate() error
Validate checks the field values on ListFriendReq 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 (*ListFriendReq) ValidateAll ¶
func (m *ListFriendReq) ValidateAll() error
ValidateAll checks the field values on ListFriendReq 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 ListFriendReqMultiError, or nil if none found.
type ListFriendReqMultiError ¶
type ListFriendReqMultiError []error
ListFriendReqMultiError is an error wrapping multiple validation errors returned by ListFriendReq.ValidateAll() if the designated constraints aren't met.
func (ListFriendReqMultiError) AllErrors ¶
func (m ListFriendReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFriendReqMultiError) Error ¶
func (m ListFriendReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFriendReqValidationError ¶
type ListFriendReqValidationError struct {
// contains filtered or unexported fields
}
ListFriendReqValidationError is the validation error returned by ListFriendReq.Validate if the designated constraints aren't met.
func (ListFriendReqValidationError) Cause ¶
func (e ListFriendReqValidationError) Cause() error
Cause function returns cause value.
func (ListFriendReqValidationError) Error ¶
func (e ListFriendReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListFriendReqValidationError) ErrorName ¶
func (e ListFriendReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListFriendReqValidationError) Field ¶
func (e ListFriendReqValidationError) Field() string
Field function returns field value.
func (ListFriendReqValidationError) Key ¶
func (e ListFriendReqValidationError) Key() bool
Key function returns key value.
func (ListFriendReqValidationError) Reason ¶
func (e ListFriendReqValidationError) Reason() string
Reason function returns reason value.
type ProcessFriendApplicationReq ¶
type ProcessFriendApplicationReq struct { // 发起方 FromUserID string `protobuf:"bytes,1,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` // 接收方 ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` // 处理消息 HandleMsg string `protobuf:"bytes,3,opt,name=handleMsg,proto3" json:"handleMsg,omitempty"` // 1为同意, 2为拒绝 Flag int64 `protobuf:"varint,4,opt,name=flag,proto3" json:"flag,omitempty"` UserID string `protobuf:"bytes,5,opt,name=userID,proto3" json:"userID,omitempty"` Platform string `protobuf:"bytes,6,opt,name=platform,proto3" json:"platform,omitempty"` // contains filtered or unexported fields }
处理好友请求 存在 -------------------------------------------
func (*ProcessFriendApplicationReq) Descriptor
deprecated
func (*ProcessFriendApplicationReq) Descriptor() ([]byte, []int)
Deprecated: Use ProcessFriendApplicationReq.ProtoReflect.Descriptor instead.
func (*ProcessFriendApplicationReq) GetFlag ¶
func (x *ProcessFriendApplicationReq) GetFlag() int64
func (*ProcessFriendApplicationReq) GetFromUserID ¶
func (x *ProcessFriendApplicationReq) GetFromUserID() string
func (*ProcessFriendApplicationReq) GetHandleMsg ¶
func (x *ProcessFriendApplicationReq) GetHandleMsg() string
func (*ProcessFriendApplicationReq) GetPlatform ¶
func (x *ProcessFriendApplicationReq) GetPlatform() string
func (*ProcessFriendApplicationReq) GetToUserID ¶
func (x *ProcessFriendApplicationReq) GetToUserID() string
func (*ProcessFriendApplicationReq) GetUserID ¶
func (x *ProcessFriendApplicationReq) GetUserID() string
func (*ProcessFriendApplicationReq) ProtoMessage ¶
func (*ProcessFriendApplicationReq) ProtoMessage()
func (*ProcessFriendApplicationReq) ProtoReflect ¶
func (x *ProcessFriendApplicationReq) ProtoReflect() protoreflect.Message
func (*ProcessFriendApplicationReq) Reset ¶
func (x *ProcessFriendApplicationReq) Reset()
func (*ProcessFriendApplicationReq) String ¶
func (x *ProcessFriendApplicationReq) String() string
func (*ProcessFriendApplicationReq) Validate ¶
func (m *ProcessFriendApplicationReq) Validate() error
Validate checks the field values on ProcessFriendApplicationReq 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 (*ProcessFriendApplicationReq) ValidateAll ¶
func (m *ProcessFriendApplicationReq) ValidateAll() error
ValidateAll checks the field values on ProcessFriendApplicationReq 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 ProcessFriendApplicationReqMultiError, or nil if none found.
type ProcessFriendApplicationReqMultiError ¶
type ProcessFriendApplicationReqMultiError []error
ProcessFriendApplicationReqMultiError is an error wrapping multiple validation errors returned by ProcessFriendApplicationReq.ValidateAll() if the designated constraints aren't met.
func (ProcessFriendApplicationReqMultiError) AllErrors ¶
func (m ProcessFriendApplicationReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ProcessFriendApplicationReqMultiError) Error ¶
func (m ProcessFriendApplicationReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ProcessFriendApplicationReqValidationError ¶
type ProcessFriendApplicationReqValidationError struct {
// contains filtered or unexported fields
}
ProcessFriendApplicationReqValidationError is the validation error returned by ProcessFriendApplicationReq.Validate if the designated constraints aren't met.
func (ProcessFriendApplicationReqValidationError) Cause ¶
func (e ProcessFriendApplicationReqValidationError) Cause() error
Cause function returns cause value.
func (ProcessFriendApplicationReqValidationError) Error ¶
func (e ProcessFriendApplicationReqValidationError) Error() string
Error satisfies the builtin error interface
func (ProcessFriendApplicationReqValidationError) ErrorName ¶
func (e ProcessFriendApplicationReqValidationError) ErrorName() string
ErrorName returns error name.
func (ProcessFriendApplicationReqValidationError) Field ¶
func (e ProcessFriendApplicationReqValidationError) Field() string
Field function returns field value.
func (ProcessFriendApplicationReqValidationError) Key ¶
func (e ProcessFriendApplicationReqValidationError) Key() bool
Key function returns key value.
func (ProcessFriendApplicationReqValidationError) Reason ¶
func (e ProcessFriendApplicationReqValidationError) Reason() string
Reason function returns reason value.
type RemoveBlackListReq ¶
type RemoveBlackListReq struct { FromUserID string `protobuf:"bytes,1,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` // contains filtered or unexported fields }
移除黑名单 存在 -------------------------------------------
func (*RemoveBlackListReq) Descriptor
deprecated
func (*RemoveBlackListReq) Descriptor() ([]byte, []int)
Deprecated: Use RemoveBlackListReq.ProtoReflect.Descriptor instead.
func (*RemoveBlackListReq) GetFromUserID ¶
func (x *RemoveBlackListReq) GetFromUserID() string
func (*RemoveBlackListReq) GetToUserID ¶
func (x *RemoveBlackListReq) GetToUserID() string
func (*RemoveBlackListReq) ProtoMessage ¶
func (*RemoveBlackListReq) ProtoMessage()
func (*RemoveBlackListReq) ProtoReflect ¶
func (x *RemoveBlackListReq) ProtoReflect() protoreflect.Message
func (*RemoveBlackListReq) Reset ¶
func (x *RemoveBlackListReq) Reset()
func (*RemoveBlackListReq) String ¶
func (x *RemoveBlackListReq) String() string
func (*RemoveBlackListReq) Validate ¶
func (m *RemoveBlackListReq) Validate() error
Validate checks the field values on RemoveBlackListReq 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 (*RemoveBlackListReq) ValidateAll ¶
func (m *RemoveBlackListReq) ValidateAll() error
ValidateAll checks the field values on RemoveBlackListReq 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 RemoveBlackListReqMultiError, or nil if none found.
type RemoveBlackListReqMultiError ¶
type RemoveBlackListReqMultiError []error
RemoveBlackListReqMultiError is an error wrapping multiple validation errors returned by RemoveBlackListReq.ValidateAll() if the designated constraints aren't met.
func (RemoveBlackListReqMultiError) AllErrors ¶
func (m RemoveBlackListReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RemoveBlackListReqMultiError) Error ¶
func (m RemoveBlackListReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RemoveBlackListReqValidationError ¶
type RemoveBlackListReqValidationError struct {
// contains filtered or unexported fields
}
RemoveBlackListReqValidationError is the validation error returned by RemoveBlackListReq.Validate if the designated constraints aren't met.
func (RemoveBlackListReqValidationError) Cause ¶
func (e RemoveBlackListReqValidationError) Cause() error
Cause function returns cause value.
func (RemoveBlackListReqValidationError) Error ¶
func (e RemoveBlackListReqValidationError) Error() string
Error satisfies the builtin error interface
func (RemoveBlackListReqValidationError) ErrorName ¶
func (e RemoveBlackListReqValidationError) ErrorName() string
ErrorName returns error name.
func (RemoveBlackListReqValidationError) Field ¶
func (e RemoveBlackListReqValidationError) Field() string
Field function returns field value.
func (RemoveBlackListReqValidationError) Key ¶
func (e RemoveBlackListReqValidationError) Key() bool
Key function returns key value.
func (RemoveBlackListReqValidationError) Reason ¶
func (e RemoveBlackListReqValidationError) Reason() string
Reason function returns reason value.
type SetFriendInfoReq ¶
type SetFriendInfoReq struct { // 发起方 FromUserID string `protobuf:"bytes,1,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` // 接收方 ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` // 好友备注 Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` BackgroundUrl string `protobuf:"bytes,4,opt,name=backgroundUrl,proto3" json:"backgroundUrl,omitempty"` //背景图片 UserID string `protobuf:"bytes,5,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
设置好友资料 存在 -------------------------------------------
func (*SetFriendInfoReq) Descriptor
deprecated
func (*SetFriendInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use SetFriendInfoReq.ProtoReflect.Descriptor instead.
func (*SetFriendInfoReq) GetBackgroundUrl ¶
func (x *SetFriendInfoReq) GetBackgroundUrl() string
func (*SetFriendInfoReq) GetFromUserID ¶
func (x *SetFriendInfoReq) GetFromUserID() string
func (*SetFriendInfoReq) GetRemark ¶
func (x *SetFriendInfoReq) GetRemark() string
func (*SetFriendInfoReq) GetToUserID ¶
func (x *SetFriendInfoReq) GetToUserID() string
func (*SetFriendInfoReq) GetUserID ¶
func (x *SetFriendInfoReq) GetUserID() string
func (*SetFriendInfoReq) ProtoMessage ¶
func (*SetFriendInfoReq) ProtoMessage()
func (*SetFriendInfoReq) ProtoReflect ¶
func (x *SetFriendInfoReq) ProtoReflect() protoreflect.Message
func (*SetFriendInfoReq) Reset ¶
func (x *SetFriendInfoReq) Reset()
func (*SetFriendInfoReq) String ¶
func (x *SetFriendInfoReq) String() string
func (*SetFriendInfoReq) Validate ¶
func (m *SetFriendInfoReq) Validate() error
Validate checks the field values on SetFriendInfoReq 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 (*SetFriendInfoReq) ValidateAll ¶
func (m *SetFriendInfoReq) ValidateAll() error
ValidateAll checks the field values on SetFriendInfoReq 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 SetFriendInfoReqMultiError, or nil if none found.
type SetFriendInfoReqMultiError ¶
type SetFriendInfoReqMultiError []error
SetFriendInfoReqMultiError is an error wrapping multiple validation errors returned by SetFriendInfoReq.ValidateAll() if the designated constraints aren't met.
func (SetFriendInfoReqMultiError) AllErrors ¶
func (m SetFriendInfoReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetFriendInfoReqMultiError) Error ¶
func (m SetFriendInfoReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetFriendInfoReqValidationError ¶
type SetFriendInfoReqValidationError struct {
// contains filtered or unexported fields
}
SetFriendInfoReqValidationError is the validation error returned by SetFriendInfoReq.Validate if the designated constraints aren't met.
func (SetFriendInfoReqValidationError) Cause ¶
func (e SetFriendInfoReqValidationError) Cause() error
Cause function returns cause value.
func (SetFriendInfoReqValidationError) Error ¶
func (e SetFriendInfoReqValidationError) Error() string
Error satisfies the builtin error interface
func (SetFriendInfoReqValidationError) ErrorName ¶
func (e SetFriendInfoReqValidationError) ErrorName() string
ErrorName returns error name.
func (SetFriendInfoReqValidationError) Field ¶
func (e SetFriendInfoReqValidationError) Field() string
Field function returns field value.
func (SetFriendInfoReqValidationError) Key ¶
func (e SetFriendInfoReqValidationError) Key() bool
Key function returns key value.
func (SetFriendInfoReqValidationError) Reason ¶
func (e SetFriendInfoReqValidationError) Reason() string
Reason function returns reason value.
type UnimplementedFriendServer ¶
type UnimplementedFriendServer struct { }
UnimplementedFriendServer must be embedded to have forward compatible implementations.
func (UnimplementedFriendServer) AddBlack ¶
func (UnimplementedFriendServer) AddBlack(context.Context, *AddBlackReq) (*emptypb.Empty, error)
func (UnimplementedFriendServer) AddFriend ¶
func (UnimplementedFriendServer) AddFriend(context.Context, *AddFriendReq) (*emptypb.Empty, error)
func (UnimplementedFriendServer) Blacklist ¶
func (UnimplementedFriendServer) Blacklist(context.Context, *BlackListReq) (*BlackListReply, error)
func (UnimplementedFriendServer) DeleteAllFriends ¶
func (UnimplementedFriendServer) DeleteAllFriends(context.Context, *DeleteAllFriendsReq) (*emptypb.Empty, error)
func (UnimplementedFriendServer) DeleteFriend ¶
func (UnimplementedFriendServer) DeleteFriend(context.Context, *DeleteFriendReq) (*emptypb.Empty, error)
func (UnimplementedFriendServer) FriendApplyList ¶
func (UnimplementedFriendServer) FriendApplyList(context.Context, *ListFriendApplyReq) (*ListFriendApplyReply, error)
func (UnimplementedFriendServer) GetFriendIDs ¶
func (UnimplementedFriendServer) GetFriendIDs(context.Context, *GetFriendIDsReq) (*GetFriendIDsReply, error)
func (UnimplementedFriendServer) GetFriendRequestByApplicant ¶
func (UnimplementedFriendServer) GetFriendRequestByApplicant(context.Context, *GetFriendRequestByApplicantReq) (*GetFriendRequestByApplicantReply, error)
func (UnimplementedFriendServer) GetReceiveFriendsApply ¶
func (UnimplementedFriendServer) GetReceiveFriendsApply(context.Context, *GetReceiveFriendsApplyReq) (*GetReceiveFriendsApplyReply, error)
func (UnimplementedFriendServer) GetSendFriendsApply ¶
func (UnimplementedFriendServer) GetSendFriendsApply(context.Context, *GetSendFriendsApplyReq) (*GetSendFriendsApplyReply, error)
func (UnimplementedFriendServer) GetUntreatedFriendsApplyReceive ¶
func (UnimplementedFriendServer) GetUntreatedFriendsApplyReceive(context.Context, *GetUntreatedFriendsApplyReceiveReq) (*GetUntreatedFriendsApplyReceiveReply, error)
func (UnimplementedFriendServer) IsBlack ¶
func (UnimplementedFriendServer) IsBlack(context.Context, *IsBlackReq) (*IsBlackReply, error)
func (UnimplementedFriendServer) IsFriend ¶
func (UnimplementedFriendServer) IsFriend(context.Context, *IsFriendReq) (*IsFriendReply, error)
func (UnimplementedFriendServer) ListFriend ¶
func (UnimplementedFriendServer) ListFriend(context.Context, *ListFriendReq) (*ListFriendReply, error)
func (UnimplementedFriendServer) ListFriendByIds ¶
func (UnimplementedFriendServer) ListFriendByIds(context.Context, *ListFriendByIdsReq) (*ListFriendByIdsReply, error)
func (UnimplementedFriendServer) ProcessFriendApplication ¶
func (UnimplementedFriendServer) ProcessFriendApplication(context.Context, *ProcessFriendApplicationReq) (*emptypb.Empty, error)
func (UnimplementedFriendServer) RemoveBlackList ¶
func (UnimplementedFriendServer) RemoveBlackList(context.Context, *RemoveBlackListReq) (*emptypb.Empty, error)
func (UnimplementedFriendServer) SetFriendInfo ¶
func (UnimplementedFriendServer) SetFriendInfo(context.Context, *SetFriendInfoReq) (*emptypb.Empty, error)
type UnsafeFriendServer ¶
type UnsafeFriendServer interface {
// contains filtered or unexported methods
}
UnsafeFriendServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FriendServer will result in compilation errors.