refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc (unknown)
|
||||
// source: friend.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/social/relation/proto/friend.proto
|
||||
|
||||
package relation
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
@@ -44,40 +45,40 @@ const (
|
||||
//
|
||||
// relation-关系管理:好友
|
||||
type FriendClient interface {
|
||||
//搜索
|
||||
Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*PartFriendReply, error)
|
||||
//获取好友列表
|
||||
Fetch(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*FriendsReply, error)
|
||||
//获取用户信息卡片
|
||||
Get(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*RelationItem, error)
|
||||
//修改好友备注名称,如果要清除备注,直接nickname传空值
|
||||
ModifyNickname(ctx context.Context, in *ModifyNicknameRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//受你欢迎的,置顶
|
||||
DoPopular(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//取消受欢迎的,取消置顶
|
||||
UndoPopular(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//删除好友
|
||||
Delete(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//好友申请列表
|
||||
ApplyFetch(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*ApplyFetchReply, error)
|
||||
//好友申请详情
|
||||
ApplyGet(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*FriendApplyGetReply, error)
|
||||
//好友申请
|
||||
ApplyDo(ctx context.Context, in *ApplyDoRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//好友申请Do:留言
|
||||
ApplyDoMessage(ctx context.Context, in *ApplyMessageRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//好友申请Do:确认
|
||||
ApplyDoPass(ctx context.Context, in *ApplyDoPassRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//好友申请Do:拒绝
|
||||
ApplyDoReject(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//获取标签列表
|
||||
TagFetch(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*FriendTagsReply, error)
|
||||
//获取标签成员
|
||||
TagMemberFetch(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*PartFriendReply, error)
|
||||
//创建标签
|
||||
TagDoCreate(ctx context.Context, in *TagDoCreateRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//更新标签成员
|
||||
TagDoUpdate(ctx context.Context, in *TagDoUpdateRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
// 搜索
|
||||
Search(ctx context.Context, in *protobuf.SearchRequest, opts ...grpc.CallOption) (*PartFriendReply, error)
|
||||
// 获取好友列表
|
||||
Fetch(ctx context.Context, in *protobuf.VersionRequest, opts ...grpc.CallOption) (*FriendsReply, error)
|
||||
// 获取用户信息卡片
|
||||
Get(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.RelationItem, error)
|
||||
// 修改好友备注名称,如果要清除备注,直接nickname传空值
|
||||
ModifyNickname(ctx context.Context, in *ModifyNicknameRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 受你欢迎的,置顶
|
||||
DoPopular(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 取消受欢迎的,取消置顶
|
||||
UndoPopular(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 删除好友
|
||||
Delete(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 好友申请列表
|
||||
ApplyFetch(ctx context.Context, in *protobuf.VersionRequest, opts ...grpc.CallOption) (*ApplyFetchReply, error)
|
||||
// 好友申请详情
|
||||
ApplyGet(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*FriendApplyGetReply, error)
|
||||
// 好友申请
|
||||
ApplyDo(ctx context.Context, in *ApplyDoRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 好友申请Do:留言
|
||||
ApplyDoMessage(ctx context.Context, in *ApplyMessageRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 好友申请Do:确认
|
||||
ApplyDoPass(ctx context.Context, in *ApplyDoPassRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 好友申请Do:拒绝
|
||||
ApplyDoReject(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 获取标签列表
|
||||
TagFetch(ctx context.Context, in *protobuf.Empty, opts ...grpc.CallOption) (*FriendTagsReply, error)
|
||||
// 获取标签成员
|
||||
TagMemberFetch(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*PartFriendReply, error)
|
||||
// 创建标签
|
||||
TagDoCreate(ctx context.Context, in *TagDoCreateRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 更新标签成员
|
||||
TagDoUpdate(ctx context.Context, in *TagDoUpdateRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
}
|
||||
|
||||
type friendClient struct {
|
||||
@@ -88,7 +89,7 @@ func NewFriendClient(cc grpc.ClientConnInterface) FriendClient {
|
||||
return &friendClient{cc}
|
||||
}
|
||||
|
||||
func (c *friendClient) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*PartFriendReply, error) {
|
||||
func (c *friendClient) Search(ctx context.Context, in *protobuf.SearchRequest, opts ...grpc.CallOption) (*PartFriendReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(PartFriendReply)
|
||||
err := c.cc.Invoke(ctx, Friend_Search_FullMethodName, in, out, cOpts...)
|
||||
@@ -98,7 +99,7 @@ func (c *friendClient) Search(ctx context.Context, in *SearchRequest, opts ...gr
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) Fetch(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*FriendsReply, error) {
|
||||
func (c *friendClient) Fetch(ctx context.Context, in *protobuf.VersionRequest, opts ...grpc.CallOption) (*FriendsReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(FriendsReply)
|
||||
err := c.cc.Invoke(ctx, Friend_Fetch_FullMethodName, in, out, cOpts...)
|
||||
@@ -108,9 +109,9 @@ func (c *friendClient) Fetch(ctx context.Context, in *VersionRequest, opts ...gr
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) Get(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*RelationItem, error) {
|
||||
func (c *friendClient) Get(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.RelationItem, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(RelationItem)
|
||||
out := new(protobuf.RelationItem)
|
||||
err := c.cc.Invoke(ctx, Friend_Get_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -118,9 +119,9 @@ func (c *friendClient) Get(ctx context.Context, in *IdentRequest, opts ...grpc.C
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) ModifyNickname(ctx context.Context, in *ModifyNicknameRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *friendClient) ModifyNickname(ctx context.Context, in *ModifyNicknameRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Friend_ModifyNickname_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -128,9 +129,9 @@ func (c *friendClient) ModifyNickname(ctx context.Context, in *ModifyNicknameReq
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) DoPopular(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *friendClient) DoPopular(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Friend_DoPopular_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -138,9 +139,9 @@ func (c *friendClient) DoPopular(ctx context.Context, in *IdentRequest, opts ...
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) UndoPopular(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *friendClient) UndoPopular(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Friend_UndoPopular_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -148,9 +149,9 @@ func (c *friendClient) UndoPopular(ctx context.Context, in *IdentRequest, opts .
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) Delete(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *friendClient) Delete(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Friend_Delete_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -158,7 +159,7 @@ func (c *friendClient) Delete(ctx context.Context, in *IdentRequest, opts ...grp
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) ApplyFetch(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*ApplyFetchReply, error) {
|
||||
func (c *friendClient) ApplyFetch(ctx context.Context, in *protobuf.VersionRequest, opts ...grpc.CallOption) (*ApplyFetchReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ApplyFetchReply)
|
||||
err := c.cc.Invoke(ctx, Friend_ApplyFetch_FullMethodName, in, out, cOpts...)
|
||||
@@ -168,7 +169,7 @@ func (c *friendClient) ApplyFetch(ctx context.Context, in *VersionRequest, opts
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) ApplyGet(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*FriendApplyGetReply, error) {
|
||||
func (c *friendClient) ApplyGet(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*FriendApplyGetReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(FriendApplyGetReply)
|
||||
err := c.cc.Invoke(ctx, Friend_ApplyGet_FullMethodName, in, out, cOpts...)
|
||||
@@ -178,9 +179,9 @@ func (c *friendClient) ApplyGet(ctx context.Context, in *IdentRequest, opts ...g
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) ApplyDo(ctx context.Context, in *ApplyDoRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *friendClient) ApplyDo(ctx context.Context, in *ApplyDoRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Friend_ApplyDo_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -188,9 +189,9 @@ func (c *friendClient) ApplyDo(ctx context.Context, in *ApplyDoRequest, opts ...
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) ApplyDoMessage(ctx context.Context, in *ApplyMessageRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *friendClient) ApplyDoMessage(ctx context.Context, in *ApplyMessageRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Friend_ApplyDoMessage_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -198,9 +199,9 @@ func (c *friendClient) ApplyDoMessage(ctx context.Context, in *ApplyMessageReque
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) ApplyDoPass(ctx context.Context, in *ApplyDoPassRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *friendClient) ApplyDoPass(ctx context.Context, in *ApplyDoPassRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Friend_ApplyDoPass_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -208,9 +209,9 @@ func (c *friendClient) ApplyDoPass(ctx context.Context, in *ApplyDoPassRequest,
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) ApplyDoReject(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *friendClient) ApplyDoReject(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Friend_ApplyDoReject_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -218,7 +219,7 @@ func (c *friendClient) ApplyDoReject(ctx context.Context, in *IdentRequest, opts
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) TagFetch(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*FriendTagsReply, error) {
|
||||
func (c *friendClient) TagFetch(ctx context.Context, in *protobuf.Empty, opts ...grpc.CallOption) (*FriendTagsReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(FriendTagsReply)
|
||||
err := c.cc.Invoke(ctx, Friend_TagFetch_FullMethodName, in, out, cOpts...)
|
||||
@@ -228,7 +229,7 @@ func (c *friendClient) TagFetch(ctx context.Context, in *Empty, opts ...grpc.Cal
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) TagMemberFetch(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*PartFriendReply, error) {
|
||||
func (c *friendClient) TagMemberFetch(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*PartFriendReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(PartFriendReply)
|
||||
err := c.cc.Invoke(ctx, Friend_TagMemberFetch_FullMethodName, in, out, cOpts...)
|
||||
@@ -238,9 +239,9 @@ func (c *friendClient) TagMemberFetch(ctx context.Context, in *IdentRequest, opt
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) TagDoCreate(ctx context.Context, in *TagDoCreateRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *friendClient) TagDoCreate(ctx context.Context, in *TagDoCreateRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Friend_TagDoCreate_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -248,9 +249,9 @@ func (c *friendClient) TagDoCreate(ctx context.Context, in *TagDoCreateRequest,
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *friendClient) TagDoUpdate(ctx context.Context, in *TagDoUpdateRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *friendClient) TagDoUpdate(ctx context.Context, in *TagDoUpdateRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Friend_TagDoUpdate_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -259,108 +260,106 @@ func (c *friendClient) TagDoUpdate(ctx context.Context, in *TagDoUpdateRequest,
|
||||
}
|
||||
|
||||
// FriendServer is the server API for Friend service.
|
||||
// All implementations must embed UnimplementedFriendServer
|
||||
// All implementations should embed UnimplementedFriendServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// relation-关系管理:好友
|
||||
type FriendServer interface {
|
||||
//搜索
|
||||
Search(context.Context, *SearchRequest) (*PartFriendReply, error)
|
||||
//获取好友列表
|
||||
Fetch(context.Context, *VersionRequest) (*FriendsReply, error)
|
||||
//获取用户信息卡片
|
||||
Get(context.Context, *IdentRequest) (*RelationItem, error)
|
||||
//修改好友备注名称,如果要清除备注,直接nickname传空值
|
||||
ModifyNickname(context.Context, *ModifyNicknameRequest) (*StatusReply, error)
|
||||
//受你欢迎的,置顶
|
||||
DoPopular(context.Context, *IdentRequest) (*StatusReply, error)
|
||||
//取消受欢迎的,取消置顶
|
||||
UndoPopular(context.Context, *IdentRequest) (*StatusReply, error)
|
||||
//删除好友
|
||||
Delete(context.Context, *IdentRequest) (*StatusReply, error)
|
||||
//好友申请列表
|
||||
ApplyFetch(context.Context, *VersionRequest) (*ApplyFetchReply, error)
|
||||
//好友申请详情
|
||||
ApplyGet(context.Context, *IdentRequest) (*FriendApplyGetReply, error)
|
||||
//好友申请
|
||||
ApplyDo(context.Context, *ApplyDoRequest) (*StatusReply, error)
|
||||
//好友申请Do:留言
|
||||
ApplyDoMessage(context.Context, *ApplyMessageRequest) (*StatusReply, error)
|
||||
//好友申请Do:确认
|
||||
ApplyDoPass(context.Context, *ApplyDoPassRequest) (*StatusReply, error)
|
||||
//好友申请Do:拒绝
|
||||
ApplyDoReject(context.Context, *IdentRequest) (*StatusReply, error)
|
||||
//获取标签列表
|
||||
TagFetch(context.Context, *Empty) (*FriendTagsReply, error)
|
||||
//获取标签成员
|
||||
TagMemberFetch(context.Context, *IdentRequest) (*PartFriendReply, error)
|
||||
//创建标签
|
||||
TagDoCreate(context.Context, *TagDoCreateRequest) (*StatusReply, error)
|
||||
//更新标签成员
|
||||
TagDoUpdate(context.Context, *TagDoUpdateRequest) (*StatusReply, error)
|
||||
mustEmbedUnimplementedFriendServer()
|
||||
// 搜索
|
||||
Search(context.Context, *protobuf.SearchRequest) (*PartFriendReply, error)
|
||||
// 获取好友列表
|
||||
Fetch(context.Context, *protobuf.VersionRequest) (*FriendsReply, error)
|
||||
// 获取用户信息卡片
|
||||
Get(context.Context, *protobuf.IdentRequest) (*protobuf.RelationItem, error)
|
||||
// 修改好友备注名称,如果要清除备注,直接nickname传空值
|
||||
ModifyNickname(context.Context, *ModifyNicknameRequest) (*protobuf.DataStatusReply, error)
|
||||
// 受你欢迎的,置顶
|
||||
DoPopular(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error)
|
||||
// 取消受欢迎的,取消置顶
|
||||
UndoPopular(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error)
|
||||
// 删除好友
|
||||
Delete(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error)
|
||||
// 好友申请列表
|
||||
ApplyFetch(context.Context, *protobuf.VersionRequest) (*ApplyFetchReply, error)
|
||||
// 好友申请详情
|
||||
ApplyGet(context.Context, *protobuf.IdentRequest) (*FriendApplyGetReply, error)
|
||||
// 好友申请
|
||||
ApplyDo(context.Context, *ApplyDoRequest) (*protobuf.DataStatusReply, error)
|
||||
// 好友申请Do:留言
|
||||
ApplyDoMessage(context.Context, *ApplyMessageRequest) (*protobuf.DataStatusReply, error)
|
||||
// 好友申请Do:确认
|
||||
ApplyDoPass(context.Context, *ApplyDoPassRequest) (*protobuf.DataStatusReply, error)
|
||||
// 好友申请Do:拒绝
|
||||
ApplyDoReject(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error)
|
||||
// 获取标签列表
|
||||
TagFetch(context.Context, *protobuf.Empty) (*FriendTagsReply, error)
|
||||
// 获取标签成员
|
||||
TagMemberFetch(context.Context, *protobuf.IdentRequest) (*PartFriendReply, error)
|
||||
// 创建标签
|
||||
TagDoCreate(context.Context, *TagDoCreateRequest) (*protobuf.DataStatusReply, error)
|
||||
// 更新标签成员
|
||||
TagDoUpdate(context.Context, *TagDoUpdateRequest) (*protobuf.DataStatusReply, error)
|
||||
}
|
||||
|
||||
// UnimplementedFriendServer must be embedded to have
|
||||
// UnimplementedFriendServer should be embedded to have
|
||||
// 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{}
|
||||
|
||||
func (UnimplementedFriendServer) Search(context.Context, *SearchRequest) (*PartFriendReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Search not implemented")
|
||||
func (UnimplementedFriendServer) Search(context.Context, *protobuf.SearchRequest) (*PartFriendReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Search not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) Fetch(context.Context, *VersionRequest) (*FriendsReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Fetch not implemented")
|
||||
func (UnimplementedFriendServer) Fetch(context.Context, *protobuf.VersionRequest) (*FriendsReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Fetch not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) Get(context.Context, *IdentRequest) (*RelationItem, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
func (UnimplementedFriendServer) Get(context.Context, *protobuf.IdentRequest) (*protobuf.RelationItem, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) ModifyNickname(context.Context, *ModifyNicknameRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ModifyNickname not implemented")
|
||||
func (UnimplementedFriendServer) ModifyNickname(context.Context, *ModifyNicknameRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ModifyNickname not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) DoPopular(context.Context, *IdentRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DoPopular not implemented")
|
||||
func (UnimplementedFriendServer) DoPopular(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DoPopular not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) UndoPopular(context.Context, *IdentRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UndoPopular not implemented")
|
||||
func (UnimplementedFriendServer) UndoPopular(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UndoPopular not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) Delete(context.Context, *IdentRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
func (UnimplementedFriendServer) Delete(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) ApplyFetch(context.Context, *VersionRequest) (*ApplyFetchReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ApplyFetch not implemented")
|
||||
func (UnimplementedFriendServer) ApplyFetch(context.Context, *protobuf.VersionRequest) (*ApplyFetchReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ApplyFetch not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) ApplyGet(context.Context, *IdentRequest) (*FriendApplyGetReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ApplyGet not implemented")
|
||||
func (UnimplementedFriendServer) ApplyGet(context.Context, *protobuf.IdentRequest) (*FriendApplyGetReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ApplyGet not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) ApplyDo(context.Context, *ApplyDoRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ApplyDo not implemented")
|
||||
func (UnimplementedFriendServer) ApplyDo(context.Context, *ApplyDoRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ApplyDo not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) ApplyDoMessage(context.Context, *ApplyMessageRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ApplyDoMessage not implemented")
|
||||
func (UnimplementedFriendServer) ApplyDoMessage(context.Context, *ApplyMessageRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ApplyDoMessage not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) ApplyDoPass(context.Context, *ApplyDoPassRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ApplyDoPass not implemented")
|
||||
func (UnimplementedFriendServer) ApplyDoPass(context.Context, *ApplyDoPassRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ApplyDoPass not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) ApplyDoReject(context.Context, *IdentRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ApplyDoReject not implemented")
|
||||
func (UnimplementedFriendServer) ApplyDoReject(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ApplyDoReject not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) TagFetch(context.Context, *Empty) (*FriendTagsReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method TagFetch not implemented")
|
||||
func (UnimplementedFriendServer) TagFetch(context.Context, *protobuf.Empty) (*FriendTagsReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method TagFetch not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) TagMemberFetch(context.Context, *IdentRequest) (*PartFriendReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method TagMemberFetch not implemented")
|
||||
func (UnimplementedFriendServer) TagMemberFetch(context.Context, *protobuf.IdentRequest) (*PartFriendReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method TagMemberFetch not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) TagDoCreate(context.Context, *TagDoCreateRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method TagDoCreate not implemented")
|
||||
func (UnimplementedFriendServer) TagDoCreate(context.Context, *TagDoCreateRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method TagDoCreate not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) TagDoUpdate(context.Context, *TagDoUpdateRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method TagDoUpdate not implemented")
|
||||
func (UnimplementedFriendServer) TagDoUpdate(context.Context, *TagDoUpdateRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method TagDoUpdate not implemented")
|
||||
}
|
||||
func (UnimplementedFriendServer) mustEmbedUnimplementedFriendServer() {}
|
||||
func (UnimplementedFriendServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedFriendServer) testEmbeddedByValue() {}
|
||||
|
||||
// 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
|
||||
@@ -370,7 +369,7 @@ type UnsafeFriendServer interface {
|
||||
}
|
||||
|
||||
func RegisterFriendServer(s grpc.ServiceRegistrar, srv FriendServer) {
|
||||
// If the following call pancis, it indicates UnimplementedFriendServer was
|
||||
// If the following call panics, it indicates UnimplementedFriendServer was
|
||||
// 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.
|
||||
@@ -381,7 +380,7 @@ func RegisterFriendServer(s grpc.ServiceRegistrar, srv FriendServer) {
|
||||
}
|
||||
|
||||
func _Friend_Search_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SearchRequest)
|
||||
in := new(protobuf.SearchRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -393,13 +392,13 @@ func _Friend_Search_Handler(srv interface{}, ctx context.Context, dec func(inter
|
||||
FullMethod: Friend_Search_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FriendServer).Search(ctx, req.(*SearchRequest))
|
||||
return srv.(FriendServer).Search(ctx, req.(*protobuf.SearchRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Friend_Fetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(VersionRequest)
|
||||
in := new(protobuf.VersionRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -411,13 +410,13 @@ func _Friend_Fetch_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||
FullMethod: Friend_Fetch_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FriendServer).Fetch(ctx, req.(*VersionRequest))
|
||||
return srv.(FriendServer).Fetch(ctx, req.(*protobuf.VersionRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Friend_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -429,7 +428,7 @@ func _Friend_Get_Handler(srv interface{}, ctx context.Context, dec func(interfac
|
||||
FullMethod: Friend_Get_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FriendServer).Get(ctx, req.(*IdentRequest))
|
||||
return srv.(FriendServer).Get(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -453,7 +452,7 @@ func _Friend_ModifyNickname_Handler(srv interface{}, ctx context.Context, dec fu
|
||||
}
|
||||
|
||||
func _Friend_DoPopular_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -465,13 +464,13 @@ func _Friend_DoPopular_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
FullMethod: Friend_DoPopular_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FriendServer).DoPopular(ctx, req.(*IdentRequest))
|
||||
return srv.(FriendServer).DoPopular(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Friend_UndoPopular_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -483,13 +482,13 @@ func _Friend_UndoPopular_Handler(srv interface{}, ctx context.Context, dec func(
|
||||
FullMethod: Friend_UndoPopular_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FriendServer).UndoPopular(ctx, req.(*IdentRequest))
|
||||
return srv.(FriendServer).UndoPopular(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Friend_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -501,13 +500,13 @@ func _Friend_Delete_Handler(srv interface{}, ctx context.Context, dec func(inter
|
||||
FullMethod: Friend_Delete_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FriendServer).Delete(ctx, req.(*IdentRequest))
|
||||
return srv.(FriendServer).Delete(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Friend_ApplyFetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(VersionRequest)
|
||||
in := new(protobuf.VersionRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -519,13 +518,13 @@ func _Friend_ApplyFetch_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
FullMethod: Friend_ApplyFetch_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FriendServer).ApplyFetch(ctx, req.(*VersionRequest))
|
||||
return srv.(FriendServer).ApplyFetch(ctx, req.(*protobuf.VersionRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Friend_ApplyGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -537,7 +536,7 @@ func _Friend_ApplyGet_Handler(srv interface{}, ctx context.Context, dec func(int
|
||||
FullMethod: Friend_ApplyGet_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FriendServer).ApplyGet(ctx, req.(*IdentRequest))
|
||||
return srv.(FriendServer).ApplyGet(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -597,7 +596,7 @@ func _Friend_ApplyDoPass_Handler(srv interface{}, ctx context.Context, dec func(
|
||||
}
|
||||
|
||||
func _Friend_ApplyDoReject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -609,13 +608,13 @@ func _Friend_ApplyDoReject_Handler(srv interface{}, ctx context.Context, dec fun
|
||||
FullMethod: Friend_ApplyDoReject_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FriendServer).ApplyDoReject(ctx, req.(*IdentRequest))
|
||||
return srv.(FriendServer).ApplyDoReject(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Friend_TagFetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(Empty)
|
||||
in := new(protobuf.Empty)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -627,13 +626,13 @@ func _Friend_TagFetch_Handler(srv interface{}, ctx context.Context, dec func(int
|
||||
FullMethod: Friend_TagFetch_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FriendServer).TagFetch(ctx, req.(*Empty))
|
||||
return srv.(FriendServer).TagFetch(ctx, req.(*protobuf.Empty))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Friend_TagMemberFetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -645,7 +644,7 @@ func _Friend_TagMemberFetch_Handler(srv interface{}, ctx context.Context, dec fu
|
||||
FullMethod: Friend_TagMemberFetch_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FriendServer).TagMemberFetch(ctx, req.(*IdentRequest))
|
||||
return srv.(FriendServer).TagMemberFetch(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -763,5 +762,5 @@ var Friend_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "friend.proto",
|
||||
Metadata: "module/social/relation/proto/friend.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user