Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FollowListService ¶
type FollowListService struct {
// contains filtered or unexported fields
}
func NewFollowListService ¶
func NewFollowListService(ctx context.Context) *FollowListService
NewFollowListService new FollowListService
func (*FollowListService) FollowList ¶
func (s *FollowListService) FollowList(req *relation.RelationFollowListRequest) ([]*relation.User, error)
FollowList get user follow list info
type FollowerListService ¶
type FollowerListService struct {
// contains filtered or unexported fields
}
func NewFollowerListService ¶
func NewFollowerListService(ctx context.Context) *FollowerListService
NewFollowerListService new FollowerListService
func (*FollowerListService) FollowerList ¶
func (s *FollowerListService) FollowerList(req *relation.RelationFollowerListRequest) ([]*relation.User, error)
FollowerList get user follower list info
type RelationActionService ¶
type RelationActionService struct {
// contains filtered or unexported fields
}
func NewRelationActionService ¶
func NewRelationActionService(ctx context.Context) *RelationActionService
NewRelationActionService new RelationActionService
func (*RelationActionService) RelationAction ¶
func (s *RelationActionService) RelationAction(req *relation.RelationActionRequest) error
RelationAction implement follow and unfollow action 如果actionType等于1,表示当前用户关注其他用户, 当前用户的关注总数增加,其他用户的粉丝总数增加, 新建一条关注记录
如果actionType等于2,表示当前用户取消关注其他用户 当前用户的关注总数减少,其他用户的粉丝总数减少, 删除该关注记录
Click to show internal directories.
Click to hide internal directories.