/* * @Author: 曹文丽 caowenli@yuan-info.com * @Date: 2023-02-09 19:46:09 * @LastEditors: 李佐宁 * @LastEditTime: 2023-08-17 16:58:53 * @FilePath: \yuan-zld-brower\src\api\disposal\evevts.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import { http } from '../../utils/https'; /** * 页面table数据 * @param params * @returns */ export const getTableList = (params) => { return http.get('/security-event/page', params); }; /** * 研判 * @param params * @returns */ export const studyJudge = (data) => { return http.post('/security-event/judge', data); }; /** * 下发 * @param params * @returns */ export const issueData = (data) => { return http.post('/security-event/export', data, { responseType: 'blob', }); }; /** * 获取描述 * @param params * @returns */ export const getDescribeData = (data) => { return http.post('/security-event/describe', data); }; /** * 添加通报任务 * @param params * @returns */ export const addTask = (params) => { return http.post('/informManage/add', params); }; /** * 获取企业名称 * @param params * @returns */ export const getEnterprise = () => { return http.get('/enterprise/info/getEnterprise'); }; /** * 获取支撑单位 * @param params * @returns */ export const getBrace = () => { return http.get('/enterprise/info/getBrace'); }; /** * @description: 附件上传 * @param {*} data */ export const addUploadFile = (params) => { return http.post('/file/upload', params, { headers: { 'Content-Type': 'multipart/form-data', }, }); }; /** * 导出 * @param params * @returns */ export const batchExport = (params) => { return http.post('/security-event/export', params, { responseType: 'blob', }); }; /** * 全部导出,只是触发一下 * @param params * @returns */ export const getExportAll = (params) => { return http.get('/security-event/exportAll', params); }; /** * 网安事件归档列表查询 * @param params * @returns */ export const getQueryByPage = (params) => { return http.get('/securityEventArchived/queryByPage', params); }; /** * 网安事件归档列表批量删除 * @param params * @returns */ export const deleteBatches = (params) => { return http.post('/securityEventArchived/deleteBatches', params); }; /** * 网安事件归档列表导出 * @param params * @returns */ export const postZipFile = (params) => { return http.post('/securityEventArchived/downloadZipFile ', params, { responseType: 'blob', }); }; /** * 导出 * @param params * @returns */ export const postPcapDownload = (params) => { return http.post('/security-event/pcapDownload', params, { responseType: 'blob', }); };