102 lines
3.1 KiB
Go
102 lines
3.1 KiB
Go
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
"bsm/full/module/social/relation/internal/logic/friend"
|
|
pb "bsm/full/module/social/relation/pb"
|
|
)
|
|
|
|
type FriendServer struct {
|
|
pb.UnimplementedFriendServer
|
|
}
|
|
|
|
func NewFriendServer() *FriendServer {
|
|
return &FriendServer{}
|
|
}
|
|
|
|
// 搜索
|
|
func (s *FriendServer) Search(ctx context.Context, in *pb.SearchRequest) (*pb.PartFriendReply, error) {
|
|
return friend.Search(ctx, in)
|
|
}
|
|
|
|
// 获取好友列表
|
|
func (s *FriendServer) Fetch(ctx context.Context, in *pb.VersionRequest) (*pb.FriendsReply, error) {
|
|
return friend.Fetch(ctx, in)
|
|
}
|
|
|
|
// 获取用户信息卡片
|
|
func (s *FriendServer) Get(ctx context.Context, in *pb.IdentRequest) (*pb.RelationItem, error) {
|
|
return friend.Get(ctx, in)
|
|
}
|
|
|
|
// 修改好友备注名称,如果要清除备注,直接nickname传空值
|
|
func (s *FriendServer) ModifyNickname(ctx context.Context, in *pb.ModifyNicknameRequest) (*pb.StatusReply, error) {
|
|
return friend.ModifyNickname(ctx, in)
|
|
}
|
|
|
|
// 受你欢迎的,置顶
|
|
func (s *FriendServer) DoPopular(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
|
return friend.DoPopular(ctx, in)
|
|
}
|
|
|
|
// 取消受欢迎的,取消置顶
|
|
func (s *FriendServer) UndoPopular(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
|
return friend.UndoPopular(ctx, in)
|
|
}
|
|
|
|
// 删除好友
|
|
func (s *FriendServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
|
return friend.Delete(ctx, in)
|
|
}
|
|
|
|
// 好友申请列表
|
|
func (s *FriendServer) ApplyFetch(ctx context.Context, in *pb.VersionRequest) (*pb.ApplyFetchReply, error) {
|
|
return friend.ApplyFetch(ctx, in)
|
|
}
|
|
|
|
// 好友申请详情
|
|
func (s *FriendServer) ApplyGet(ctx context.Context, in *pb.IdentRequest) (*pb.FriendApplyGetReply, error) {
|
|
return friend.ApplyGet(ctx, in)
|
|
}
|
|
|
|
// 好友申请
|
|
func (s *FriendServer) ApplyDo(ctx context.Context, in *pb.ApplyDoRequest) (*pb.StatusReply, error) {
|
|
return friend.ApplyDo(ctx, in)
|
|
}
|
|
|
|
// 好友申请Do:留言
|
|
func (s *FriendServer) ApplyDoMessage(ctx context.Context, in *pb.ApplyMessageRequest) (*pb.StatusReply, error) {
|
|
return friend.ApplyDoMessage(ctx, in)
|
|
}
|
|
|
|
// 好友申请Do:确认
|
|
func (s *FriendServer) ApplyDoPass(ctx context.Context, in *pb.ApplyDoPassRequest) (*pb.StatusReply, error) {
|
|
return friend.ApplyDoPass(ctx, in)
|
|
}
|
|
|
|
// 好友申请Do:拒绝
|
|
func (s *FriendServer) ApplyDoReject(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
|
return friend.ApplyDoReject(ctx, in)
|
|
}
|
|
|
|
// 获取标签列表
|
|
func (s *FriendServer) TagFetch(ctx context.Context, in *pb.Empty) (*pb.FriendTagsReply, error) {
|
|
return friend.TagFetch(ctx, in)
|
|
}
|
|
|
|
// 获取标签成员
|
|
func (s *FriendServer) TagMemberFetch(ctx context.Context, in *pb.IdentRequest) (*pb.PartFriendReply, error) {
|
|
return friend.TagMemberFetch(ctx, in)
|
|
}
|
|
|
|
// 创建标签
|
|
func (s *FriendServer) TagDoCreate(ctx context.Context, in *pb.TagDoCreateRequest) (*pb.StatusReply, error) {
|
|
return friend.TagDoCreate(ctx, in)
|
|
}
|
|
|
|
// 更新标签成员
|
|
func (s *FriendServer) TagDoUpdate(ctx context.Context, in *pb.TagDoUpdateRequest) (*pb.StatusReply, error) {
|
|
return friend.TagDoUpdate(ctx, in)
|
|
}
|