package com.codvision.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.codvision.base.entity.SysNoticeUserMapper;
import com.codvision.base.entity.vo.SysNoticeUserMapperVO;
import com.codvision.webcore.bean.QueryPage;
import com.codvision.webcore.service.IBaseService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lingee
 * @since 2023-12-01
 */
public interface ISysNoticeUserMapperService extends IBaseService<SysNoticeUserMapper, SysNoticeUserMapperVO> {

    /**
     * 获取详情
     *
     * @param id
     * @return
     */
    SysNoticeUserMapperVO getDetail(Long id);

    /**
     * 分页查询
     *
     * @param queryPage 分页参数
     * @return 分页结果
     */
    IPage<SysNoticeUserMapperVO> getPageResult(QueryPage<SysNoticeUserMapper> queryPage);

    /**
     * 根据条件查询
     *
     * @param queryBean 查询条件
     * @return 列表
     */
    List<SysNoticeUserMapperVO> listAll(SysNoticeUserMapper queryBean);

    /**
     * 全部标记为已读
     *
     * @param uid  用户id
     * @param type 消息类型
     */
    void markAllRead(Integer uid, Integer type);
}
