Documentation ¶
Index ¶
- Constants
- Variables
- type RelationServiceServer
- func (s *RelationServiceServer) BatchGetRelation(ctx context.Context, req *pb.BatchGetRelationRequest) (*pb.BatchGetRelationReply, error)
- func (s *RelationServiceServer) Follow(ctx context.Context, req *pb.FollowRequest) (*pb.FollowReply, error)
- func (s *RelationServiceServer) GetFollowerList(ctx context.Context, req *pb.FollowerListRequest) (*pb.FollowerListReply, error)
- func (s *RelationServiceServer) GetFollowingList(ctx context.Context, req *pb.FollowingListRequest) (*pb.FollowingListReply, error)
- func (s *RelationServiceServer) Unfollow(ctx context.Context, req *pb.UnfollowRequest) (*pb.UnfollowReply, error)
Constants ¶
View Source
const ( // FollowStatusNormal 关注状态-正常 FollowStatusNormal int = 1 // 正常 // FollowStatusDelete 关注状态-删除 FollowStatusDelete = 0 // 删除 )
View Source
const (
// MaxID 最大id
MaxID = 0xffffffffffff
)
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewRelationServiceServer)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type RelationServiceServer ¶
type RelationServiceServer struct { pb.UnimplementedRelationServiceServer // contains filtered or unexported fields }
func NewRelationServiceServer ¶
func NewRelationServiceServer(followerRepo repo.UserFollowerRepo, followingRepo repo.UserFollowingRepo) *RelationServiceServer
func (*RelationServiceServer) BatchGetRelation ¶
func (s *RelationServiceServer) BatchGetRelation(ctx context.Context, req *pb.BatchGetRelationRequest) (*pb.BatchGetRelationReply, error)
func (*RelationServiceServer) Follow ¶
func (s *RelationServiceServer) Follow(ctx context.Context, req *pb.FollowRequest) (*pb.FollowReply, error)
Follow user
func (*RelationServiceServer) GetFollowerList ¶
func (s *RelationServiceServer) GetFollowerList(ctx context.Context, req *pb.FollowerListRequest) (*pb.FollowerListReply, error)
func (*RelationServiceServer) GetFollowingList ¶
func (s *RelationServiceServer) GetFollowingList(ctx context.Context, req *pb.FollowingListRequest) (*pb.FollowingListReply, error)
func (*RelationServiceServer) Unfollow ¶
func (s *RelationServiceServer) Unfollow(ctx context.Context, req *pb.UnfollowRequest) (*pb.UnfollowReply, error)
Unfollow
Click to show internal directories.
Click to hide internal directories.