feat: 添加了列出点赞视频的功能

This commit is contained in:
Leon
2025-12-26 18:23:55 +08:00
parent ce0aec6110
commit a21a79a2be
4 changed files with 40 additions and 0 deletions

View File

@@ -64,3 +64,7 @@ func (s *LikeService) Unlike(ctx context.Context, like *Like) error {
func (s *LikeService) IsLiked(ctx context.Context, videoID, accountID uint) (bool, error) {
return s.repo.IsLiked(ctx, videoID, accountID)
}
func (s *LikeService) ListLikedVideos(ctx context.Context, accountID uint) ([]Video, error) {
return s.repo.ListLikedVideos(ctx, accountID)
}