refactor: localize protobuf definitions
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/social/relation/internal/logic/match"
|
||||
pb "bsm/full/module/social/relation/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type MatchServer struct {
|
||||
@@ -26,11 +26,11 @@ func (s *MatchServer) Get(ctx context.Context, in *pb.IdentRequest) (*pb.Relatio
|
||||
}
|
||||
|
||||
// 执行通过,加为好友
|
||||
func (s *MatchServer) DoJoin(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
func (s *MatchServer) DoJoin(ctx context.Context, in *pb.IdentRequest) (*pb.DataStatusReply, error) {
|
||||
return match.DoJoin(ctx, in)
|
||||
}
|
||||
|
||||
// 执行忽略
|
||||
func (s *MatchServer) DoIgnore(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
func (s *MatchServer) DoIgnore(ctx context.Context, in *pb.IdentRequest) (*pb.DataStatusReply, error) {
|
||||
return match.DoIgnore(ctx, in)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user