Documentation ¶
Index ¶
- func FavoriteAction(ctx context.Context, userId, videoId int64, actionType int32) error
- func GetFavoriteInfo(ctx context.Context, userId int64, videoId int64) (db.Favorite, error)
- func GetFavoriteUserIdList(ctx context.Context, videoId int64) ([]*db.Favorite, error)
- func GetFavoriteVideoIdList(ctx context.Context, userId int64) ([]db.Favorite, error)
- func GetVideoFavCountByVideoId(ctx context.Context, videoId int64) (int64, error)
- func InsertFavorite(ctx context.Context, fav *db.Favorite) error
- func QueryUserVideo(ctx context.Context, userId int64, videoId int64) (bool, error)
- func UpdateFavorite(ctx context.Context, fav *db.Favorite) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FavoriteAction ¶
func GetFavoriteInfo ¶
根据userId,videoId查询是否含有本条点赞信息
func GetFavoriteUserIdList ¶
根据videoId获取点赞userId
func GetFavoriteVideoIdList ¶
根据userId查询所属点赞全部videoId
func QueryUserVideo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.