chore: 补充后端核心模块的中文注释
This commit is contained in:
@@ -62,6 +62,7 @@ func (r *LikeRepository) IsLiked(ctx context.Context, videoID, accountID uint) (
|
||||
return count > 0, nil
|
||||
}
|
||||
|
||||
// 查询给定视频 ID 列表中,哪些视频被指定账户点赞过
|
||||
func (r *LikeRepository) BatchGetLiked(ctx context.Context, videoIDs []uint, accountID uint) (map[uint]bool, error) {
|
||||
likeMap := make(map[uint]bool)
|
||||
if len(videoIDs) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user