package com.yunzhupaas.message.mapper;

import com.yunzhupaas.base.mapper.SuperMapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunzhupaas.message.entity.MessageEntity;
import com.yunzhupaas.message.entity.MessageReceiveEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 消息实例
 *
 * @author 云筑产品开发平台组
 * @version V3.1.0
 * @copyright 深圳市乐程软件有限公司（http://www.szlecheng.cn）
 * @date 2023/09/27
 */
public interface MessageMapper extends SuperMapper<MessageEntity> {

    List<MessageReceiveEntity> getMessageList(@Param("map") Map<String, Object> map);

    int getUnreadCount(@Param("userId") String userId,@Param("type") Integer type);

    List<MessageEntity> getInfoDefault(@Param("type") int type);
}

