package com.aircraft.modules.article.mapper;

import com.aircraft.modules.article.domain.CpText;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 文章内容表 Mapper 接口
 * </p>
 *
 * @author cli
 * @since 2025-07-10
 */
@Mapper
public interface CpTextMapper extends BaseMapper<CpText> {

    IPage<CpText> findByPage(Page<CpText> page, String keyWord);

    void updateViewCountById(Integer id);
}
