package com.cyksj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyksj.model.entity.Information;
import com.cyksj.model.views.InformationListView;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zwhui
 * @date 2023/10/12 14:32
 */
public interface InformationMapper extends BaseMapper<Information> {
    IPage<InformationListView> getInformation(@Param("page") Page<InformationListView> page, @Param("categoryId") Long categoryId);

    List<InformationListView> getInformationByTitle(@Param("title") String title);
}
