Documentation ¶
Index ¶
- Constants
- Variables
- type RelationService
- func (s *RelationService) GetFollowRelationList(ctx context.Context, req *pb.RelationFollowListRequest) (*pb.RelationFollowListReply, error)
- func (s *RelationService) GetFollowerRelationList(ctx context.Context, req *pb.RelationFollowerListRequest) (*pb.RelationFollowerListReply, error)
- func (s *RelationService) GetFriendRelationList(ctx context.Context, req *pb.RelationFriendListRequest) (*pb.RelationFriendListReply, error)
- func (s *RelationService) IsFollow(ctx context.Context, req *pb.IsFollowRequest) (*pb.IsFollowReply, error)
- func (s *RelationService) RelationAction(ctx context.Context, req *pb.RelationActionRequest) (*pb.RelationActionReply, error)
Constants ¶
View Source
const ( CodeSuccess = 0 CodeFailed = 300 )
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewRelationService)
Functions ¶
This section is empty.
Types ¶
type RelationService ¶
type RelationService struct { pb.UnimplementedRelationServiceServer // contains filtered or unexported fields }
func NewRelationService ¶
func NewRelationService(uc *biz.RelationUseCase, logger log.Logger) *RelationService
func (*RelationService) GetFollowRelationList ¶
func (s *RelationService) GetFollowRelationList(ctx context.Context, req *pb.RelationFollowListRequest) (*pb.RelationFollowListReply, error)
GetFollowRelationList 获取关注列表
func (*RelationService) GetFollowerRelationList ¶
func (s *RelationService) GetFollowerRelationList(ctx context.Context, req *pb.RelationFollowerListRequest) (*pb.RelationFollowerListReply, error)
GetFollowerRelationList 获取粉丝列表
func (*RelationService) GetFriendRelationList ¶
func (s *RelationService) GetFriendRelationList(ctx context.Context, req *pb.RelationFriendListRequest) (*pb.RelationFriendListReply, error)
GetFriendRelationList 获取粉丝列表
func (*RelationService) IsFollow ¶
func (s *RelationService) IsFollow(ctx context.Context, req *pb.IsFollowRequest) (*pb.IsFollowReply, error)
func (*RelationService) RelationAction ¶
func (s *RelationService) RelationAction(ctx context.Context, req *pb.RelationActionRequest) (*pb.RelationActionReply, error)
RelationAction 关注/取消关注
Click to show internal directories.
Click to hide internal directories.