/* * @Description: 网站安全分析 接口 * @Author: tqh * @Date: 2022-9-2 09:00 */ import { http } from "@/utils/https"; /** * @description: 获取全省网站数量 * @param {} */ export const getProvinceWebNum = (data) => { return http.get("/networkSafeDetect/netWorkSecurity/statistics/siteNumber", data); }; /** * @description: 获取各地市访问量 * @param {} */ export const getAppTopFive = (data) => { return http.get("/networkSafeDetect/netWorkSecurity/statistics/queryVisitCount", data); }; /** * @description: 获取网站访问量top10 * @param {} */ export const getWebTopTen = (data) => { return http.get("/networkSafeDetect/netWorkSecurity/statistics/queryVisitSum", data); }; /** * @description: 获取网站上行流量排名top5 * @param {} */ export const getWebUpFlowFive = (data) => { return http.get("/networkSafeDetect/netWorkSecurity/statistics/queryUpFlowSum", data); }; /** * @description: 获取网站下行流量排名top5 * @param {} */ export const getWebDownFlowFive = (data) => { return http.get("/networkSafeDetect/netWorkSecurity/statistics/queryDownFlowSum", data); }; /** * @description: 获取应用下载注册数量 * @param {} */ export const getAppDownNum = (data) => { return http.get("/networkSafeDetect/netWorkSecurity/statistics/queryBarType", data); }; /** * @description: 获取重要域名表格数据 * @param {number} page * @param {number} size */ export const getImportDomainList = (data) => { return http.get("/networkSafeDetect/networkSecurity/importantWebConfig/search", data); }; /** * @description: 新增重要域名 * @param {number} page * @param {number} size */ export const postImportDomainAddForm = (data) => { return http.post("/networkSafeDetect/networkSecurity/importantWebConfig/add", data); } /** * @description: 编辑重要域名 * @param {number} page * @param {number} size */ export const postImportDomainEditForm = (data) => { return http.post("/networkSafeDetect/networkSecurity/importantWebConfig/modify", data); } /** * @description: 重要域名删除 * @param {number} page * @param {number} size */ export const postImportDomainDelete = (data) => { return http.post("/networkSafeDetect/networkSecurity/importantWebConfig/delete", data); } /** * @description: 批量重要域名导出 * @param {number} page * @param {number} size */ export const postImportDomainExport = (data) => { return http.post("/networkSafeDetect/networkSecurity/importantWebConfig/export", data, { responseType: "blob", }); } /** * @description: 文件导入确认 */ export const postImportDomainFileCheck = (data) => { return http.post("/networkSafeDetect/networkSecurity/importantWebConfig/importantWebConfigCheck", data); } /** * @description: 文件导入 */ export const postImportDomainFile = (data) => { return http.post("/networkSafeDetect/networkSecurity/importantWebConfig/batchImport", data); } /** * @description: 获取网站主扫查询表格数据 * @param {number} page * @param {number} size */ export const getSearchDomainList = (data) => { return http.get("/networkSafeDetect/domainSafe/fakeDomain/list", data); }; /** * @description: 批量网站主扫查询导出 * @param {number} page * @param {number} size */ export const postSearchDomainExport = (data) => { return http.post("/networkSafeDetect/report/generateReport", data, { responseType: "blob", }); } /** * @description: 获取重要域名表格数据 * @param {number} page * @param {number} size */ export const getMalicNetList = (data) => { return http.get("/networkSafeDetect/networkSecurity/maliciousWebsiteConfig/search", data); }; /** * @description: 新增重要域名 * @param {number} page * @param {number} size */ export const postMalicNetAddForm = (data) => { return http.post("/networkSafeDetect/networkSecurity/maliciousWebsiteConfig/add", data); } /** * @description: 编辑重要域名 * @param {number} page * @param {number} size */ export const postMalicNetEditForm = (data) => { return http.post("/networkSafeDetect/networkSecurity/maliciousWebsiteConfig/modify", data); } /** * @description: 重要域名删除 * @param {number} page * @param {number} size */ export const postMalicNetDelete = (data) => { return http.post("/networkSafeDetect/networkSecurity/maliciousWebsiteConfig/delete", data); } /** * @description: 批量重要域名导出 * @param {number} page * @param {number} size */ export const postMalicNetExport = (data) => { return http.post("/networkSafeDetect/networkSecurity/maliciousWebsiteConfig/export", data, { responseType: "blob", }); } /** * @description: 文件导入 * @param {number} page * @param {number} size */ export const postMalicNetFile = (data) => { return http.post("/networkSafeDetect/networkSecurity/maliciousWebsiteConfig/batchImport", data); } /** * @description: 获取网站主扫查询表格数据 * @param {number} page * @param {number} size */ export const getWebSearchList = (data) => { return http.get("/networkSafeDetect/netWorkSecurity/ActiveScan/queryActiveScan", data); }; /** * @description: 批量网站主扫查询导出 * @param {number} page * @param {number} size */ export const postWebSearchExport = (data) => { return http.post("/networkSafeDetect/netWorkSecurity/ActiveScan/exportActiveScan", data, { responseType: "blob", }); } /** * @description: 获取主扫配置表格数据 * @param {number} page * @param {number} size */ export const getConfigList = (data) => { return http.get("/networkSafeDetect/netWorkSecurity/ActiveScanAllocation/queryActiveScanAllocation", data); }; /** * @description: 新增主扫配置 * @param {number} page * @param {number} size */ export const postConfigAddForm = (data) => { return http.post("/networkSafeDetect/netWorkSecurity/ActiveScanAllocation/addActiveScanAllocation", data); } /** * @description: 编辑主扫配置 * @param {number} page * @param {number} size */ export const postConfigEditForm = (data) => { return http.post("/networkSafeDetect/netWorkSecurity/ActiveScanAllocation/updateActiveScanAllocation", data); } /** * @description: 主扫配置删除 * @param {number} page * @param {number} size */ export const postConfigDelete = (data) => { return http.post("/networkSafeDetect/netWorkSecurity/ActiveScanAllocation/deleteActiveScanAllocation", data); } /** * @description: 批量主扫配置导出 * @param {number} page * @param {number} size */ export const postConfigExport = (data) => { return http.post("/networkSafeDetect/netWorkSecurity/ActiveScanAllocation/exportActiveScanAllocation", data, { responseType: "blob", }); } /** * @description: 主扫配置文件导入确认 */ export const postImportDomainCheck = (data) => { return http.post("/networkSafeDetect/netWorkSecurity/ActiveScanAllocation/importActiveScanAllocationConfigCheck ", data); } /** * @description: 主扫配置文件导入 */ export const postConfigFile = (data) => { return http.post("/networkSafeDetect/netWorkSecurity/ActiveScanAllocation/importActiveScanAllocation", data); } /** * @description: 网站漏洞类型查询 * @param {number} page * @param {number} size */ export const postFullList = (data) => { return http.get("/networkSafeDetect/netWorkSecurity/ActiveScan/queryActiveScanHole", data); } /** * @description: 网站漏洞类型导出 */ export const postFullExport = (data) => { return http.post("/networkSafeDetect/netWorkSecurity/ActiveScan/exportActiveScanHole", data, { responseType: "blob", }); } //获取详情数据 export const getDetailData = (data) => { return http.get("/networkSafeDetect/netWorkSecurity/ActiveScan/queryWebScanDetails",data) }