package com.ruoyi.message.frequency.interactionmessagerecord.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.message.controller.resp.InteractionMessagePageResp;
import com.ruoyi.message.frequency.interactionmessagerecord.entity.InteractionMessageRecord;
import com.ruoyi.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 互动消息记录Mapper接口
 * 
 * @author liwenlong
 * @date 2023-10-17
 */
public interface InteractionMessageRecordMapper  extends BaseMapper<InteractionMessageRecord>
{
    /**
     * 查询互动消息记录
     * 
     * @param id 互动消息记录主键
     * @return 互动消息记录
     */
    public InteractionMessageRecord selectInteractionMessageRecordById(Long id);

    /**
     * 查询互动消息记录列表
     * 
     * @param interactionMessageRecord 互动消息记录
     * @return 互动消息记录集合
     */
    public List<InteractionMessageRecord> selectInteractionMessageRecordList(InteractionMessageRecord interactionMessageRecord);

    /**
     * 新增互动消息记录
     * 
     * @param interactionMessageRecord 互动消息记录
     * @return 结果
     */
    public int insertInteractionMessageRecord(InteractionMessageRecord interactionMessageRecord);

    /**
     * 修改互动消息记录
     * 
     * @param interactionMessageRecord 互动消息记录
     * @return 结果
     */
    public int updateInteractionMessageRecord(InteractionMessageRecord interactionMessageRecord);

    /**
     * 删除互动消息记录
     * 
     * @param id 互动消息记录主键
     * @return 结果
     */
    public int deleteInteractionMessageRecordById(Long id);

    /**
     * 批量删除互动消息记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteInteractionMessageRecordByIds(Long[] ids);

    Page<InteractionMessagePageResp> interactionMessagePage(@Param("page") Page<Object> objectPage, @Param("userVo") UserVo userVo);
}
