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

37 lines
915 B
Go

// Code generated by protoc-gen-slc. DO NOT EDIT.
package server
import (
"context"
"bsm/full/module/social/relation/internal/logic/follow"
pb "bsm/full/module/social/relation/pb"
)
type FollowServer struct {
pb.UnimplementedFollowServer
}
func NewFollowServer() *FollowServer {
return &FollowServer{}
}
// 执行关注
func (s *FollowServer) Doing(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
return follow.Doing(ctx, in)
}
// 撤销关注
func (s *FollowServer) Undo(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
return follow.Undo(ctx, in)
}
// 关注状态
func (s *FollowServer) State(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
return follow.State(ctx, in)
}
// 获取关注列表
func (s *FollowServer) Fetch(ctx context.Context, in *pb.FetchRequest) (*pb.FetchRelationItemReply, error) {
return follow.Fetch(ctx, in)
}