package com.fs.live.mapper;

import com.fs.live.domain.LiveCommentPinActive;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface LiveCommentPinActiveMapper {

    int insertLiveCommentPinActive(LiveCommentPinActive row);

    int deleteById(Long id);

    int deleteByLiveIdAndMsgId(@Param("liveId") Long liveId, @Param("msgId") Long msgId);

    int countByLiveId(Long liveId);

    List<LiveCommentPinActive> selectByLiveId(Long liveId);

    LiveCommentPinActive selectByLiveIdAndMsgId(@Param("liveId") Long liveId, @Param("msgId") Long msgId);

    LiveCommentPinActive selectById(Long id);

    List<LiveCommentPinActive> selectExpired(@Param("now") Date now);

    List<LiveCommentPinActive> selectAllActive();
}
