biz

package
v0.0.0-...-d80f745 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Biz

type Biz struct {
	Relation RelationBiz
}

func New

func New() Biz

type RelationBiz

type RelationBiz interface {
	// follower对followee的关注
	UserFollow(ctx context.Context, follower, followee uint64) error
	// follower取消对followee关注
	UserUnFollow(ctx context.Context, follower, followee uint64) error
	// 获取用户的关注列表
	GetUserFollowingList(ctx context.Context, uid uint64, offset uint64, limit int) ([]uint64, model.ListResult, error)
	// 获取用户的粉丝列表
	GetUserFansList(ctx context.Context, uid uint64, offset uint64, limit int) ([]uint64, model.ListResult, error)
	// 获取用户关注数
	GetUserFollowingCount(ctx context.Context, uid uint64) (uint64, error)
	// 获取用户粉丝数
	GetUserFanCount(ctx context.Context, uid uint64) (uint64, error)
}

关注相关

func NewRelationBiz

func NewRelationBiz() RelationBiz

Jump to

Keyboard shortcuts

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