refactor: localize protobuf definitions
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/social/relation/internal/logic/friend"
|
||||
pb "bsm/full/module/social/relation/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type FriendServer struct {
|
||||
@@ -31,22 +31,22 @@ func (s *FriendServer) Get(ctx context.Context, in *pb.IdentRequest) (*pb.Relati
|
||||
}
|
||||
|
||||
// 修改好友备注名称,如果要清除备注,直接nickname传空值
|
||||
func (s *FriendServer) ModifyNickname(ctx context.Context, in *pb.ModifyNicknameRequest) (*pb.StatusReply, error) {
|
||||
func (s *FriendServer) ModifyNickname(ctx context.Context, in *pb.ModifyNicknameRequest) (*pb.DataStatusReply, error) {
|
||||
return friend.ModifyNickname(ctx, in)
|
||||
}
|
||||
|
||||
// 受你欢迎的,置顶
|
||||
func (s *FriendServer) DoPopular(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
func (s *FriendServer) DoPopular(ctx context.Context, in *pb.IdentRequest) (*pb.DataStatusReply, error) {
|
||||
return friend.DoPopular(ctx, in)
|
||||
}
|
||||
|
||||
// 取消受欢迎的,取消置顶
|
||||
func (s *FriendServer) UndoPopular(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
func (s *FriendServer) UndoPopular(ctx context.Context, in *pb.IdentRequest) (*pb.DataStatusReply, error) {
|
||||
return friend.UndoPopular(ctx, in)
|
||||
}
|
||||
|
||||
// 删除好友
|
||||
func (s *FriendServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
func (s *FriendServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.DataStatusReply, error) {
|
||||
return friend.Delete(ctx, in)
|
||||
}
|
||||
|
||||
@@ -61,22 +61,22 @@ func (s *FriendServer) ApplyGet(ctx context.Context, in *pb.IdentRequest) (*pb.F
|
||||
}
|
||||
|
||||
// 好友申请
|
||||
func (s *FriendServer) ApplyDo(ctx context.Context, in *pb.ApplyDoRequest) (*pb.StatusReply, error) {
|
||||
func (s *FriendServer) ApplyDo(ctx context.Context, in *pb.ApplyDoRequest) (*pb.DataStatusReply, error) {
|
||||
return friend.ApplyDo(ctx, in)
|
||||
}
|
||||
|
||||
// 好友申请Do:留言
|
||||
func (s *FriendServer) ApplyDoMessage(ctx context.Context, in *pb.ApplyMessageRequest) (*pb.StatusReply, error) {
|
||||
func (s *FriendServer) ApplyDoMessage(ctx context.Context, in *pb.ApplyMessageRequest) (*pb.DataStatusReply, error) {
|
||||
return friend.ApplyDoMessage(ctx, in)
|
||||
}
|
||||
|
||||
// 好友申请Do:确认
|
||||
func (s *FriendServer) ApplyDoPass(ctx context.Context, in *pb.ApplyDoPassRequest) (*pb.StatusReply, error) {
|
||||
func (s *FriendServer) ApplyDoPass(ctx context.Context, in *pb.ApplyDoPassRequest) (*pb.DataStatusReply, error) {
|
||||
return friend.ApplyDoPass(ctx, in)
|
||||
}
|
||||
|
||||
// 好友申请Do:拒绝
|
||||
func (s *FriendServer) ApplyDoReject(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
func (s *FriendServer) ApplyDoReject(ctx context.Context, in *pb.IdentRequest) (*pb.DataStatusReply, error) {
|
||||
return friend.ApplyDoReject(ctx, in)
|
||||
}
|
||||
|
||||
@@ -91,11 +91,11 @@ func (s *FriendServer) TagMemberFetch(ctx context.Context, in *pb.IdentRequest)
|
||||
}
|
||||
|
||||
// 创建标签
|
||||
func (s *FriendServer) TagDoCreate(ctx context.Context, in *pb.TagDoCreateRequest) (*pb.StatusReply, error) {
|
||||
func (s *FriendServer) TagDoCreate(ctx context.Context, in *pb.TagDoCreateRequest) (*pb.DataStatusReply, error) {
|
||||
return friend.TagDoCreate(ctx, in)
|
||||
}
|
||||
|
||||
// 更新标签成员
|
||||
func (s *FriendServer) TagDoUpdate(ctx context.Context, in *pb.TagDoUpdateRequest) (*pb.StatusReply, error) {
|
||||
func (s *FriendServer) TagDoUpdate(ctx context.Context, in *pb.TagDoUpdateRequest) (*pb.DataStatusReply, error) {
|
||||
return friend.TagDoUpdate(ctx, in)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user