refactor: reorganize modules and add Linux build tooling

This commit is contained in:
2026-08-09 12:41:08 +08:00
parent 86024fa81d
commit 5cc5fd92ed
1461 changed files with 4054 additions and 4724 deletions

View 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/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)
}