package com.sien.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sien.common.entity.SysNoticeRead;
import com.sien.common.param.SysNoticeReadPageParam;
import com.sien.common.param.SysNoticeReadQueryVo;

import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

/**
 * 系统通知已读 未读 Mapper 接口
 *
 * @author xxx
 * @since 2020-11-06
 */
@Repository
public interface SysNoticeReadMapper extends BaseMapper<SysNoticeRead> {

            /**
             * 根据ID获取查询对象
             *
             * @param id
             * @return
             */
        SysNoticeReadQueryVo getSysNoticeReadById(Serializable id);

            /**
             * 获取分页对象
             *
             * @param page
             * @param sysNoticeReadPageParam
             * @return
             */
            IPage<SysNoticeReadQueryVo> getSysNoticeReadPageList(@Param("page") Page page,@Param("param") SysNoticeReadPageParam sysNoticeReadPageParam);

        }
