package org.jeecg.modules.demo.pagecontentcapture.service.impl;

import org.jeecg.modules.demo.pagecontentcapture.entity.PageContentCapture;
import org.jeecg.modules.demo.pagecontentcapture.mapper.PageContentCaptureMapper;
import org.jeecg.modules.demo.pagecontentcapture.service.IPageContentCaptureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 页面内容抓取
 * @Author: jeecg-boot
 * @Date:   2023-04-17
 * @Version: V1.0
 */
@Service
public class PageContentCaptureServiceImpl extends ServiceImpl<PageContentCaptureMapper, PageContentCapture> implements IPageContentCaptureService {


    @Autowired
    private PageContentCaptureMapper pageContentCaptureMapper;

    @Override
    public List<PageContentCapture> listCount() {
        return pageContentCaptureMapper.listCount();
    }

    @Override
    public PageContentCapture listCountByMainUrl(String mainUrl) {
        return pageContentCaptureMapper.listCountByMainUrl(mainUrl);
    }

    @Override
    public List<PageContentCapture> listPage(Integer i, Integer pageSize,String mainSiteUrl) {
        return pageContentCaptureMapper.listPage(i,pageSize,mainSiteUrl);
    }
}
