
package com.pavis.admin.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import com.pavis.admin.system.model.entity.MessageDO;
import com.pavis.admin.system.model.resp.message.MessageResp;
import top.continew.starter.data.mp.base.BaseMapper;

/**
 * 消息 Mapper
 *
 * 
 * @since 2023/10/15 19:05
 */
public interface MessageMapper extends BaseMapper<MessageDO> {

    /**
     * 分页查询列表
     *
     * @param page         分页查询条件
     * @param queryWrapper 查询条件
     * @return 分页信息
     */
    IPage<MessageResp> selectPageByUserId(@Param("page") IPage<Object> page,
                                          @Param(Constants.WRAPPER) QueryWrapper<MessageDO> queryWrapper);
}