dal

package
v0.0.0-...-7de97a6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FavoriteAction

func FavoriteAction(ctx context.Context, userId, videoId int64, actionType int32) error

func GetFavoriteInfo

func GetFavoriteInfo(ctx context.Context, userId int64, videoId int64) (db.Favorite, error)

根据userId,videoId查询是否含有本条点赞信息

func GetFavoriteUserIdList

func GetFavoriteUserIdList(ctx context.Context, videoId int64) ([]*db.Favorite, error)

根据videoId获取点赞userId

func GetFavoriteVideoIdList

func GetFavoriteVideoIdList(ctx context.Context, userId int64) ([]db.Favorite, error)

根据userId查询所属点赞全部videoId

func GetVideoFavCountByVideoId

func GetVideoFavCountByVideoId(ctx context.Context, videoId int64) (int64, error)

func InsertFavorite

func InsertFavorite(ctx context.Context, fav *db.Favorite) error

插入新的点赞数据

func QueryUserVideo

func QueryUserVideo(ctx context.Context, userId int64, videoId int64) (bool, error)

func UpdateFavorite

func UpdateFavorite(ctx context.Context, fav *db.Favorite) error

根据userId,videoId,actionType点赞或者取消赞

Types

This section is empty.

Jump to

Keyboard shortcuts

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