refactor: localize protobuf definitions

This commit is contained in:
2026-08-09 20:14:57 +08:00
parent 9f6f318bbb
commit 5ea45a76fe
429 changed files with 54058 additions and 61623 deletions

View File

@@ -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)
}