2026-08-09 10:43:45 +08:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
2026-08-09 15:10:19 +08:00
// - protoc-gen-go-grpc v1.6.2
2026-08-09 18:40:36 +08:00
// - protoc v7.35.1
2026-08-09 15:10:19 +08:00
// source: module/social/relation/proto/friend.proto
2026-08-09 10:43:45 +08:00
package relation
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc . SupportPackageIsVersion9
const (
Friend_Search_FullMethodName = "/relation.Friend/Search"
Friend_Fetch_FullMethodName = "/relation.Friend/Fetch"
Friend_Get_FullMethodName = "/relation.Friend/Get"
Friend_ModifyNickname_FullMethodName = "/relation.Friend/ModifyNickname"
Friend_DoPopular_FullMethodName = "/relation.Friend/DoPopular"
Friend_UndoPopular_FullMethodName = "/relation.Friend/UndoPopular"
Friend_Delete_FullMethodName = "/relation.Friend/Delete"
Friend_ApplyFetch_FullMethodName = "/relation.Friend/ApplyFetch"
Friend_ApplyGet_FullMethodName = "/relation.Friend/ApplyGet"
Friend_ApplyDo_FullMethodName = "/relation.Friend/ApplyDo"
Friend_ApplyDoMessage_FullMethodName = "/relation.Friend/ApplyDoMessage"
Friend_ApplyDoPass_FullMethodName = "/relation.Friend/ApplyDoPass"
Friend_ApplyDoReject_FullMethodName = "/relation.Friend/ApplyDoReject"
Friend_TagFetch_FullMethodName = "/relation.Friend/TagFetch"
Friend_TagMemberFetch_FullMethodName = "/relation.Friend/TagMemberFetch"
Friend_TagDoCreate_FullMethodName = "/relation.Friend/TagDoCreate"
Friend_TagDoUpdate_FullMethodName = "/relation.Friend/TagDoUpdate"
)
// 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.
//
// relation-关系管理:好友
type FriendClient interface {
2026-08-09 15:10:19 +08:00
// 搜索
2026-08-09 20:14:57 +08:00
Search ( ctx context . Context , in * SearchRequest , opts ... grpc . CallOption ) ( * PartFriendReply , error )
2026-08-09 15:10:19 +08:00
// 获取好友列表
2026-08-09 20:14:57 +08:00
Fetch ( ctx context . Context , in * VersionRequest , opts ... grpc . CallOption ) ( * FriendsReply , error )
2026-08-09 15:10:19 +08:00
// 获取用户信息卡片
2026-08-09 20:14:57 +08:00
Get ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * RelationItem , error )
2026-08-09 15:10:19 +08:00
// 修改好友备注名称,如果要清除备注,直接nickname传空值
2026-08-09 20:14:57 +08:00
ModifyNickname ( ctx context . Context , in * ModifyNicknameRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 受你欢迎的,置顶
2026-08-09 20:14:57 +08:00
DoPopular ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 取消受欢迎的,取消置顶
2026-08-09 20:14:57 +08:00
UndoPopular ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 删除好友
2026-08-09 20:14:57 +08:00
Delete ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 好友申请列表
2026-08-09 20:14:57 +08:00
ApplyFetch ( ctx context . Context , in * VersionRequest , opts ... grpc . CallOption ) ( * ApplyFetchReply , error )
2026-08-09 15:10:19 +08:00
// 好友申请详情
2026-08-09 20:14:57 +08:00
ApplyGet ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * FriendApplyGetReply , error )
2026-08-09 15:10:19 +08:00
// 好友申请
2026-08-09 20:14:57 +08:00
ApplyDo ( ctx context . Context , in * ApplyDoRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 好友申请Do:留言
2026-08-09 20:14:57 +08:00
ApplyDoMessage ( ctx context . Context , in * ApplyMessageRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 好友申请Do:确认
2026-08-09 20:14:57 +08:00
ApplyDoPass ( ctx context . Context , in * ApplyDoPassRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 好友申请Do:拒绝
2026-08-09 20:14:57 +08:00
ApplyDoReject ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 获取标签列表
2026-08-09 20:14:57 +08:00
TagFetch ( ctx context . Context , in * Empty , opts ... grpc . CallOption ) ( * FriendTagsReply , error )
2026-08-09 15:10:19 +08:00
// 获取标签成员
2026-08-09 20:14:57 +08:00
TagMemberFetch ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * PartFriendReply , error )
2026-08-09 15:10:19 +08:00
// 创建标签
2026-08-09 20:14:57 +08:00
TagDoCreate ( ctx context . Context , in * TagDoCreateRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 更新标签成员
2026-08-09 20:14:57 +08:00
TagDoUpdate ( ctx context . Context , in * TagDoUpdateRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error )
2026-08-09 10:43:45 +08:00
}
type friendClient struct {
cc grpc . ClientConnInterface
}
func NewFriendClient ( cc grpc . ClientConnInterface ) FriendClient {
return & friendClient { cc }
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) Search ( ctx context . Context , in * SearchRequest , opts ... grpc . CallOption ) ( * PartFriendReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( PartFriendReply )
err := c . cc . Invoke ( ctx , Friend_Search_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) Fetch ( ctx context . Context , in * VersionRequest , opts ... grpc . CallOption ) ( * FriendsReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( FriendsReply )
err := c . cc . Invoke ( ctx , Friend_Fetch_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) Get ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * RelationItem , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( RelationItem )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Friend_Get_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) ModifyNickname ( ctx context . Context , in * ModifyNicknameRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( DataStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Friend_ModifyNickname_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) DoPopular ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( DataStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Friend_DoPopular_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) UndoPopular ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( DataStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Friend_UndoPopular_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) Delete ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( DataStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Friend_Delete_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) ApplyFetch ( ctx context . Context , in * VersionRequest , opts ... grpc . CallOption ) ( * ApplyFetchReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( ApplyFetchReply )
err := c . cc . Invoke ( ctx , Friend_ApplyFetch_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) ApplyGet ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * FriendApplyGetReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( FriendApplyGetReply )
err := c . cc . Invoke ( ctx , Friend_ApplyGet_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) ApplyDo ( ctx context . Context , in * ApplyDoRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( DataStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Friend_ApplyDo_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) ApplyDoMessage ( ctx context . Context , in * ApplyMessageRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( DataStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Friend_ApplyDoMessage_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) ApplyDoPass ( ctx context . Context , in * ApplyDoPassRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( DataStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Friend_ApplyDoPass_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) ApplyDoReject ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( DataStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Friend_ApplyDoReject_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) TagFetch ( ctx context . Context , in * Empty , opts ... grpc . CallOption ) ( * FriendTagsReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( FriendTagsReply )
err := c . cc . Invoke ( ctx , Friend_TagFetch_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) TagMemberFetch ( ctx context . Context , in * IdentRequest , opts ... grpc . CallOption ) ( * PartFriendReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( PartFriendReply )
err := c . cc . Invoke ( ctx , Friend_TagMemberFetch_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) TagDoCreate ( ctx context . Context , in * TagDoCreateRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( DataStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Friend_TagDoCreate_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 20:14:57 +08:00
func ( c * friendClient ) TagDoUpdate ( ctx context . Context , in * TagDoUpdateRequest , opts ... grpc . CallOption ) ( * DataStatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 20:14:57 +08:00
out := new ( DataStatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Friend_TagDoUpdate_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
// FriendServer is the server API for Friend service.
2026-08-09 15:10:19 +08:00
// All implementations should embed UnimplementedFriendServer
2026-08-09 10:43:45 +08:00
// for forward compatibility.
//
// relation-关系管理:好友
type FriendServer interface {
2026-08-09 15:10:19 +08:00
// 搜索
2026-08-09 20:14:57 +08:00
Search ( context . Context , * SearchRequest ) ( * PartFriendReply , error )
2026-08-09 15:10:19 +08:00
// 获取好友列表
2026-08-09 20:14:57 +08:00
Fetch ( context . Context , * VersionRequest ) ( * FriendsReply , error )
2026-08-09 15:10:19 +08:00
// 获取用户信息卡片
2026-08-09 20:14:57 +08:00
Get ( context . Context , * IdentRequest ) ( * RelationItem , error )
2026-08-09 15:10:19 +08:00
// 修改好友备注名称,如果要清除备注,直接nickname传空值
2026-08-09 20:14:57 +08:00
ModifyNickname ( context . Context , * ModifyNicknameRequest ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 受你欢迎的,置顶
2026-08-09 20:14:57 +08:00
DoPopular ( context . Context , * IdentRequest ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 取消受欢迎的,取消置顶
2026-08-09 20:14:57 +08:00
UndoPopular ( context . Context , * IdentRequest ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 删除好友
2026-08-09 20:14:57 +08:00
Delete ( context . Context , * IdentRequest ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 好友申请列表
2026-08-09 20:14:57 +08:00
ApplyFetch ( context . Context , * VersionRequest ) ( * ApplyFetchReply , error )
2026-08-09 15:10:19 +08:00
// 好友申请详情
2026-08-09 20:14:57 +08:00
ApplyGet ( context . Context , * IdentRequest ) ( * FriendApplyGetReply , error )
2026-08-09 15:10:19 +08:00
// 好友申请
2026-08-09 20:14:57 +08:00
ApplyDo ( context . Context , * ApplyDoRequest ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 好友申请Do:留言
2026-08-09 20:14:57 +08:00
ApplyDoMessage ( context . Context , * ApplyMessageRequest ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 好友申请Do:确认
2026-08-09 20:14:57 +08:00
ApplyDoPass ( context . Context , * ApplyDoPassRequest ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 好友申请Do:拒绝
2026-08-09 20:14:57 +08:00
ApplyDoReject ( context . Context , * IdentRequest ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 获取标签列表
2026-08-09 20:14:57 +08:00
TagFetch ( context . Context , * Empty ) ( * FriendTagsReply , error )
2026-08-09 15:10:19 +08:00
// 获取标签成员
2026-08-09 20:14:57 +08:00
TagMemberFetch ( context . Context , * IdentRequest ) ( * PartFriendReply , error )
2026-08-09 15:10:19 +08:00
// 创建标签
2026-08-09 20:14:57 +08:00
TagDoCreate ( context . Context , * TagDoCreateRequest ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
// 更新标签成员
2026-08-09 20:14:57 +08:00
TagDoUpdate ( context . Context , * TagDoUpdateRequest ) ( * DataStatusReply , error )
2026-08-09 15:10:19 +08:00
}
// UnimplementedFriendServer should be embedded to have
2026-08-09 10:43:45 +08:00
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedFriendServer struct { }
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) Search ( context . Context , * SearchRequest ) ( * PartFriendReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method Search not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) Fetch ( context . Context , * VersionRequest ) ( * FriendsReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method Fetch not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) Get ( context . Context , * IdentRequest ) ( * RelationItem , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method Get not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) ModifyNickname ( context . Context , * ModifyNicknameRequest ) ( * DataStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method ModifyNickname not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) DoPopular ( context . Context , * IdentRequest ) ( * DataStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method DoPopular not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) UndoPopular ( context . Context , * IdentRequest ) ( * DataStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method UndoPopular not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) Delete ( context . Context , * IdentRequest ) ( * DataStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method Delete not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) ApplyFetch ( context . Context , * VersionRequest ) ( * ApplyFetchReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method ApplyFetch not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) ApplyGet ( context . Context , * IdentRequest ) ( * FriendApplyGetReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method ApplyGet not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) ApplyDo ( context . Context , * ApplyDoRequest ) ( * DataStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method ApplyDo not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) ApplyDoMessage ( context . Context , * ApplyMessageRequest ) ( * DataStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method ApplyDoMessage not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) ApplyDoPass ( context . Context , * ApplyDoPassRequest ) ( * DataStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method ApplyDoPass not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) ApplyDoReject ( context . Context , * IdentRequest ) ( * DataStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method ApplyDoReject not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) TagFetch ( context . Context , * Empty ) ( * FriendTagsReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method TagFetch not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) TagMemberFetch ( context . Context , * IdentRequest ) ( * PartFriendReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method TagMemberFetch not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) TagDoCreate ( context . Context , * TagDoCreateRequest ) ( * DataStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method TagDoCreate not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 20:14:57 +08:00
func ( UnimplementedFriendServer ) TagDoUpdate ( context . Context , * TagDoUpdateRequest ) ( * DataStatusReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method TagDoUpdate not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedFriendServer ) testEmbeddedByValue ( ) { }
2026-08-09 10:43:45 +08:00
// 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.
type UnsafeFriendServer interface {
mustEmbedUnimplementedFriendServer ( )
}
func RegisterFriendServer ( s grpc . ServiceRegistrar , srv FriendServer ) {
2026-08-09 15:10:19 +08:00
// If the following call panics, it indicates UnimplementedFriendServer was
2026-08-09 10:43:45 +08:00
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t , ok := srv . ( interface { testEmbeddedByValue ( ) } ) ; ok {
t . testEmbeddedByValue ( )
}
s . RegisterService ( & Friend_ServiceDesc , srv )
}
func _Friend_Search_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( SearchRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . Search ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_Search_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( FriendServer ) . Search ( ctx , req . ( * SearchRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_Fetch_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( VersionRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . Fetch ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_Fetch_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( FriendServer ) . Fetch ( ctx , req . ( * VersionRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_Get_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( IdentRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . Get ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_Get_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( FriendServer ) . Get ( ctx , req . ( * IdentRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_ModifyNickname_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ModifyNicknameRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . ModifyNickname ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_ModifyNickname_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( FriendServer ) . ModifyNickname ( ctx , req . ( * ModifyNicknameRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_DoPopular_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( IdentRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . DoPopular ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_DoPopular_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( FriendServer ) . DoPopular ( ctx , req . ( * IdentRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_UndoPopular_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( IdentRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . UndoPopular ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_UndoPopular_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( FriendServer ) . UndoPopular ( ctx , req . ( * IdentRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_Delete_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( IdentRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . Delete ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_Delete_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( FriendServer ) . Delete ( ctx , req . ( * IdentRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_ApplyFetch_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( VersionRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . ApplyFetch ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_ApplyFetch_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( FriendServer ) . ApplyFetch ( ctx , req . ( * VersionRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_ApplyGet_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( IdentRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . ApplyGet ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_ApplyGet_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( FriendServer ) . ApplyGet ( ctx , req . ( * IdentRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_ApplyDo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ApplyDoRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . ApplyDo ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_ApplyDo_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( FriendServer ) . ApplyDo ( ctx , req . ( * ApplyDoRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_ApplyDoMessage_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ApplyMessageRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . ApplyDoMessage ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_ApplyDoMessage_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( FriendServer ) . ApplyDoMessage ( ctx , req . ( * ApplyMessageRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_ApplyDoPass_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ApplyDoPassRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . ApplyDoPass ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_ApplyDoPass_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( FriendServer ) . ApplyDoPass ( ctx , req . ( * ApplyDoPassRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_ApplyDoReject_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( IdentRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . ApplyDoReject ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_ApplyDoReject_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( FriendServer ) . ApplyDoReject ( ctx , req . ( * IdentRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_TagFetch_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( Empty )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . TagFetch ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_TagFetch_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( FriendServer ) . TagFetch ( ctx , req . ( * Empty ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_TagMemberFetch_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
in := new ( IdentRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . TagMemberFetch ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_TagMemberFetch_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 20:14:57 +08:00
return srv . ( FriendServer ) . TagMemberFetch ( ctx , req . ( * IdentRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_TagDoCreate_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( TagDoCreateRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . TagDoCreate ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_TagDoCreate_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( FriendServer ) . TagDoCreate ( ctx , req . ( * TagDoCreateRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Friend_TagDoUpdate_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( TagDoUpdateRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( FriendServer ) . TagDoUpdate ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Friend_TagDoUpdate_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( FriendServer ) . TagDoUpdate ( ctx , req . ( * TagDoUpdateRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
// 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)
var Friend_ServiceDesc = grpc . ServiceDesc {
ServiceName : "relation.Friend" ,
HandlerType : ( * FriendServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "Search" ,
Handler : _Friend_Search_Handler ,
} ,
{
MethodName : "Fetch" ,
Handler : _Friend_Fetch_Handler ,
} ,
{
MethodName : "Get" ,
Handler : _Friend_Get_Handler ,
} ,
{
MethodName : "ModifyNickname" ,
Handler : _Friend_ModifyNickname_Handler ,
} ,
{
MethodName : "DoPopular" ,
Handler : _Friend_DoPopular_Handler ,
} ,
{
MethodName : "UndoPopular" ,
Handler : _Friend_UndoPopular_Handler ,
} ,
{
MethodName : "Delete" ,
Handler : _Friend_Delete_Handler ,
} ,
{
MethodName : "ApplyFetch" ,
Handler : _Friend_ApplyFetch_Handler ,
} ,
{
MethodName : "ApplyGet" ,
Handler : _Friend_ApplyGet_Handler ,
} ,
{
MethodName : "ApplyDo" ,
Handler : _Friend_ApplyDo_Handler ,
} ,
{
MethodName : "ApplyDoMessage" ,
Handler : _Friend_ApplyDoMessage_Handler ,
} ,
{
MethodName : "ApplyDoPass" ,
Handler : _Friend_ApplyDoPass_Handler ,
} ,
{
MethodName : "ApplyDoReject" ,
Handler : _Friend_ApplyDoReject_Handler ,
} ,
{
MethodName : "TagFetch" ,
Handler : _Friend_TagFetch_Handler ,
} ,
{
MethodName : "TagMemberFetch" ,
Handler : _Friend_TagMemberFetch_Handler ,
} ,
{
MethodName : "TagDoCreate" ,
Handler : _Friend_TagDoCreate_Handler ,
} ,
{
MethodName : "TagDoUpdate" ,
Handler : _Friend_TagDoUpdate_Handler ,
} ,
} ,
Streams : [ ] grpc . StreamDesc { } ,
2026-08-09 15:10:19 +08:00
Metadata : "module/social/relation/proto/friend.proto" ,
2026-08-09 10:43:45 +08:00
}