service

package
v0.0.0-...-cb3206a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 7 Imported by: 0

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.FollowListRequest) ([]*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.FollowerListRequest) ([]*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

RelationAction implement follow and unfollow action 如果actionType等于1,表示当前用户关注其他用户, 当前用户的关注总数增加,其他用户的粉丝总数增加, 新建一条关注记录

如果actionType等于2,表示当前用户取消关注其他用户 当前用户的关注总数减少,其他用户的粉丝总数减少, 删除该关注记录

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL