v2

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 25 Imported by: 2

Documentation

Index

Constants

View Source
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

View Source
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.

View Source
var File_api_im_cloud_friend_v2_friend_error_proto protoreflect.FileDescriptor
View Source
var File_im_cloud_friend_v2_friend_proto protoreflect.FileDescriptor
View Source
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 ErrorCreateBlackDataFail(format string, args ...interface{}) *errors.Error

创建黑名单数据失败

func ErrorCreateFriendDataFail

func ErrorCreateFriendDataFail(format string, args ...interface{}) *errors.Error

创建好友关系数据失败

func ErrorDelFriendCacheDataFAIl

func ErrorDelFriendCacheDataFAIl(format string, args ...interface{}) *errors.Error

删除好友缓存数据失败

func ErrorDelFriendRelationDataFail

func ErrorDelFriendRelationDataFail(format string, args ...interface{}) *errors.Error

删除好友数据失败

func ErrorFriendApplyListByIdFail

func ErrorFriendApplyListByIdFail(format string, args ...interface{}) *errors.Error

根据申请人id获取申请人信息失败

func ErrorFriendNotExist

func ErrorFriendNotExist(format string, args ...interface{}) *errors.Error

好友不存在

func ErrorGetAllFriendIdFail

func ErrorGetAllFriendIdFail(format string, args ...interface{}) *errors.Error

获取所有的id信息失败

func ErrorGetApplyFriendsFromByIdFail

func ErrorGetApplyFriendsFromByIdFail(format string, args ...interface{}) *errors.Error

根据好友id获取主动发出去的好友申请信息

func ErrorGetFriendApplyDataFail

func ErrorGetFriendApplyDataFail(format string, args ...interface{}) *errors.Error

获取好友请求数据失败

func ErrorGetFriendApplyRequestDataFail

func ErrorGetFriendApplyRequestDataFail(format string, args ...interface{}) *errors.Error

获取好友申请请求数据失败

func ErrorGetFriendBlacklistByIdFail

func ErrorGetFriendBlacklistByIdFail(format string, args ...interface{}) *errors.Error

根据被拉黑人id获取被拉黑人信息失败

func ErrorGetFriendByIdsFail

func ErrorGetFriendByIdsFail(format string, args ...interface{}) *errors.Error

根据好友id获取好友信息失败

func ErrorGetFriendInfoFail

func ErrorGetFriendInfoFail(format string, args ...interface{}) *errors.Error

获取好友信息失败

func ErrorGetInvitableFriendDataFAIl

func ErrorGetInvitableFriendDataFAIl(format string, args ...interface{}) *errors.Error

获取可邀请好友数据失败

func ErrorGetUntreatedFriendsApplyReceiveFail

func ErrorGetUntreatedFriendsApplyReceiveFail(format string, args ...interface{}) *errors.Error

获取所有未处理的数据

func ErrorGetUserBlacklistinfoFail

func ErrorGetUserBlacklistinfoFail(format string, args ...interface{}) *errors.Error

获取用户黑名单数据失败

func ErrorRemoveUserBlackDataFail

func ErrorRemoveUserBlackDataFail(format string, args ...interface{}) *errors.Error

移除用户黑名单数据失败

func ErrorUnknownSourceType

func ErrorUnknownSourceType(format string, args ...interface{}) *errors.Error

未知的来源类型

func ErrorUpdateFriendRelationDataFAIl

func ErrorUpdateFriendRelationDataFAIl(format string, args ...interface{}) *errors.Error

更新好友关系信息失败

func ErrorUserCloseCardAdd

func ErrorUserCloseCardAdd(format string, args ...interface{}) *errors.Error

关闭名片添加

func ErrorUserCloseGroupAdd

func ErrorUserCloseGroupAdd(format string, args ...interface{}) *errors.Error

关闭群添加

func ErrorUserCloseIdAdd

func ErrorUserCloseIdAdd(format string, args ...interface{}) *errors.Error

关闭id添加

func ErrorUserClosePhoneAdd

func ErrorUserClosePhoneAdd(format string, args ...interface{}) *errors.Error

关闭手机号添加

func ErrorUserCloseRqCodeAdd

func ErrorUserCloseRqCodeAdd(format string, args ...interface{}) *errors.Error

关闭二维码添加

func IsCreateBlackDataFail

func IsCreateBlackDataFail(err error) bool

创建黑名单数据失败

func IsCreateFriendDataFail

func IsCreateFriendDataFail(err error) bool

创建好友关系数据失败

func IsDelFriendCacheDataFAIl

func IsDelFriendCacheDataFAIl(err error) bool

删除好友缓存数据失败

func IsDelFriendRelationDataFail

func IsDelFriendRelationDataFail(err error) bool

删除好友数据失败

func IsFriendApplyListByIdFail

func IsFriendApplyListByIdFail(err error) bool

根据申请人id获取申请人信息失败

func IsFriendNotExist

func IsFriendNotExist(err error) bool

好友不存在

func IsGetAllFriendIdFail

func IsGetAllFriendIdFail(err error) bool

获取所有的id信息失败

func IsGetApplyFriendsFromByIdFail

func IsGetApplyFriendsFromByIdFail(err error) bool

根据好友id获取主动发出去的好友申请信息

func IsGetFriendApplyDataFail

func IsGetFriendApplyDataFail(err error) bool

获取好友请求数据失败

func IsGetFriendApplyRequestDataFail

func IsGetFriendApplyRequestDataFail(err error) bool

获取好友申请请求数据失败

func IsGetFriendBlacklistByIdFail

func IsGetFriendBlacklistByIdFail(err error) bool

根据被拉黑人id获取被拉黑人信息失败

func IsGetFriendByIdsFail

func IsGetFriendByIdsFail(err error) bool

根据好友id获取好友信息失败

func IsGetFriendInfoFail

func IsGetFriendInfoFail(err error) bool

获取好友信息失败

func IsGetInvitableFriendDataFAIl

func IsGetInvitableFriendDataFAIl(err error) bool

获取可邀请好友数据失败

func IsGetUntreatedFriendsApplyReceiveFail

func IsGetUntreatedFriendsApplyReceiveFail(err error) bool

获取所有未处理的数据

func IsGetUserBlacklistinfoFail

func IsGetUserBlacklistinfoFail(err error) bool

获取用户黑名单数据失败

func IsRemoveUserBlackDataFail

func IsRemoveUserBlackDataFail(err error) bool

移除用户黑名单数据失败

func IsUnknownSourceType

func IsUnknownSourceType(err error) bool

未知的来源类型

func IsUpdateFriendRelationDataFAIl

func IsUpdateFriendRelationDataFAIl(err error) bool

更新好友关系信息失败

func IsUserCloseCardAdd

func IsUserCloseCardAdd(err error) bool

关闭名片添加

func IsUserCloseGroupAdd

func IsUserCloseGroupAdd(err error) bool

关闭群添加

func IsUserCloseIdAdd

func IsUserCloseIdAdd(err error) bool

关闭id添加

func IsUserClosePhoneAdd

func IsUserClosePhoneAdd(err error) bool

关闭手机号添加

func IsUserCloseRqCodeAdd

func IsUserCloseRqCodeAdd(err error) bool

关闭二维码添加

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

Cause function returns cause value.

func (AddBlackReqValidationError) Error

Error satisfies the builtin error interface

func (AddBlackReqValidationError) ErrorName

func (e AddBlackReqValidationError) ErrorName() string

ErrorName returns error name.

func (AddBlackReqValidationError) Field

Field function returns field value.

func (AddBlackReqValidationError) Key

Key function returns key value.

func (AddBlackReqValidationError) Reason

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

Cause function returns cause value.

func (AddFriendReqValidationError) Error

Error satisfies the builtin error interface

func (AddFriendReqValidationError) ErrorName

func (e AddFriendReqValidationError) ErrorName() string

ErrorName returns error name.

func (AddFriendReqValidationError) Field

Field function returns field value.

func (AddFriendReqValidationError) Key

Key function returns key value.

func (AddFriendReqValidationError) Reason

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

Cause function returns cause value.

func (BlackListReplyValidationError) Error

Error satisfies the builtin error interface

func (BlackListReplyValidationError) ErrorName

func (e BlackListReplyValidationError) ErrorName() string

ErrorName returns error name.

func (BlackListReplyValidationError) Field

Field function returns field value.

func (BlackListReplyValidationError) Key

Key function returns key value.

func (BlackListReplyValidationError) Reason

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

Cause function returns cause value.

func (BlackListReqValidationError) Error

Error satisfies the builtin error interface

func (BlackListReqValidationError) ErrorName

func (e BlackListReqValidationError) ErrorName() string

ErrorName returns error name.

func (BlackListReqValidationError) Field

Field function returns field value.

func (BlackListReqValidationError) Key

Key function returns key value.

func (BlackListReqValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteAllFriendsReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteAllFriendsReqValidationError) ErrorName

ErrorName returns error name.

func (DeleteAllFriendsReqValidationError) Field

Field function returns field value.

func (DeleteAllFriendsReqValidationError) Key

Key function returns key value.

func (DeleteAllFriendsReqValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteFriendReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteFriendReqValidationError) ErrorName

func (e DeleteFriendReqValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteFriendReqValidationError) Field

Field function returns field value.

func (DeleteFriendReqValidationError) Key

Key function returns key value.

func (DeleteFriendReqValidationError) Reason

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) Enum

func (FriendErrorReason) EnumDescriptor deprecated

func (FriendErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use FriendErrorReason.Descriptor instead.

func (FriendErrorReason) Number

func (FriendErrorReason) String

func (x FriendErrorReason) String() string

func (FriendErrorReason) Type

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

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

Cause function returns cause value.

func (GetFriendIDsReplyValidationError) Error

Error satisfies the builtin error interface

func (GetFriendIDsReplyValidationError) ErrorName

ErrorName returns error name.

func (GetFriendIDsReplyValidationError) Field

Field function returns field value.

func (GetFriendIDsReplyValidationError) Key

Key function returns key value.

func (GetFriendIDsReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetFriendIDsReqValidationError) Error

Error satisfies the builtin error interface

func (GetFriendIDsReqValidationError) ErrorName

func (e GetFriendIDsReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetFriendIDsReqValidationError) Field

Field function returns field value.

func (GetFriendIDsReqValidationError) Key

Key function returns key value.

func (GetFriendIDsReqValidationError) Reason

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 (*GetFriendRequestByApplicantReply) Reset

func (*GetFriendRequestByApplicantReply) String

func (*GetFriendRequestByApplicantReply) Validate

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

AllErrors returns a list of validation violation errors.

func (GetFriendRequestByApplicantReplyMultiError) Error

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

Cause function returns cause value.

func (GetFriendRequestByApplicantReplyValidationError) Error

Error satisfies the builtin error interface

func (GetFriendRequestByApplicantReplyValidationError) ErrorName

ErrorName returns error name.

func (GetFriendRequestByApplicantReplyValidationError) Field

Field function returns field value.

func (GetFriendRequestByApplicantReplyValidationError) Key

Key function returns key value.

func (GetFriendRequestByApplicantReplyValidationError) Reason

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 (*GetFriendRequestByApplicantReq) Reset

func (x *GetFriendRequestByApplicantReq) Reset()

func (*GetFriendRequestByApplicantReq) 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

AllErrors returns a list of validation violation errors.

func (GetFriendRequestByApplicantReqMultiError) Error

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

Cause function returns cause value.

func (GetFriendRequestByApplicantReqValidationError) Error

Error satisfies the builtin error interface

func (GetFriendRequestByApplicantReqValidationError) ErrorName

ErrorName returns error name.

func (GetFriendRequestByApplicantReqValidationError) Field

Field function returns field value.

func (GetFriendRequestByApplicantReqValidationError) Key

Key function returns key value.

func (GetFriendRequestByApplicantReqValidationError) Reason

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 (*GetReceiveFriendsApplyReply) GetTotal

func (x *GetReceiveFriendsApplyReply) GetTotal() int64

func (*GetReceiveFriendsApplyReply) ProtoMessage

func (*GetReceiveFriendsApplyReply) ProtoMessage()

func (*GetReceiveFriendsApplyReply) ProtoReflect

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

AllErrors returns a list of validation violation errors.

func (GetReceiveFriendsApplyReplyMultiError) Error

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

Cause function returns cause value.

func (GetReceiveFriendsApplyReplyValidationError) Error

Error satisfies the builtin error interface

func (GetReceiveFriendsApplyReplyValidationError) ErrorName

ErrorName returns error name.

func (GetReceiveFriendsApplyReplyValidationError) Field

Field function returns field value.

func (GetReceiveFriendsApplyReplyValidationError) Key

Key function returns key value.

func (GetReceiveFriendsApplyReplyValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (GetReceiveFriendsApplyReqMultiError) Error

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

Cause function returns cause value.

func (GetReceiveFriendsApplyReqValidationError) Error

Error satisfies the builtin error interface

func (GetReceiveFriendsApplyReqValidationError) ErrorName

ErrorName returns error name.

func (GetReceiveFriendsApplyReqValidationError) Field

Field function returns field value.

func (GetReceiveFriendsApplyReqValidationError) Key

Key function returns key value.

func (GetReceiveFriendsApplyReqValidationError) Reason

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

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

Cause function returns cause value.

func (GetSendFriendsApplyReplyValidationError) Error

Error satisfies the builtin error interface

func (GetSendFriendsApplyReplyValidationError) ErrorName

ErrorName returns error name.

func (GetSendFriendsApplyReplyValidationError) Field

Field function returns field value.

func (GetSendFriendsApplyReplyValidationError) Key

Key function returns key value.

func (GetSendFriendsApplyReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetSendFriendsApplyReqValidationError) Error

Error satisfies the builtin error interface

func (GetSendFriendsApplyReqValidationError) ErrorName

ErrorName returns error name.

func (GetSendFriendsApplyReqValidationError) Field

Field function returns field value.

func (GetSendFriendsApplyReqValidationError) Key

Key function returns key value.

func (GetSendFriendsApplyReqValidationError) Reason

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 (*GetUntreatedFriendsApplyReceiveReply) GetTotal

func (*GetUntreatedFriendsApplyReceiveReply) ProtoMessage

func (*GetUntreatedFriendsApplyReceiveReply) ProtoMessage()

func (*GetUntreatedFriendsApplyReceiveReply) ProtoReflect

func (*GetUntreatedFriendsApplyReceiveReply) Reset

func (*GetUntreatedFriendsApplyReceiveReply) String

func (*GetUntreatedFriendsApplyReceiveReply) Validate

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

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

AllErrors returns a list of validation violation errors.

func (GetUntreatedFriendsApplyReceiveReplyMultiError) Error

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

Cause function returns cause value.

func (GetUntreatedFriendsApplyReceiveReplyValidationError) Error

Error satisfies the builtin error interface

func (GetUntreatedFriendsApplyReceiveReplyValidationError) ErrorName

ErrorName returns error name.

func (GetUntreatedFriendsApplyReceiveReplyValidationError) Field

Field function returns field value.

func (GetUntreatedFriendsApplyReceiveReplyValidationError) Key

Key function returns key value.

func (GetUntreatedFriendsApplyReceiveReplyValidationError) Reason

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 (*GetUntreatedFriendsApplyReceiveReq) ProtoMessage

func (*GetUntreatedFriendsApplyReceiveReq) ProtoMessage()

func (*GetUntreatedFriendsApplyReceiveReq) ProtoReflect

func (*GetUntreatedFriendsApplyReceiveReq) Reset

func (*GetUntreatedFriendsApplyReceiveReq) String

func (*GetUntreatedFriendsApplyReceiveReq) Validate

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

AllErrors returns a list of validation violation errors.

func (GetUntreatedFriendsApplyReceiveReqMultiError) Error

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

Cause function returns cause value.

func (GetUntreatedFriendsApplyReceiveReqValidationError) Error

Error satisfies the builtin error interface

func (GetUntreatedFriendsApplyReceiveReqValidationError) ErrorName

ErrorName returns error name.

func (GetUntreatedFriendsApplyReceiveReqValidationError) Field

Field function returns field value.

func (GetUntreatedFriendsApplyReceiveReqValidationError) Key

Key function returns key value.

func (GetUntreatedFriendsApplyReceiveReqValidationError) Reason

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

Cause function returns cause value.

func (IsBlackReplyValidationError) Error

Error satisfies the builtin error interface

func (IsBlackReplyValidationError) ErrorName

func (e IsBlackReplyValidationError) ErrorName() string

ErrorName returns error name.

func (IsBlackReplyValidationError) Field

Field function returns field value.

func (IsBlackReplyValidationError) Key

Key function returns key value.

func (IsBlackReplyValidationError) Reason

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

Error satisfies the builtin error interface

func (IsBlackReqValidationError) ErrorName

func (e IsBlackReqValidationError) ErrorName() string

ErrorName returns error name.

func (IsBlackReqValidationError) Field

Field function returns field value.

func (IsBlackReqValidationError) Key

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

Cause function returns cause value.

func (IsFriendReplyValidationError) Error

Error satisfies the builtin error interface

func (IsFriendReplyValidationError) ErrorName

func (e IsFriendReplyValidationError) ErrorName() string

ErrorName returns error name.

func (IsFriendReplyValidationError) Field

Field function returns field value.

func (IsFriendReplyValidationError) Key

Key function returns key value.

func (IsFriendReplyValidationError) Reason

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

Cause function returns cause value.

func (IsFriendReqValidationError) Error

Error satisfies the builtin error interface

func (IsFriendReqValidationError) ErrorName

func (e IsFriendReqValidationError) ErrorName() string

ErrorName returns error name.

func (IsFriendReqValidationError) Field

Field function returns field value.

func (IsFriendReqValidationError) Key

Key function returns key value.

func (IsFriendReqValidationError) Reason

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

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

Cause function returns cause value.

func (ListFriendApplyReplyValidationError) Error

Error satisfies the builtin error interface

func (ListFriendApplyReplyValidationError) ErrorName

ErrorName returns error name.

func (ListFriendApplyReplyValidationError) Field

Field function returns field value.

func (ListFriendApplyReplyValidationError) Key

Key function returns key value.

func (ListFriendApplyReplyValidationError) Reason

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

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

Cause function returns cause value.

func (ListFriendApplyReqValidationError) Error

Error satisfies the builtin error interface

func (ListFriendApplyReqValidationError) ErrorName

ErrorName returns error name.

func (ListFriendApplyReqValidationError) Field

Field function returns field value.

func (ListFriendApplyReqValidationError) Key

Key function returns key value.

func (ListFriendApplyReqValidationError) Reason

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

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

Cause function returns cause value.

func (ListFriendByIdsReplyValidationError) Error

Error satisfies the builtin error interface

func (ListFriendByIdsReplyValidationError) ErrorName

ErrorName returns error name.

func (ListFriendByIdsReplyValidationError) Field

Field function returns field value.

func (ListFriendByIdsReplyValidationError) Key

Key function returns key value.

func (ListFriendByIdsReplyValidationError) Reason

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

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

Cause function returns cause value.

func (ListFriendByIdsReqValidationError) Error

Error satisfies the builtin error interface

func (ListFriendByIdsReqValidationError) ErrorName

ErrorName returns error name.

func (ListFriendByIdsReqValidationError) Field

Field function returns field value.

func (ListFriendByIdsReqValidationError) Key

Key function returns key value.

func (ListFriendByIdsReqValidationError) Reason

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

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

Cause function returns cause value.

func (ListFriendReplyValidationError) Error

Error satisfies the builtin error interface

func (ListFriendReplyValidationError) ErrorName

func (e ListFriendReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListFriendReplyValidationError) Field

Field function returns field value.

func (ListFriendReplyValidationError) Key

Key function returns key value.

func (ListFriendReplyValidationError) Reason

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

Cause function returns cause value.

func (ListFriendReqValidationError) Error

Error satisfies the builtin error interface

func (ListFriendReqValidationError) ErrorName

func (e ListFriendReqValidationError) ErrorName() string

ErrorName returns error name.

func (ListFriendReqValidationError) Field

Field function returns field value.

func (ListFriendReqValidationError) Key

Key function returns key value.

func (ListFriendReqValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (ProcessFriendApplicationReqMultiError) Error

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

Cause function returns cause value.

func (ProcessFriendApplicationReqValidationError) Error

Error satisfies the builtin error interface

func (ProcessFriendApplicationReqValidationError) ErrorName

ErrorName returns error name.

func (ProcessFriendApplicationReqValidationError) Field

Field function returns field value.

func (ProcessFriendApplicationReqValidationError) Key

Key function returns key value.

func (ProcessFriendApplicationReqValidationError) Reason

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

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

Cause function returns cause value.

func (RemoveBlackListReqValidationError) Error

Error satisfies the builtin error interface

func (RemoveBlackListReqValidationError) ErrorName

ErrorName returns error name.

func (RemoveBlackListReqValidationError) Field

Field function returns field value.

func (RemoveBlackListReqValidationError) Key

Key function returns key value.

func (RemoveBlackListReqValidationError) Reason

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

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

Cause function returns cause value.

func (SetFriendInfoReqValidationError) Error

Error satisfies the builtin error interface

func (SetFriendInfoReqValidationError) ErrorName

ErrorName returns error name.

func (SetFriendInfoReqValidationError) Field

Field function returns field value.

func (SetFriendInfoReqValidationError) Key

Key function returns key value.

func (SetFriendInfoReqValidationError) Reason

Reason function returns reason value.

type UnimplementedFriendServer

type UnimplementedFriendServer struct {
}

UnimplementedFriendServer must be embedded to have forward compatible implementations.

func (UnimplementedFriendServer) AddBlack

func (UnimplementedFriendServer) AddFriend

func (UnimplementedFriendServer) Blacklist

func (UnimplementedFriendServer) DeleteAllFriends

func (UnimplementedFriendServer) DeleteFriend

func (UnimplementedFriendServer) FriendApplyList

func (UnimplementedFriendServer) GetFriendIDs

func (UnimplementedFriendServer) GetSendFriendsApply

func (UnimplementedFriendServer) IsBlack

func (UnimplementedFriendServer) IsFriend

func (UnimplementedFriendServer) ListFriend

func (UnimplementedFriendServer) ListFriendByIds

func (UnimplementedFriendServer) ProcessFriendApplication

func (UnimplementedFriendServer) RemoveBlackList

func (UnimplementedFriendServer) SetFriendInfo

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.

Jump to

Keyboard shortcuts

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