package cn.bunny.services.mapper; import cn.bunny.dao.entity.system.MessageReceived; import cn.bunny.dao.vo.system.message.MessageReceivedWithUserVo; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** *

* Mapper 接口 *

* * @author Bunny * @since 2024-10-31 */ @Mapper public interface MessageReceivedMapper extends BaseMapper { /** * 根据发送者id批量删除消息接受者 * * @param userIds 发送用户ID */ void deleteBatchIdsWithPhysics(List userIds); /** * 根据消息Id物理删除接受者消息 * * @param ids 消息id */ void deleteBatchIdsByMessageIdsWithPhysics(List ids); /** * 根据发送者id批量删除消息接受者 * * @param messageId 消息id * @return 消息接收人用户名等信息 */ List selectUserinfoListByMessageId(Long messageId); /** * 根据当前用户id删除消息接受表中数据 * * @param ids 消息列表 * @param userId 用户id */ void deleteBatchIdsByMessageIdsAndUserIdWithPhysics(List ids, Long userId); }