package com.ruoyi.cai.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.cai.domain.ForbidFilter;
import com.ruoyi.cai.dto.admin.vo.ForbidFilterAdminVo;
import com.ruoyi.cai.executor.ExecutorConstant;
import com.ruoyi.cai.mapper.ForbidFilterMapper;
import com.ruoyi.cai.service.ForbidFilterService;
import com.ruoyi.common.core.domain.PageQuery;
import org.springframework.stereotype.Service;

/**
 * 登陆拦截记录Service业务层处理
 *
 * @author 77
 * @date 2024-01-18
 */
@Service
public class ForbidFilterServiceImpl extends ServiceImpl<ForbidFilterMapper,ForbidFilter> implements ForbidFilterService {

    @Override
    public void addForbidFilter(ForbidFilter forbidFilter) {
        ExecutorConstant.COMMON_EXECUTOR.execute(() -> {
            this.save(forbidFilter);
        });
    }

    @Override
    public Page<ForbidFilterAdminVo> pageAdmin(PageQuery pageQuery, ForbidFilterAdminVo bo) {
        return baseMapper.pageAdmin(pageQuery.build(),bo);
    }
}
