Files
full/module/social/relation/internal/server/match_server.go

37 lines
929 B
Go

// Code generated by protoc-gen-slc. DO NOT EDIT.
package server
import (
"context"
"bsm/full/module/social/relation/internal/logic/match"
pb "bsm/full/module/social/relation/pb"
)
type MatchServer struct {
pb.UnimplementedMatchServer
}
func NewMatchServer() *MatchServer {
return &MatchServer{}
}
// 获取匹配列表
func (s *MatchServer) Fetch(ctx context.Context, in *pb.FetchRequest) (*pb.FetchRelationItemReply, error) {
return match.Fetch(ctx, in)
}
// 获取匹配详情
func (s *MatchServer) Get(ctx context.Context, in *pb.IdentRequest) (*pb.RelationItem, error) {
return match.Get(ctx, in)
}
// 执行通过,加为好友
func (s *MatchServer) DoJoin(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
return match.DoJoin(ctx, in)
}
// 执行忽略
func (s *MatchServer) DoIgnore(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
return match.DoIgnore(ctx, in)
}