package com.copy.trade.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.copy.trade.entity.po.Message;
import com.copy.trade.entity.vo.MessageVo;

public interface MessageMapper extends BaseMapper<Message> {

	List<MessageVo> listByCustomerId(@Param("page") Page page, @Param("customerId") Long customerId);
	
	List<Message> listUnreadByCustomerId(@Param("customerId") Long customerId);
	
	Boolean setRead(@Param("customerId") Long customerId);
}
