refactor: localize protobuf definitions
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user