Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorAddBlacklistFail(format string, args ...interface{}) *errors.Error
- func ErrorAddFriendFail(format string, args ...interface{}) *errors.Error
- func ErrorAddFriendResponseFail(format string, args ...interface{}) *errors.Error
- func ErrorDeleteFriendFail(format string, args ...interface{}) *errors.Error
- func ErrorGetBlacklistFail(format string, args ...interface{}) *errors.Error
- func ErrorGetFriendApplyListFail(format string, args ...interface{}) *errors.Error
- func ErrorGetFriendListFail(format string, args ...interface{}) *errors.Error
- func ErrorGetFriendsInfoFail(format string, args ...interface{}) *errors.Error
- func ErrorIsFriendFail(format string, args ...interface{}) *errors.Error
- func ErrorIsInBlackListFail(format string, args ...interface{}) *errors.Error
- func ErrorRemoveBlacklistFail(format string, args ...interface{}) *errors.Error
- func ErrorSetFriendRemarkFail(format string, args ...interface{}) *errors.Error
- func IsAddBlacklistFail(err error) bool
- func IsAddFriendFail(err error) bool
- func IsAddFriendResponseFail(err error) bool
- func IsDeleteFriendFail(err error) bool
- func IsGetBlacklistFail(err error) bool
- func IsGetFriendApplyListFail(err error) bool
- func IsGetFriendListFail(err error) bool
- func IsGetFriendsInfoFail(err error) bool
- func IsIsFriendFail(err error) bool
- func IsIsInBlackListFail(err error) bool
- func IsRemoveBlacklistFail(err error) bool
- func IsSetFriendRemarkFail(err error) bool
- func RegisterFriendServer(s grpc.ServiceRegistrar, srv FriendServer)
- type AddBlacklistReply
- type AddBlacklistReq
- func (*AddBlacklistReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddBlacklistReq) GetFromUserID() string
- func (x *AddBlacklistReq) GetOpUserID() string
- func (x *AddBlacklistReq) GetToUserID() string
- func (*AddBlacklistReq) ProtoMessage()
- func (x *AddBlacklistReq) ProtoReflect() protoreflect.Message
- func (x *AddBlacklistReq) Reset()
- func (x *AddBlacklistReq) String() string
- type AddFriendReply
- type AddFriendReq
- func (*AddFriendReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddFriendReq) GetFromUserID() string
- func (x *AddFriendReq) GetOpUserID() string
- func (x *AddFriendReq) GetRemake() string
- func (x *AddFriendReq) GetReqMsg() string
- func (x *AddFriendReq) GetToUserID() string
- func (*AddFriendReq) ProtoMessage()
- func (x *AddFriendReq) ProtoReflect() protoreflect.Message
- func (x *AddFriendReq) Reset()
- func (x *AddFriendReq) String() string
- type AddFriendResponseReply
- type AddFriendResponseReq
- func (*AddFriendResponseReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddFriendResponseReq) GetFromUserID() string
- func (x *AddFriendResponseReq) GetHandleMsg() string
- func (x *AddFriendResponseReq) GetHandleResult() int32
- func (x *AddFriendResponseReq) GetOpUserID() string
- func (x *AddFriendResponseReq) GetToUserID() string
- func (*AddFriendResponseReq) ProtoMessage()
- func (x *AddFriendResponseReq) ProtoReflect() protoreflect.Message
- func (x *AddFriendResponseReq) Reset()
- func (x *AddFriendResponseReq) String() string
- type DeleteFriendReply
- type DeleteFriendReq
- func (*DeleteFriendReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFriendReq) GetFromUserID() string
- func (x *DeleteFriendReq) GetOpUserID() string
- func (x *DeleteFriendReq) GetToUserID() string
- func (*DeleteFriendReq) ProtoMessage()
- func (x *DeleteFriendReq) ProtoReflect() protoreflect.Message
- func (x *DeleteFriendReq) Reset()
- func (x *DeleteFriendReq) String() string
- type FriendClient
- type FriendErrorReason
- func (FriendErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x FriendErrorReason) Enum() *FriendErrorReason
- func (FriendErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x FriendErrorReason) Number() protoreflect.EnumNumber
- func (x FriendErrorReason) String() string
- func (FriendErrorReason) Type() protoreflect.EnumType
- type FriendListReply
- type FriendListReq
- func (*FriendListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FriendListReq) GetChangTime() map[string]int64
- func (x *FriendListReq) GetUserID() string
- func (*FriendListReq) ProtoMessage()
- func (x *FriendListReq) ProtoReflect() protoreflect.Message
- func (x *FriendListReq) Reset()
- func (x *FriendListReq) String() string
- type FriendServer
- type GetBlacklistReply
- func (*GetBlacklistReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlacklistReply) GetList() []*v2.PublicUserInfo
- func (*GetBlacklistReply) ProtoMessage()
- func (x *GetBlacklistReply) ProtoReflect() protoreflect.Message
- func (x *GetBlacklistReply) Reset()
- func (x *GetBlacklistReply) String() string
- type GetBlacklistReq
- func (*GetBlacklistReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlacklistReq) GetFromUserID() string
- func (x *GetBlacklistReq) GetOpUserID() string
- func (x *GetBlacklistReq) GetToUserID() string
- func (*GetBlacklistReq) ProtoMessage()
- func (x *GetBlacklistReq) ProtoReflect() protoreflect.Message
- func (x *GetBlacklistReq) Reset()
- func (x *GetBlacklistReq) String() string
- type GetFriendApplyListReply
- func (*GetFriendApplyListReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetFriendApplyListReply) GetList() []*v2.FriendRequest
- func (x *GetFriendApplyListReply) GetTotal() int64
- func (*GetFriendApplyListReply) ProtoMessage()
- func (x *GetFriendApplyListReply) ProtoReflect() protoreflect.Message
- func (x *GetFriendApplyListReply) Reset()
- func (x *GetFriendApplyListReply) String() string
- type GetFriendApplyListReq
- func (*GetFriendApplyListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetFriendApplyListReq) GetPagination() *model.Pagination
- func (x *GetFriendApplyListReq) GetUserID() string
- func (*GetFriendApplyListReq) ProtoMessage()
- func (x *GetFriendApplyListReq) ProtoReflect() protoreflect.Message
- func (x *GetFriendApplyListReq) Reset()
- func (x *GetFriendApplyListReq) String() string
- type GetFriendInfoReply
- func (*GetFriendInfoReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetFriendInfoReply) GetList() []*v2.FriendInfo
- func (*GetFriendInfoReply) ProtoMessage()
- func (x *GetFriendInfoReply) ProtoReflect() protoreflect.Message
- func (x *GetFriendInfoReply) Reset()
- func (x *GetFriendInfoReply) String() string
- type GetFriendsInfoReq
- func (*GetFriendsInfoReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetFriendsInfoReq) GetFriendUserIDs() []string
- func (x *GetFriendsInfoReq) GetUserId() string
- func (*GetFriendsInfoReq) ProtoMessage()
- func (x *GetFriendsInfoReq) ProtoReflect() protoreflect.Message
- func (x *GetFriendsInfoReq) Reset()
- func (x *GetFriendsInfoReq) String() string
- type IsFriendReply
- type IsFriendReq
- func (*IsFriendReq) Descriptor() ([]byte, []int)deprecated
- func (x *IsFriendReq) GetFromUserID() string
- func (x *IsFriendReq) GetOpUserID() string
- func (x *IsFriendReq) GetToUserID() string
- func (*IsFriendReq) ProtoMessage()
- func (x *IsFriendReq) ProtoReflect() protoreflect.Message
- func (x *IsFriendReq) Reset()
- func (x *IsFriendReq) String() string
- type IsInBlackListReply
- func (*IsInBlackListReply) Descriptor() ([]byte, []int)deprecated
- func (x *IsInBlackListReply) GetResponse() bool
- func (*IsInBlackListReply) ProtoMessage()
- func (x *IsInBlackListReply) ProtoReflect() protoreflect.Message
- func (x *IsInBlackListReply) Reset()
- func (x *IsInBlackListReply) String() string
- type IsInBlackListReq
- func (*IsInBlackListReq) Descriptor() ([]byte, []int)deprecated
- func (x *IsInBlackListReq) GetFromUserID() string
- func (x *IsInBlackListReq) GetOpUserID() string
- func (x *IsInBlackListReq) GetToUserID() string
- func (*IsInBlackListReq) ProtoMessage()
- func (x *IsInBlackListReq) ProtoReflect() protoreflect.Message
- func (x *IsInBlackListReq) Reset()
- func (x *IsInBlackListReq) String() string
- type RemoveBlacklistReply
- type RemoveBlacklistReq
- func (*RemoveBlacklistReq) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveBlacklistReq) GetFromUserID() string
- func (x *RemoveBlacklistReq) GetOpUserID() string
- func (x *RemoveBlacklistReq) GetToUserID() string
- func (*RemoveBlacklistReq) ProtoMessage()
- func (x *RemoveBlacklistReq) ProtoReflect() protoreflect.Message
- func (x *RemoveBlacklistReq) Reset()
- func (x *RemoveBlacklistReq) String() string
- type SetFriendBackgroundReq
- func (*SetFriendBackgroundReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetFriendBackgroundReq) GetBackgroundUrl() string
- func (x *SetFriendBackgroundReq) GetFriendUserId() string
- func (x *SetFriendBackgroundReq) GetOpUserID() string
- func (x *SetFriendBackgroundReq) GetOperationID() string
- func (*SetFriendBackgroundReq) ProtoMessage()
- func (x *SetFriendBackgroundReq) ProtoReflect() protoreflect.Message
- func (x *SetFriendBackgroundReq) Reset()
- func (x *SetFriendBackgroundReq) String() string
- type SetFriendRemarkReply
- type SetFriendRemarkReq
- func (*SetFriendRemarkReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetFriendRemarkReq) GetFromUserID() string
- func (x *SetFriendRemarkReq) GetOpUserID() string
- func (x *SetFriendRemarkReq) GetRemark() string
- func (x *SetFriendRemarkReq) GetToUserID() string
- func (*SetFriendRemarkReq) ProtoMessage()
- func (x *SetFriendRemarkReq) ProtoReflect() protoreflect.Message
- func (x *SetFriendRemarkReq) Reset()
- func (x *SetFriendRemarkReq) String() string
- type UnimplementedFriendServer
- func (UnimplementedFriendServer) AddBlacklist(context.Context, *AddBlacklistReq) (*AddBlacklistReply, error)
- func (UnimplementedFriendServer) AddFriend(context.Context, *AddFriendReq) (*AddFriendReply, error)
- func (UnimplementedFriendServer) AddFriendResponse(context.Context, *AddFriendResponseReq) (*AddFriendResponseReply, error)
- func (UnimplementedFriendServer) DeleteFriend(context.Context, *DeleteFriendReq) (*DeleteFriendReply, error)
- func (UnimplementedFriendServer) GetBlacklist(context.Context, *GetBlacklistReq) (*GetBlacklistReply, error)
- func (UnimplementedFriendServer) GetFriendApplyList(context.Context, *GetFriendApplyListReq) (*GetFriendApplyListReply, error)
- func (UnimplementedFriendServer) GetFriendList(context.Context, *FriendListReq) (*FriendListReply, error)
- func (UnimplementedFriendServer) GetFriendsInfo(context.Context, *GetFriendsInfoReq) (*GetFriendInfoReply, error)
- func (UnimplementedFriendServer) IsFriend(context.Context, *IsFriendReq) (*IsFriendReply, error)
- func (UnimplementedFriendServer) IsInBlackList(context.Context, *IsInBlackListReq) (*IsInBlackListReply, error)
- func (UnimplementedFriendServer) RemoveBlacklist(context.Context, *RemoveBlacklistReq) (*RemoveBlacklistReply, error)
- func (UnimplementedFriendServer) SetFriendBackground(context.Context, *SetFriendBackgroundReq) (*emptypb.Empty, error)
- func (UnimplementedFriendServer) SetFriendRemark(context.Context, *SetFriendRemarkReq) (*SetFriendRemarkReply, error)
- type UnsafeFriendServer
Constants ¶
const ( Friend_GetFriendList_FullMethodName = "/api.friend.v2.Friend/GetFriendList" Friend_GetFriendsInfo_FullMethodName = "/api.friend.v2.Friend/GetFriendsInfo" Friend_AddFriend_FullMethodName = "/api.friend.v2.Friend/AddFriend" Friend_GetFriendApplyList_FullMethodName = "/api.friend.v2.Friend/GetFriendApplyList" Friend_AddBlacklist_FullMethodName = "/api.friend.v2.Friend/AddBlacklist" Friend_RemoveBlacklist_FullMethodName = "/api.friend.v2.Friend/RemoveBlacklist" Friend_IsFriend_FullMethodName = "/api.friend.v2.Friend/IsFriend" Friend_IsInBlackList_FullMethodName = "/api.friend.v2.Friend/IsInBlackList" Friend_GetBlacklist_FullMethodName = "/api.friend.v2.Friend/GetBlacklist" Friend_DeleteFriend_FullMethodName = "/api.friend.v2.Friend/DeleteFriend" Friend_AddFriendResponse_FullMethodName = "/api.friend.v2.Friend/AddFriendResponse" Friend_SetFriendRemark_FullMethodName = "/api.friend.v2.Friend/SetFriendRemark" Friend_SetFriendBackground_FullMethodName = "/api.friend.v2.Friend/SetFriendBackground" )
Variables ¶
var ( FriendErrorReason_name = map[int32]string{ 0: "GetFriendList_FAIL", 1: "GetFriendsInfo_FAIL", 2: "AddFriend_FAIL", 3: "GetFriendApplyList_FAIL", 4: "AddBlacklist_FAIL", 5: "RemoveBlacklist_FAIL", 6: "IsFriend_FAIL", 7: "IsInBlackList_FAIL", 8: "GetBlacklist_FAIL", 9: "DeleteFriend_FAIL", 10: "AddFriendResponse_FAIL", 11: "SetFriendRemark_FAIL", } FriendErrorReason_value = map[string]int32{ "GetFriendList_FAIL": 0, "GetFriendsInfo_FAIL": 1, "AddFriend_FAIL": 2, "GetFriendApplyList_FAIL": 3, "AddBlacklist_FAIL": 4, "RemoveBlacklist_FAIL": 5, "IsFriend_FAIL": 6, "IsInBlackList_FAIL": 7, "GetBlacklist_FAIL": 8, "DeleteFriend_FAIL": 9, "AddFriendResponse_FAIL": 10, "SetFriendRemark_FAIL": 11, } )
Enum value maps for FriendErrorReason.
var File_friend_v2_friend_error_proto protoreflect.FileDescriptor
var File_friend_v2_friend_proto protoreflect.FileDescriptor
var Friend_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.friend.v2.Friend", HandlerType: (*FriendServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetFriendList", Handler: _Friend_GetFriendList_Handler, }, { MethodName: "GetFriendsInfo", Handler: _Friend_GetFriendsInfo_Handler, }, { MethodName: "AddFriend", Handler: _Friend_AddFriend_Handler, }, { MethodName: "GetFriendApplyList", Handler: _Friend_GetFriendApplyList_Handler, }, { MethodName: "AddBlacklist", Handler: _Friend_AddBlacklist_Handler, }, { MethodName: "RemoveBlacklist", Handler: _Friend_RemoveBlacklist_Handler, }, { MethodName: "IsFriend", Handler: _Friend_IsFriend_Handler, }, { MethodName: "IsInBlackList", Handler: _Friend_IsInBlackList_Handler, }, { MethodName: "GetBlacklist", Handler: _Friend_GetBlacklist_Handler, }, { MethodName: "DeleteFriend", Handler: _Friend_DeleteFriend_Handler, }, { MethodName: "AddFriendResponse", Handler: _Friend_AddFriendResponse_Handler, }, { MethodName: "SetFriendRemark", Handler: _Friend_SetFriendRemark_Handler, }, { MethodName: "SetFriendBackground", Handler: _Friend_SetFriendBackground_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "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 ErrorAddBlacklistFail ¶ added in v0.0.13
添加黑名单
func ErrorAddFriendFail ¶ added in v0.0.13
添加好友失败
func ErrorAddFriendResponseFail ¶ added in v0.0.13
删除好友
func ErrorDeleteFriendFail ¶ added in v0.0.13
删除好友
func ErrorGetBlacklistFail ¶ added in v0.0.13
获取黑名单列表
func ErrorGetFriendApplyListFail ¶ added in v0.0.13
获取好友申请列表
func ErrorGetFriendListFail ¶ added in v0.0.7
获取好友信息失败
func ErrorGetFriendsInfoFail ¶ added in v0.0.13
获取好友信息失败
func ErrorIsFriendFail ¶ added in v0.0.13
是否好友
func ErrorIsInBlackListFail ¶ added in v0.0.13
是否黑名单
func ErrorRemoveBlacklistFail ¶ added in v0.0.13
删除黑名单
func ErrorSetFriendRemarkFail ¶ added in v0.0.13
删除好友
func IsGetFriendApplyListFail ¶ added in v0.0.13
获取好友申请列表
func RegisterFriendServer ¶ added in v0.0.3
func RegisterFriendServer(s grpc.ServiceRegistrar, srv FriendServer)
Types ¶
type AddBlacklistReply ¶ added in v0.0.10
type AddBlacklistReply struct {
// contains filtered or unexported fields
}
func (*AddBlacklistReply) Descriptor
deprecated
added in
v0.0.10
func (*AddBlacklistReply) Descriptor() ([]byte, []int)
Deprecated: Use AddBlacklistReply.ProtoReflect.Descriptor instead.
func (*AddBlacklistReply) ProtoMessage ¶ added in v0.0.10
func (*AddBlacklistReply) ProtoMessage()
func (*AddBlacklistReply) ProtoReflect ¶ added in v0.0.10
func (x *AddBlacklistReply) ProtoReflect() protoreflect.Message
func (*AddBlacklistReply) Reset ¶ added in v0.0.10
func (x *AddBlacklistReply) Reset()
func (*AddBlacklistReply) String ¶ added in v0.0.10
func (x *AddBlacklistReply) String() string
type AddBlacklistReq ¶ added in v0.0.10
type AddBlacklistReq struct { OpUserID string `protobuf:"bytes,1,opt,name=opUserID,proto3" json:"opUserID,omitempty"` //操作用户ID ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` //被添加id‘ FromUserID string `protobuf:"bytes,3,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` //来源id // contains filtered or unexported fields }
添加黑名单 -------------------------------------------
func (*AddBlacklistReq) Descriptor
deprecated
added in
v0.0.10
func (*AddBlacklistReq) Descriptor() ([]byte, []int)
Deprecated: Use AddBlacklistReq.ProtoReflect.Descriptor instead.
func (*AddBlacklistReq) GetFromUserID ¶ added in v0.0.10
func (x *AddBlacklistReq) GetFromUserID() string
func (*AddBlacklistReq) GetOpUserID ¶ added in v0.0.10
func (x *AddBlacklistReq) GetOpUserID() string
func (*AddBlacklistReq) GetToUserID ¶ added in v0.0.10
func (x *AddBlacklistReq) GetToUserID() string
func (*AddBlacklistReq) ProtoMessage ¶ added in v0.0.10
func (*AddBlacklistReq) ProtoMessage()
func (*AddBlacklistReq) ProtoReflect ¶ added in v0.0.10
func (x *AddBlacklistReq) ProtoReflect() protoreflect.Message
func (*AddBlacklistReq) Reset ¶ added in v0.0.10
func (x *AddBlacklistReq) Reset()
func (*AddBlacklistReq) String ¶ added in v0.0.10
func (x *AddBlacklistReq) String() string
type AddFriendReply ¶ added in v0.0.10
type AddFriendReply struct {
// contains filtered or unexported fields
}
func (*AddFriendReply) Descriptor
deprecated
added in
v0.0.10
func (*AddFriendReply) Descriptor() ([]byte, []int)
Deprecated: Use AddFriendReply.ProtoReflect.Descriptor instead.
func (*AddFriendReply) ProtoMessage ¶ added in v0.0.10
func (*AddFriendReply) ProtoMessage()
func (*AddFriendReply) ProtoReflect ¶ added in v0.0.10
func (x *AddFriendReply) ProtoReflect() protoreflect.Message
func (*AddFriendReply) Reset ¶ added in v0.0.10
func (x *AddFriendReply) Reset()
func (*AddFriendReply) String ¶ added in v0.0.10
func (x *AddFriendReply) String() string
type AddFriendReq ¶ added in v0.0.10
type AddFriendReq struct { OpUserID string `protobuf:"bytes,1,opt,name=opUserID,proto3" json:"opUserID,omitempty"` //操作用户ID ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` //被添加id‘ FromUserID string `protobuf:"bytes,3,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` //来源id ReqMsg string `protobuf:"bytes,4,opt,name=reqMsg,proto3" json:"reqMsg,omitempty"` //请求消息 Remake string `protobuf:"bytes,5,opt,name=remake,proto3" json:"remake,omitempty"` //请求消息 // contains filtered or unexported fields }
添加好友 -------------------------------------------
func (*AddFriendReq) Descriptor
deprecated
added in
v0.0.10
func (*AddFriendReq) Descriptor() ([]byte, []int)
Deprecated: Use AddFriendReq.ProtoReflect.Descriptor instead.
func (*AddFriendReq) GetFromUserID ¶ added in v0.0.10
func (x *AddFriendReq) GetFromUserID() string
func (*AddFriendReq) GetOpUserID ¶ added in v0.0.10
func (x *AddFriendReq) GetOpUserID() string
func (*AddFriendReq) GetRemake ¶ added in v0.0.10
func (x *AddFriendReq) GetRemake() string
func (*AddFriendReq) GetReqMsg ¶ added in v0.0.10
func (x *AddFriendReq) GetReqMsg() string
func (*AddFriendReq) GetToUserID ¶ added in v0.0.10
func (x *AddFriendReq) GetToUserID() string
func (*AddFriendReq) ProtoMessage ¶ added in v0.0.10
func (*AddFriendReq) ProtoMessage()
func (*AddFriendReq) ProtoReflect ¶ added in v0.0.10
func (x *AddFriendReq) ProtoReflect() protoreflect.Message
func (*AddFriendReq) Reset ¶ added in v0.0.10
func (x *AddFriendReq) Reset()
func (*AddFriendReq) String ¶ added in v0.0.10
func (x *AddFriendReq) String() string
type AddFriendResponseReply ¶ added in v0.0.10
type AddFriendResponseReply struct {
// contains filtered or unexported fields
}
func (*AddFriendResponseReply) Descriptor
deprecated
added in
v0.0.10
func (*AddFriendResponseReply) Descriptor() ([]byte, []int)
Deprecated: Use AddFriendResponseReply.ProtoReflect.Descriptor instead.
func (*AddFriendResponseReply) ProtoMessage ¶ added in v0.0.10
func (*AddFriendResponseReply) ProtoMessage()
func (*AddFriendResponseReply) ProtoReflect ¶ added in v0.0.10
func (x *AddFriendResponseReply) ProtoReflect() protoreflect.Message
func (*AddFriendResponseReply) Reset ¶ added in v0.0.10
func (x *AddFriendResponseReply) Reset()
func (*AddFriendResponseReply) String ¶ added in v0.0.10
func (x *AddFriendResponseReply) String() string
type AddFriendResponseReq ¶ added in v0.0.10
type AddFriendResponseReq struct { OpUserID string `protobuf:"bytes,1,opt,name=opUserID,proto3" json:"opUserID,omitempty"` //操作用户ID ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` //被添加id‘ FromUserID string `protobuf:"bytes,3,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` //来源id HandleResult int32 `protobuf:"varint,4,opt,name=handleResult,proto3" json:"handleResult,omitempty"` // 处理 HandleMsg string `protobuf:"bytes,5,opt,name=handleMsg,proto3" json:"handleMsg,omitempty"` //处理消息 // contains filtered or unexported fields }
处理好友请求 -------------------------------------------
func (*AddFriendResponseReq) Descriptor
deprecated
added in
v0.0.10
func (*AddFriendResponseReq) Descriptor() ([]byte, []int)
Deprecated: Use AddFriendResponseReq.ProtoReflect.Descriptor instead.
func (*AddFriendResponseReq) GetFromUserID ¶ added in v0.0.10
func (x *AddFriendResponseReq) GetFromUserID() string
func (*AddFriendResponseReq) GetHandleMsg ¶ added in v0.0.10
func (x *AddFriendResponseReq) GetHandleMsg() string
func (*AddFriendResponseReq) GetHandleResult ¶ added in v0.0.10
func (x *AddFriendResponseReq) GetHandleResult() int32
func (*AddFriendResponseReq) GetOpUserID ¶ added in v0.0.10
func (x *AddFriendResponseReq) GetOpUserID() string
func (*AddFriendResponseReq) GetToUserID ¶ added in v0.0.10
func (x *AddFriendResponseReq) GetToUserID() string
func (*AddFriendResponseReq) ProtoMessage ¶ added in v0.0.10
func (*AddFriendResponseReq) ProtoMessage()
func (*AddFriendResponseReq) ProtoReflect ¶ added in v0.0.10
func (x *AddFriendResponseReq) ProtoReflect() protoreflect.Message
func (*AddFriendResponseReq) Reset ¶ added in v0.0.10
func (x *AddFriendResponseReq) Reset()
func (*AddFriendResponseReq) String ¶ added in v0.0.10
func (x *AddFriendResponseReq) String() string
type DeleteFriendReply ¶ added in v0.0.10
type DeleteFriendReply struct {
// contains filtered or unexported fields
}
func (*DeleteFriendReply) Descriptor
deprecated
added in
v0.0.10
func (*DeleteFriendReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFriendReply.ProtoReflect.Descriptor instead.
func (*DeleteFriendReply) ProtoMessage ¶ added in v0.0.10
func (*DeleteFriendReply) ProtoMessage()
func (*DeleteFriendReply) ProtoReflect ¶ added in v0.0.10
func (x *DeleteFriendReply) ProtoReflect() protoreflect.Message
func (*DeleteFriendReply) Reset ¶ added in v0.0.10
func (x *DeleteFriendReply) Reset()
func (*DeleteFriendReply) String ¶ added in v0.0.10
func (x *DeleteFriendReply) String() string
type DeleteFriendReq ¶ added in v0.0.10
type DeleteFriendReq struct { OpUserID string `protobuf:"bytes,1,opt,name=opUserID,proto3" json:"opUserID,omitempty"` //操作用户ID ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` //被添加id‘ FromUserID string `protobuf:"bytes,3,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` //来源id // contains filtered or unexported fields }
删除好友 -------------------------------------------
func (*DeleteFriendReq) Descriptor
deprecated
added in
v0.0.10
func (*DeleteFriendReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFriendReq.ProtoReflect.Descriptor instead.
func (*DeleteFriendReq) GetFromUserID ¶ added in v0.0.10
func (x *DeleteFriendReq) GetFromUserID() string
func (*DeleteFriendReq) GetOpUserID ¶ added in v0.0.10
func (x *DeleteFriendReq) GetOpUserID() string
func (*DeleteFriendReq) GetToUserID ¶ added in v0.0.10
func (x *DeleteFriendReq) GetToUserID() string
func (*DeleteFriendReq) ProtoMessage ¶ added in v0.0.10
func (*DeleteFriendReq) ProtoMessage()
func (*DeleteFriendReq) ProtoReflect ¶ added in v0.0.10
func (x *DeleteFriendReq) ProtoReflect() protoreflect.Message
func (*DeleteFriendReq) Reset ¶ added in v0.0.10
func (x *DeleteFriendReq) Reset()
func (*DeleteFriendReq) String ¶ added in v0.0.10
func (x *DeleteFriendReq) String() string
type FriendClient ¶ added in v0.0.3
type FriendClient interface { // 获取好友列表仅仅返回id昵称和头像 GetFriendList(ctx context.Context, in *FriendListReq, opts ...grpc.CallOption) (*FriendListReply, error) // 获取好友信息 GetFriendsInfo(ctx context.Context, in *GetFriendsInfoReq, opts ...grpc.CallOption) (*GetFriendInfoReply, error) // 添加好友 AddFriend(ctx context.Context, in *AddFriendReq, opts ...grpc.CallOption) (*AddFriendReply, error) // 获取好友申请列表 GetFriendApplyList(ctx context.Context, in *GetFriendApplyListReq, opts ...grpc.CallOption) (*GetFriendApplyListReply, error) // 添加黑名单 AddBlacklist(ctx context.Context, in *AddBlacklistReq, opts ...grpc.CallOption) (*AddBlacklistReply, error) // 删除黑名单 RemoveBlacklist(ctx context.Context, in *RemoveBlacklistReq, opts ...grpc.CallOption) (*RemoveBlacklistReply, error) // 是否好友 IsFriend(ctx context.Context, in *IsFriendReq, opts ...grpc.CallOption) (*IsFriendReply, error) // 是否黑名单 IsInBlackList(ctx context.Context, in *IsInBlackListReq, opts ...grpc.CallOption) (*IsInBlackListReply, error) // 获取黑名单列表 GetBlacklist(ctx context.Context, in *GetBlacklistReq, opts ...grpc.CallOption) (*GetBlacklistReply, error) // 删除好友 DeleteFriend(ctx context.Context, in *DeleteFriendReq, opts ...grpc.CallOption) (*DeleteFriendReply, error) // 处理好友请求 AddFriendResponse(ctx context.Context, in *AddFriendResponseReq, opts ...grpc.CallOption) (*AddFriendResponseReply, error) // 设置好友备注 SetFriendRemark(ctx context.Context, in *SetFriendRemarkReq, opts ...grpc.CallOption) (*SetFriendRemarkReply, error) // 设置好友聊天背景图片 SetFriendBackground(ctx context.Context, in *SetFriendBackgroundReq, opts ...grpc.CallOption) (*emptypb.Empty, 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 ¶ added in v0.0.3
func NewFriendClient(cc grpc.ClientConnInterface) FriendClient
type FriendErrorReason ¶ added in v0.0.6
type FriendErrorReason int32
const ( // 获取好友信息失败 FriendErrorReason_GetFriendList_FAIL FriendErrorReason = 0 // 获取好友信息失败 FriendErrorReason_GetFriendsInfo_FAIL FriendErrorReason = 1 // 添加好友失败 FriendErrorReason_AddFriend_FAIL FriendErrorReason = 2 // 获取好友申请列表 FriendErrorReason_GetFriendApplyList_FAIL FriendErrorReason = 3 // 添加黑名单 FriendErrorReason_AddBlacklist_FAIL FriendErrorReason = 4 // 删除黑名单 FriendErrorReason_RemoveBlacklist_FAIL FriendErrorReason = 5 // 是否好友 FriendErrorReason_IsFriend_FAIL FriendErrorReason = 6 // 是否黑名单 FriendErrorReason_IsInBlackList_FAIL FriendErrorReason = 7 // 获取黑名单列表 FriendErrorReason_GetBlacklist_FAIL FriendErrorReason = 8 // 删除好友 FriendErrorReason_DeleteFriend_FAIL FriendErrorReason = 9 // 删除好友 FriendErrorReason_AddFriendResponse_FAIL FriendErrorReason = 10 // 删除好友 FriendErrorReason_SetFriendRemark_FAIL FriendErrorReason = 11 )
func (FriendErrorReason) Descriptor ¶ added in v0.0.6
func (FriendErrorReason) Descriptor() protoreflect.EnumDescriptor
func (FriendErrorReason) Enum ¶ added in v0.0.6
func (x FriendErrorReason) Enum() *FriendErrorReason
func (FriendErrorReason) EnumDescriptor
deprecated
added in
v0.0.6
func (FriendErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use FriendErrorReason.Descriptor instead.
func (FriendErrorReason) Number ¶ added in v0.0.6
func (x FriendErrorReason) Number() protoreflect.EnumNumber
func (FriendErrorReason) String ¶ added in v0.0.6
func (x FriendErrorReason) String() string
func (FriendErrorReason) Type ¶ added in v0.0.6
func (FriendErrorReason) Type() protoreflect.EnumType
type FriendListReply ¶ added in v0.0.3
type FriendListReply struct { Items []*v2.FriendItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // 好友列表 // contains filtered or unexported fields }
func (*FriendListReply) Descriptor
deprecated
added in
v0.0.3
func (*FriendListReply) Descriptor() ([]byte, []int)
Deprecated: Use FriendListReply.ProtoReflect.Descriptor instead.
func (*FriendListReply) GetItems ¶ added in v0.0.3
func (x *FriendListReply) GetItems() []*v2.FriendItem
func (*FriendListReply) ProtoMessage ¶ added in v0.0.3
func (*FriendListReply) ProtoMessage()
func (*FriendListReply) ProtoReflect ¶ added in v0.0.3
func (x *FriendListReply) ProtoReflect() protoreflect.Message
func (*FriendListReply) Reset ¶ added in v0.0.3
func (x *FriendListReply) Reset()
func (*FriendListReply) String ¶ added in v0.0.3
func (x *FriendListReply) String() string
type FriendListReq ¶ added in v0.0.3
type FriendListReq struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` // 用户id ChangTime map[string]int64 `` //好友信息更新时间列表 /* 160-byte string literal not displayed */ // contains filtered or unexported fields }
获取好友列表仅仅返回id昵称和头像 -------------------------------------------
func (*FriendListReq) Descriptor
deprecated
added in
v0.0.3
func (*FriendListReq) Descriptor() ([]byte, []int)
Deprecated: Use FriendListReq.ProtoReflect.Descriptor instead.
func (*FriendListReq) GetChangTime ¶ added in v0.0.3
func (x *FriendListReq) GetChangTime() map[string]int64
func (*FriendListReq) GetUserID ¶ added in v0.0.3
func (x *FriendListReq) GetUserID() string
func (*FriendListReq) ProtoMessage ¶ added in v0.0.3
func (*FriendListReq) ProtoMessage()
func (*FriendListReq) ProtoReflect ¶ added in v0.0.3
func (x *FriendListReq) ProtoReflect() protoreflect.Message
func (*FriendListReq) Reset ¶ added in v0.0.3
func (x *FriendListReq) Reset()
func (*FriendListReq) String ¶ added in v0.0.3
func (x *FriendListReq) String() string
type FriendServer ¶ added in v0.0.3
type FriendServer interface { // 获取好友列表仅仅返回id昵称和头像 GetFriendList(context.Context, *FriendListReq) (*FriendListReply, error) // 获取好友信息 GetFriendsInfo(context.Context, *GetFriendsInfoReq) (*GetFriendInfoReply, error) // 添加好友 AddFriend(context.Context, *AddFriendReq) (*AddFriendReply, error) // 获取好友申请列表 GetFriendApplyList(context.Context, *GetFriendApplyListReq) (*GetFriendApplyListReply, error) // 添加黑名单 AddBlacklist(context.Context, *AddBlacklistReq) (*AddBlacklistReply, error) // 删除黑名单 RemoveBlacklist(context.Context, *RemoveBlacklistReq) (*RemoveBlacklistReply, error) // 是否好友 IsFriend(context.Context, *IsFriendReq) (*IsFriendReply, error) // 是否黑名单 IsInBlackList(context.Context, *IsInBlackListReq) (*IsInBlackListReply, error) // 获取黑名单列表 GetBlacklist(context.Context, *GetBlacklistReq) (*GetBlacklistReply, error) // 删除好友 DeleteFriend(context.Context, *DeleteFriendReq) (*DeleteFriendReply, error) // 处理好友请求 AddFriendResponse(context.Context, *AddFriendResponseReq) (*AddFriendResponseReply, error) // 设置好友备注 SetFriendRemark(context.Context, *SetFriendRemarkReq) (*SetFriendRemarkReply, error) // 设置好友聊天背景图片 SetFriendBackground(context.Context, *SetFriendBackgroundReq) (*emptypb.Empty, error) // contains filtered or unexported methods }
FriendServer is the server API for Friend service. All implementations must embed UnimplementedFriendServer for forward compatibility
type GetBlacklistReply ¶ added in v0.0.10
type GetBlacklistReply struct { List []*v2.PublicUserInfo `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetBlacklistReply) Descriptor
deprecated
added in
v0.0.10
func (*GetBlacklistReply) Descriptor() ([]byte, []int)
Deprecated: Use GetBlacklistReply.ProtoReflect.Descriptor instead.
func (*GetBlacklistReply) GetList ¶ added in v0.0.10
func (x *GetBlacklistReply) GetList() []*v2.PublicUserInfo
func (*GetBlacklistReply) ProtoMessage ¶ added in v0.0.10
func (*GetBlacklistReply) ProtoMessage()
func (*GetBlacklistReply) ProtoReflect ¶ added in v0.0.10
func (x *GetBlacklistReply) ProtoReflect() protoreflect.Message
func (*GetBlacklistReply) Reset ¶ added in v0.0.10
func (x *GetBlacklistReply) Reset()
func (*GetBlacklistReply) String ¶ added in v0.0.10
func (x *GetBlacklistReply) String() string
type GetBlacklistReq ¶ added in v0.0.10
type GetBlacklistReq struct { OpUserID string `protobuf:"bytes,1,opt,name=opUserID,proto3" json:"opUserID,omitempty"` //操作用户ID ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` //被添加id‘ FromUserID string `protobuf:"bytes,3,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` //来源id // contains filtered or unexported fields }
获取黑名单列表 -------------------------------------------
func (*GetBlacklistReq) Descriptor
deprecated
added in
v0.0.10
func (*GetBlacklistReq) Descriptor() ([]byte, []int)
Deprecated: Use GetBlacklistReq.ProtoReflect.Descriptor instead.
func (*GetBlacklistReq) GetFromUserID ¶ added in v0.0.10
func (x *GetBlacklistReq) GetFromUserID() string
func (*GetBlacklistReq) GetOpUserID ¶ added in v0.0.10
func (x *GetBlacklistReq) GetOpUserID() string
func (*GetBlacklistReq) GetToUserID ¶ added in v0.0.10
func (x *GetBlacklistReq) GetToUserID() string
func (*GetBlacklistReq) ProtoMessage ¶ added in v0.0.10
func (*GetBlacklistReq) ProtoMessage()
func (*GetBlacklistReq) ProtoReflect ¶ added in v0.0.10
func (x *GetBlacklistReq) ProtoReflect() protoreflect.Message
func (*GetBlacklistReq) Reset ¶ added in v0.0.10
func (x *GetBlacklistReq) Reset()
func (*GetBlacklistReq) String ¶ added in v0.0.10
func (x *GetBlacklistReq) String() string
type GetFriendApplyListReply ¶ added in v0.0.10
type GetFriendApplyListReply 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 (*GetFriendApplyListReply) Descriptor
deprecated
added in
v0.0.10
func (*GetFriendApplyListReply) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendApplyListReply.ProtoReflect.Descriptor instead.
func (*GetFriendApplyListReply) GetList ¶ added in v0.0.10
func (x *GetFriendApplyListReply) GetList() []*v2.FriendRequest
func (*GetFriendApplyListReply) GetTotal ¶ added in v0.0.10
func (x *GetFriendApplyListReply) GetTotal() int64
func (*GetFriendApplyListReply) ProtoMessage ¶ added in v0.0.10
func (*GetFriendApplyListReply) ProtoMessage()
func (*GetFriendApplyListReply) ProtoReflect ¶ added in v0.0.10
func (x *GetFriendApplyListReply) ProtoReflect() protoreflect.Message
func (*GetFriendApplyListReply) Reset ¶ added in v0.0.10
func (x *GetFriendApplyListReply) Reset()
func (*GetFriendApplyListReply) String ¶ added in v0.0.10
func (x *GetFriendApplyListReply) String() string
type GetFriendApplyListReq ¶ added in v0.0.10
type GetFriendApplyListReq struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` //用户id Pagination *model.Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` //分页数据 // contains filtered or unexported fields }
获取好友申请列表 -------------------------------------------
func (*GetFriendApplyListReq) Descriptor
deprecated
added in
v0.0.10
func (*GetFriendApplyListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendApplyListReq.ProtoReflect.Descriptor instead.
func (*GetFriendApplyListReq) GetPagination ¶ added in v0.0.10
func (x *GetFriendApplyListReq) GetPagination() *model.Pagination
func (*GetFriendApplyListReq) GetUserID ¶ added in v0.0.10
func (x *GetFriendApplyListReq) GetUserID() string
func (*GetFriendApplyListReq) ProtoMessage ¶ added in v0.0.10
func (*GetFriendApplyListReq) ProtoMessage()
func (*GetFriendApplyListReq) ProtoReflect ¶ added in v0.0.10
func (x *GetFriendApplyListReq) ProtoReflect() protoreflect.Message
func (*GetFriendApplyListReq) Reset ¶ added in v0.0.10
func (x *GetFriendApplyListReq) Reset()
func (*GetFriendApplyListReq) String ¶ added in v0.0.10
func (x *GetFriendApplyListReq) String() string
type GetFriendInfoReply ¶ added in v0.0.10
type GetFriendInfoReply struct { List []*v2.FriendInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetFriendInfoReply) Descriptor
deprecated
added in
v0.0.10
func (*GetFriendInfoReply) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendInfoReply.ProtoReflect.Descriptor instead.
func (*GetFriendInfoReply) GetList ¶ added in v0.0.14
func (x *GetFriendInfoReply) GetList() []*v2.FriendInfo
func (*GetFriendInfoReply) ProtoMessage ¶ added in v0.0.10
func (*GetFriendInfoReply) ProtoMessage()
func (*GetFriendInfoReply) ProtoReflect ¶ added in v0.0.10
func (x *GetFriendInfoReply) ProtoReflect() protoreflect.Message
func (*GetFriendInfoReply) Reset ¶ added in v0.0.10
func (x *GetFriendInfoReply) Reset()
func (*GetFriendInfoReply) String ¶ added in v0.0.10
func (x *GetFriendInfoReply) String() string
type GetFriendsInfoReq ¶ added in v0.0.10
type GetFriendsInfoReq struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` //用户ID FriendUserIDs []string `protobuf:"bytes,2,rep,name=FriendUserIDs,proto3" json:"FriendUserIDs,omitempty"` //好友id // contains filtered or unexported fields }
获取好友信息 -------------------------------------------
func (*GetFriendsInfoReq) Descriptor
deprecated
added in
v0.0.10
func (*GetFriendsInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendsInfoReq.ProtoReflect.Descriptor instead.
func (*GetFriendsInfoReq) GetFriendUserIDs ¶ added in v0.0.10
func (x *GetFriendsInfoReq) GetFriendUserIDs() []string
func (*GetFriendsInfoReq) GetUserId ¶ added in v0.0.10
func (x *GetFriendsInfoReq) GetUserId() string
func (*GetFriendsInfoReq) ProtoMessage ¶ added in v0.0.10
func (*GetFriendsInfoReq) ProtoMessage()
func (*GetFriendsInfoReq) ProtoReflect ¶ added in v0.0.10
func (x *GetFriendsInfoReq) ProtoReflect() protoreflect.Message
func (*GetFriendsInfoReq) Reset ¶ added in v0.0.10
func (x *GetFriendsInfoReq) Reset()
func (*GetFriendsInfoReq) String ¶ added in v0.0.10
func (x *GetFriendsInfoReq) String() string
type IsFriendReply ¶ added in v0.0.10
type IsFriendReply struct { Response bool `protobuf:"varint,3,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*IsFriendReply) Descriptor
deprecated
added in
v0.0.10
func (*IsFriendReply) Descriptor() ([]byte, []int)
Deprecated: Use IsFriendReply.ProtoReflect.Descriptor instead.
func (*IsFriendReply) GetResponse ¶ added in v0.0.10
func (x *IsFriendReply) GetResponse() bool
func (*IsFriendReply) ProtoMessage ¶ added in v0.0.10
func (*IsFriendReply) ProtoMessage()
func (*IsFriendReply) ProtoReflect ¶ added in v0.0.10
func (x *IsFriendReply) ProtoReflect() protoreflect.Message
func (*IsFriendReply) Reset ¶ added in v0.0.10
func (x *IsFriendReply) Reset()
func (*IsFriendReply) String ¶ added in v0.0.10
func (x *IsFriendReply) String() string
type IsFriendReq ¶ added in v0.0.10
type IsFriendReq struct { OpUserID string `protobuf:"bytes,1,opt,name=opUserID,proto3" json:"opUserID,omitempty"` //操作用户ID ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` //被添加id‘ FromUserID string `protobuf:"bytes,3,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` //来源id // contains filtered or unexported fields }
是否好友 -------------------------------------------
func (*IsFriendReq) Descriptor
deprecated
added in
v0.0.10
func (*IsFriendReq) Descriptor() ([]byte, []int)
Deprecated: Use IsFriendReq.ProtoReflect.Descriptor instead.
func (*IsFriendReq) GetFromUserID ¶ added in v0.0.10
func (x *IsFriendReq) GetFromUserID() string
func (*IsFriendReq) GetOpUserID ¶ added in v0.0.10
func (x *IsFriendReq) GetOpUserID() string
func (*IsFriendReq) GetToUserID ¶ added in v0.0.10
func (x *IsFriendReq) GetToUserID() string
func (*IsFriendReq) ProtoMessage ¶ added in v0.0.10
func (*IsFriendReq) ProtoMessage()
func (*IsFriendReq) ProtoReflect ¶ added in v0.0.10
func (x *IsFriendReq) ProtoReflect() protoreflect.Message
func (*IsFriendReq) Reset ¶ added in v0.0.10
func (x *IsFriendReq) Reset()
func (*IsFriendReq) String ¶ added in v0.0.10
func (x *IsFriendReq) String() string
type IsInBlackListReply ¶ added in v0.0.10
type IsInBlackListReply struct { Response bool `protobuf:"varint,3,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*IsInBlackListReply) Descriptor
deprecated
added in
v0.0.10
func (*IsInBlackListReply) Descriptor() ([]byte, []int)
Deprecated: Use IsInBlackListReply.ProtoReflect.Descriptor instead.
func (*IsInBlackListReply) GetResponse ¶ added in v0.0.10
func (x *IsInBlackListReply) GetResponse() bool
func (*IsInBlackListReply) ProtoMessage ¶ added in v0.0.10
func (*IsInBlackListReply) ProtoMessage()
func (*IsInBlackListReply) ProtoReflect ¶ added in v0.0.10
func (x *IsInBlackListReply) ProtoReflect() protoreflect.Message
func (*IsInBlackListReply) Reset ¶ added in v0.0.10
func (x *IsInBlackListReply) Reset()
func (*IsInBlackListReply) String ¶ added in v0.0.10
func (x *IsInBlackListReply) String() string
type IsInBlackListReq ¶ added in v0.0.10
type IsInBlackListReq struct { OpUserID string `protobuf:"bytes,1,opt,name=opUserID,proto3" json:"opUserID,omitempty"` //操作用户ID ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` //被添加id‘ FromUserID string `protobuf:"bytes,3,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` //来源id // contains filtered or unexported fields }
是否黑名单 -------------------------------------------
func (*IsInBlackListReq) Descriptor
deprecated
added in
v0.0.10
func (*IsInBlackListReq) Descriptor() ([]byte, []int)
Deprecated: Use IsInBlackListReq.ProtoReflect.Descriptor instead.
func (*IsInBlackListReq) GetFromUserID ¶ added in v0.0.10
func (x *IsInBlackListReq) GetFromUserID() string
func (*IsInBlackListReq) GetOpUserID ¶ added in v0.0.10
func (x *IsInBlackListReq) GetOpUserID() string
func (*IsInBlackListReq) GetToUserID ¶ added in v0.0.10
func (x *IsInBlackListReq) GetToUserID() string
func (*IsInBlackListReq) ProtoMessage ¶ added in v0.0.10
func (*IsInBlackListReq) ProtoMessage()
func (*IsInBlackListReq) ProtoReflect ¶ added in v0.0.10
func (x *IsInBlackListReq) ProtoReflect() protoreflect.Message
func (*IsInBlackListReq) Reset ¶ added in v0.0.10
func (x *IsInBlackListReq) Reset()
func (*IsInBlackListReq) String ¶ added in v0.0.10
func (x *IsInBlackListReq) String() string
type RemoveBlacklistReply ¶ added in v0.0.10
type RemoveBlacklistReply struct {
// contains filtered or unexported fields
}
func (*RemoveBlacklistReply) Descriptor
deprecated
added in
v0.0.10
func (*RemoveBlacklistReply) Descriptor() ([]byte, []int)
Deprecated: Use RemoveBlacklistReply.ProtoReflect.Descriptor instead.
func (*RemoveBlacklistReply) ProtoMessage ¶ added in v0.0.10
func (*RemoveBlacklistReply) ProtoMessage()
func (*RemoveBlacklistReply) ProtoReflect ¶ added in v0.0.10
func (x *RemoveBlacklistReply) ProtoReflect() protoreflect.Message
func (*RemoveBlacklistReply) Reset ¶ added in v0.0.10
func (x *RemoveBlacklistReply) Reset()
func (*RemoveBlacklistReply) String ¶ added in v0.0.10
func (x *RemoveBlacklistReply) String() string
type RemoveBlacklistReq ¶ added in v0.0.10
type RemoveBlacklistReq struct { OpUserID string `protobuf:"bytes,1,opt,name=opUserID,proto3" json:"opUserID,omitempty"` //操作用户ID ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` //被添加id‘ FromUserID string `protobuf:"bytes,3,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` //来源id // contains filtered or unexported fields }
删除黑名单 -------------------------------------------
func (*RemoveBlacklistReq) Descriptor
deprecated
added in
v0.0.10
func (*RemoveBlacklistReq) Descriptor() ([]byte, []int)
Deprecated: Use RemoveBlacklistReq.ProtoReflect.Descriptor instead.
func (*RemoveBlacklistReq) GetFromUserID ¶ added in v0.0.10
func (x *RemoveBlacklistReq) GetFromUserID() string
func (*RemoveBlacklistReq) GetOpUserID ¶ added in v0.0.10
func (x *RemoveBlacklistReq) GetOpUserID() string
func (*RemoveBlacklistReq) GetToUserID ¶ added in v0.0.10
func (x *RemoveBlacklistReq) GetToUserID() string
func (*RemoveBlacklistReq) ProtoMessage ¶ added in v0.0.10
func (*RemoveBlacklistReq) ProtoMessage()
func (*RemoveBlacklistReq) ProtoReflect ¶ added in v0.0.10
func (x *RemoveBlacklistReq) ProtoReflect() protoreflect.Message
func (*RemoveBlacklistReq) Reset ¶ added in v0.0.10
func (x *RemoveBlacklistReq) Reset()
func (*RemoveBlacklistReq) String ¶ added in v0.0.10
func (x *RemoveBlacklistReq) String() string
type SetFriendBackgroundReq ¶ added in v0.0.28
type SetFriendBackgroundReq struct { OpUserID string `protobuf:"bytes,1,opt,name=opUserID,proto3" json:"opUserID,omitempty"` OperationID string `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID,omitempty"` BackgroundUrl string `protobuf:"bytes,3,opt,name=backgroundUrl,proto3" json:"backgroundUrl,omitempty"` FriendUserId string `protobuf:"bytes,4,opt,name=friendUserId,proto3" json:"friendUserId,omitempty"` //好友id // contains filtered or unexported fields }
设置好友聊天背景图片
func (*SetFriendBackgroundReq) Descriptor
deprecated
added in
v0.0.28
func (*SetFriendBackgroundReq) Descriptor() ([]byte, []int)
Deprecated: Use SetFriendBackgroundReq.ProtoReflect.Descriptor instead.
func (*SetFriendBackgroundReq) GetBackgroundUrl ¶ added in v0.0.28
func (x *SetFriendBackgroundReq) GetBackgroundUrl() string
func (*SetFriendBackgroundReq) GetFriendUserId ¶ added in v0.0.28
func (x *SetFriendBackgroundReq) GetFriendUserId() string
func (*SetFriendBackgroundReq) GetOpUserID ¶ added in v0.0.28
func (x *SetFriendBackgroundReq) GetOpUserID() string
func (*SetFriendBackgroundReq) GetOperationID ¶ added in v0.0.28
func (x *SetFriendBackgroundReq) GetOperationID() string
func (*SetFriendBackgroundReq) ProtoMessage ¶ added in v0.0.28
func (*SetFriendBackgroundReq) ProtoMessage()
func (*SetFriendBackgroundReq) ProtoReflect ¶ added in v0.0.28
func (x *SetFriendBackgroundReq) ProtoReflect() protoreflect.Message
func (*SetFriendBackgroundReq) Reset ¶ added in v0.0.28
func (x *SetFriendBackgroundReq) Reset()
func (*SetFriendBackgroundReq) String ¶ added in v0.0.28
func (x *SetFriendBackgroundReq) String() string
type SetFriendRemarkReply ¶ added in v0.0.10
type SetFriendRemarkReply struct {
// contains filtered or unexported fields
}
func (*SetFriendRemarkReply) Descriptor
deprecated
added in
v0.0.10
func (*SetFriendRemarkReply) Descriptor() ([]byte, []int)
Deprecated: Use SetFriendRemarkReply.ProtoReflect.Descriptor instead.
func (*SetFriendRemarkReply) ProtoMessage ¶ added in v0.0.10
func (*SetFriendRemarkReply) ProtoMessage()
func (*SetFriendRemarkReply) ProtoReflect ¶ added in v0.0.10
func (x *SetFriendRemarkReply) ProtoReflect() protoreflect.Message
func (*SetFriendRemarkReply) Reset ¶ added in v0.0.10
func (x *SetFriendRemarkReply) Reset()
func (*SetFriendRemarkReply) String ¶ added in v0.0.10
func (x *SetFriendRemarkReply) String() string
type SetFriendRemarkReq ¶ added in v0.0.10
type SetFriendRemarkReq struct { OpUserID string `protobuf:"bytes,1,opt,name=opUserID,proto3" json:"opUserID,omitempty"` //操作用户ID ToUserID string `protobuf:"bytes,2,opt,name=toUserID,proto3" json:"toUserID,omitempty"` //被添加id‘ FromUserID string `protobuf:"bytes,3,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` //来源id Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty"` //备注 // contains filtered or unexported fields }
设置好友备注 -------------------------------------------
func (*SetFriendRemarkReq) Descriptor
deprecated
added in
v0.0.10
func (*SetFriendRemarkReq) Descriptor() ([]byte, []int)
Deprecated: Use SetFriendRemarkReq.ProtoReflect.Descriptor instead.
func (*SetFriendRemarkReq) GetFromUserID ¶ added in v0.0.10
func (x *SetFriendRemarkReq) GetFromUserID() string
func (*SetFriendRemarkReq) GetOpUserID ¶ added in v0.0.10
func (x *SetFriendRemarkReq) GetOpUserID() string
func (*SetFriendRemarkReq) GetRemark ¶ added in v0.0.10
func (x *SetFriendRemarkReq) GetRemark() string
func (*SetFriendRemarkReq) GetToUserID ¶ added in v0.0.10
func (x *SetFriendRemarkReq) GetToUserID() string
func (*SetFriendRemarkReq) ProtoMessage ¶ added in v0.0.10
func (*SetFriendRemarkReq) ProtoMessage()
func (*SetFriendRemarkReq) ProtoReflect ¶ added in v0.0.10
func (x *SetFriendRemarkReq) ProtoReflect() protoreflect.Message
func (*SetFriendRemarkReq) Reset ¶ added in v0.0.10
func (x *SetFriendRemarkReq) Reset()
func (*SetFriendRemarkReq) String ¶ added in v0.0.10
func (x *SetFriendRemarkReq) String() string
type UnimplementedFriendServer ¶ added in v0.0.3
type UnimplementedFriendServer struct { }
UnimplementedFriendServer must be embedded to have forward compatible implementations.
func (UnimplementedFriendServer) AddBlacklist ¶ added in v0.0.10
func (UnimplementedFriendServer) AddBlacklist(context.Context, *AddBlacklistReq) (*AddBlacklistReply, error)
func (UnimplementedFriendServer) AddFriend ¶ added in v0.0.10
func (UnimplementedFriendServer) AddFriend(context.Context, *AddFriendReq) (*AddFriendReply, error)
func (UnimplementedFriendServer) AddFriendResponse ¶ added in v0.0.10
func (UnimplementedFriendServer) AddFriendResponse(context.Context, *AddFriendResponseReq) (*AddFriendResponseReply, error)
func (UnimplementedFriendServer) DeleteFriend ¶ added in v0.0.10
func (UnimplementedFriendServer) DeleteFriend(context.Context, *DeleteFriendReq) (*DeleteFriendReply, error)
func (UnimplementedFriendServer) GetBlacklist ¶ added in v0.0.10
func (UnimplementedFriendServer) GetBlacklist(context.Context, *GetBlacklistReq) (*GetBlacklistReply, error)
func (UnimplementedFriendServer) GetFriendApplyList ¶ added in v0.0.10
func (UnimplementedFriendServer) GetFriendApplyList(context.Context, *GetFriendApplyListReq) (*GetFriendApplyListReply, error)
func (UnimplementedFriendServer) GetFriendList ¶ added in v0.0.3
func (UnimplementedFriendServer) GetFriendList(context.Context, *FriendListReq) (*FriendListReply, error)
func (UnimplementedFriendServer) GetFriendsInfo ¶ added in v0.0.10
func (UnimplementedFriendServer) GetFriendsInfo(context.Context, *GetFriendsInfoReq) (*GetFriendInfoReply, error)
func (UnimplementedFriendServer) IsFriend ¶ added in v0.0.10
func (UnimplementedFriendServer) IsFriend(context.Context, *IsFriendReq) (*IsFriendReply, error)
func (UnimplementedFriendServer) IsInBlackList ¶ added in v0.0.10
func (UnimplementedFriendServer) IsInBlackList(context.Context, *IsInBlackListReq) (*IsInBlackListReply, error)
func (UnimplementedFriendServer) RemoveBlacklist ¶ added in v0.0.10
func (UnimplementedFriendServer) RemoveBlacklist(context.Context, *RemoveBlacklistReq) (*RemoveBlacklistReply, error)
func (UnimplementedFriendServer) SetFriendBackground ¶ added in v0.0.28
func (UnimplementedFriendServer) SetFriendBackground(context.Context, *SetFriendBackgroundReq) (*emptypb.Empty, error)
func (UnimplementedFriendServer) SetFriendRemark ¶ added in v0.0.10
func (UnimplementedFriendServer) SetFriendRemark(context.Context, *SetFriendRemarkReq) (*SetFriendRemarkReply, error)
type UnsafeFriendServer ¶ added in v0.0.3
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.