user_info

package
v0.0.0-...-6db71ed Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 3 Imported by: 0

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

func PostFollowAction(userId, userToId int64, actionType int) error

Types

type FollowList

type FollowList struct {
	UserList []*models.UserInfo `json:"user_list"`
}

func QueryFollowList

func QueryFollowList(userId int64) (*FollowList, error)

type FollowerList

type FollowerList struct {
	UserList []*models.UserInfo `json:"user_list"`
}

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

Jump to

Keyboard shortcuts

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