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

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.pagecontentcapture.entity.PageContentCapture;
import org.jeecg.modules.demo.pagecontentcapture.entity.PageContentCaptureVo;
import org.jeecg.modules.demo.pagecontentcapture.mapper.PageContentCaptureVoMapper;
import org.jeecg.modules.demo.pagecontentcapture.service.IPageContentCaptureVoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

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


    @Autowired
    private PageContentCaptureVoMapper pageContentCaptureVoMapper;

    @Override
    public List<PageContentCaptureVo> listCount() {
        return pageContentCaptureVoMapper.listCount();
    }

    @Override
    public PageContentCaptureVo listCountByMainUrl(String mainUrl) {
        return pageContentCaptureVoMapper.listCountByMainUrl(mainUrl);
    }

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