feat: import services and standardize Go 1.26.5
This commit is contained in:
36
apps/social/relation/internal/server/follow_server.go
Normal file
36
apps/social/relation/internal/server/follow_server.go
Normal file
@@ -0,0 +1,36 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.apinb.com/bsm-social/relation/internal/logic/follow"
|
||||
pb "git.apinb.com/bsm-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)
|
||||
}
|
||||
Reference in New Issue
Block a user