refactor: reorganize modules and add Linux build tooling
This commit is contained in:
36
module/social/relation/internal/server/match_server.go
Normal file
36
module/social/relation/internal/server/match_server.go
Normal file
@@ -0,0 +1,36 @@
|
||||
// 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)
|
||||
}
|
||||
Reference in New Issue
Block a user