mongodb

package
v0.0.0-...-671c73a Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFavoriteInfo

func AddFavoriteInfo(ctx context.Context, uid, vid int64) error

func DeleteFavoriteInfo

func DeleteFavoriteInfo(ctx context.Context, uid, vid int64) error

func GetFavoriteInfo

func GetFavoriteInfo(ctx context.Context, uid, toUid int64) (bool, error)

func GetFavoriteList

func GetFavoriteList(ctx context.Context, uid int64) ([]int64, error)

Types

type FavoriteMeta

type FavoriteMeta struct {
	FavoriteList []int64 `bson:"favorite_list"`
}

Jump to

Keyboard shortcuts

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