package com.ichangzuo.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ichangzuo.system.model.bo.QnABO;
import com.ichangzuo.system.model.bo.QnAFullBO;
import com.ichangzuo.system.model.entity.QnA;
import com.ichangzuo.system.model.query.QnAPageQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface QnAMapper extends BaseMapper<QnA> {
    List<QnABO> listByType(Integer typeId);

    Page<QnAFullBO> listPage(Page<QnAFullBO> page, QnAPageQuery queryParams);
}
