package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.VisitingWebsiteRanking;
import com.ruoyi.system.domain.WebSiteTenDaysHits;
import com.ruoyi.system.domain.WebsiteAvailabilityMonitor;
import com.ruoyi.system.mapper.VisitingWebsiteRankingMapper;
import com.ruoyi.system.mapper.WebSiteTenDaysHitsMapper;
import com.ruoyi.system.service.IVisitingWebsiteRankingService;
import com.ruoyi.system.service.IWebSiteTenDaysHitsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class WebSiteTenDaysHitsServiceImpl implements IWebSiteTenDaysHitsService {


    @Autowired
    private WebSiteTenDaysHitsMapper webSiteTenDaysHitsMapper;


    @Override
    public List<WebSiteTenDaysHits> selectWebSiteTenDaysHitsList() {
        return webSiteTenDaysHitsMapper.selectWebSiteTenDaysHitsList();
    }

    @Override
    public void insertBatch(List<WebSiteTenDaysHits> list) {
        webSiteTenDaysHitsMapper.deleteWebSiteTenDaysHitsAll();
        webSiteTenDaysHitsMapper.insertBatch(list);
    }
}
