Documentation
¶
Index ¶
Constants ¶
View Source
const ( FOLLOW = 1 CANCEL = 2 )
Variables ¶
View Source
var ( ErrIvdAct = errors.New("未定义操作") ErrIvdFolUsr = errors.New("关注用户不存在") )
View Source
var (
ErrUserNotExist = errors.New("用户不存在或已注销")
)
Functions ¶
func PostFollowAction ¶
Types ¶
type FollowList ¶
func QueryFollowList ¶
func QueryFollowList(userId int64) (*FollowList, error)
type FollowerList ¶
func QueryFollowerList ¶
func QueryFollowerList(userId int64) (*FollowerList, error)
type PostFollowActionFlow ¶
type PostFollowActionFlow struct {
// contains filtered or unexported fields
}
func NewPostFollowActionFlow ¶
func NewPostFollowActionFlow(userId int64, userToId int64, actionType int) *PostFollowActionFlow
func (*PostFollowActionFlow) Do ¶
func (p *PostFollowActionFlow) Do() error
type QueryFollowListFlow ¶
type QueryFollowListFlow struct { *FollowList // contains filtered or unexported fields }
func NewQueryFollowListFlow ¶
func NewQueryFollowListFlow(userId int64) *QueryFollowListFlow
func (*QueryFollowListFlow) Do ¶
func (q *QueryFollowListFlow) Do() (*FollowList, error)
type QueryFollowerListFlow ¶
type QueryFollowerListFlow struct { *FollowerList // contains filtered or unexported fields }
func NewQueryFollowerListFlow ¶
func NewQueryFollowerListFlow(userId int64) *QueryFollowerListFlow
func (*QueryFollowerListFlow) Do ¶
func (q *QueryFollowerListFlow) Do() (*FollowerList, error)
Click to show internal directories.
Click to hide internal directories.