package cd.casic.ci.process.process.service.vulInfo;

import cd.casic.ci.process.dto.req.vulInfo.SearchDto;
import cd.casic.ci.process.dto.req.vulInfo.VulInfoDto;
import cd.casic.ci.process.dto.resp.ScaVulInfoResp;
import cd.casic.ci.process.process.dataObject.volumnInfo.VulInfo;
import cd.casic.framework.commons.pojo.PageResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.util.List;

public interface VulInfoService extends IService<VulInfo> {
    void scaToVulInfoSave(Integer scaTaskId,String targetType,String targetName,String city,String instanceId,String taskId,String taskType);
    Integer scaVulCountGet(Integer scaTaskId) throws NoSuchAlgorithmException, KeyStoreException, KeyManagementException;
    List<ScaVulInfoResp> scaVulListGet(Integer scaTaskId) throws NoSuchAlgorithmException, KeyStoreException, KeyManagementException;

    void upload(VulInfo vulInfo);

    PageResult<VulInfoDto> getSearch(SearchDto searchDto);
}
