refactor: localize protobuf definitions

This commit is contained in:
2026-08-09 20:14:57 +08:00
parent 9f6f318bbb
commit 5ea45a76fe
429 changed files with 54058 additions and 61623 deletions

View File

@@ -2,9 +2,9 @@
package server
import (
"context"
"bsm/full/module/social/relation/internal/logic/follow"
pb "bsm/full/module/social/relation/pb"
"context"
)
type FollowServer struct {
@@ -16,17 +16,17 @@ func NewFollowServer() *FollowServer {
}
// 执行关注
func (s *FollowServer) Doing(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
func (s *FollowServer) Doing(ctx context.Context, in *pb.IdentRequest) (*pb.DataStatusReply, error) {
return follow.Doing(ctx, in)
}
// 撤销关注
func (s *FollowServer) Undo(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
func (s *FollowServer) Undo(ctx context.Context, in *pb.IdentRequest) (*pb.DataStatusReply, error) {
return follow.Undo(ctx, in)
}
// 关注状态
func (s *FollowServer) State(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
func (s *FollowServer) State(ctx context.Context, in *pb.IdentRequest) (*pb.DataStatusReply, error) {
return follow.State(ctx, in)
}