package com.hotent.portal.persistence.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hotent.portal.model.MessageRead;
import com.hotent.portal.model.PortalNewsNoticeRead;
import org.apache.ibatis.annotations.Param;

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

public interface PortalNewsNoticeReadDao extends BaseMapper<PortalNewsNoticeRead> {
	
	/**
	 * 通过用户获取信息读取
	 * @param params map参数
	 * @return
	 */
	List<PortalNewsNoticeRead> getReadByUser(Map<String, Object> params);
	
	/**
	 * 通过信息id获取信息读取实体
	 * @param messageId 信息id
	 * @return
	 */
	List<PortalNewsNoticeRead> getByMessageId(@Param("messageId")String messageId);

	
}
