Documentation
¶
Index ¶
- type Follow
- func (f *Follow) CreateFollow(follow *model.Follow) error
- func (f *Follow) FindRecord(userId, followerId int64) (*model.Follow, error)
- func (f *Follow) GetFollowIdList(userId int64) ([]int64, error)
- func (f *Follow) GetFollowNumsByUserId(userId int64) (int64, error)
- func (f *Follow) GetFollowerIdList(userId int64) ([]int64, error)
- func (f *Follow) GetFollowerNumsByUserId(userId int64) (int64, error)
- func (f *Follow) GetFriendsList(userId int64) ([]int64, error)
- func (f *Follow) UpdateFollow(userId, followId int64, actionType int8) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Follow ¶
type Follow struct {
// contains filtered or unexported fields
}
func (*Follow) CreateFollow ¶
CreateFollow creates a follow record.
func (*Follow) FindRecord ¶
FindRecord to find if there's a record between user and another user.
func (*Follow) GetFollowIdList ¶
GetFollowIdList gets followingId list.
func (*Follow) GetFollowNumsByUserId ¶
GetFollowNumsByUserId gets following nums by userId.
func (*Follow) GetFollowerIdList ¶
GetFollowerIdList gets followerId list.
func (*Follow) GetFollowerNumsByUserId ¶
GetFollowerNumsByUserId gets follower nums by userId.
func (*Follow) GetFriendsList ¶
GetFriendsList gets friends list.
Click to show internal directories.
Click to hide internal directories.