2026-08-09 10:43:45 +08:00
|
|
|
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
|
|
|
|
package server
|
|
|
|
|
|
|
|
|
|
import (
|
2026-08-09 12:41:08 +08:00
|
|
|
"bsm/full/module/social/relation/internal/logic/match"
|
|
|
|
|
pb "bsm/full/module/social/relation/pb"
|
2026-08-09 20:14:57 +08:00
|
|
|
"context"
|
2026-08-09 10:43:45 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 执行通过,加为好友
|
2026-08-09 20:14:57 +08:00
|
|
|
func (s *MatchServer) DoJoin(ctx context.Context, in *pb.IdentRequest) (*pb.DataStatusReply, error) {
|
2026-08-09 10:43:45 +08:00
|
|
|
return match.DoJoin(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 执行忽略
|
2026-08-09 20:14:57 +08:00
|
|
|
func (s *MatchServer) DoIgnore(ctx context.Context, in *pb.IdentRequest) (*pb.DataStatusReply, error) {
|
2026-08-09 10:43:45 +08:00
|
|
|
return match.DoIgnore(ctx, in)
|
|
|
|
|
}
|