/* * @Author: 曹文丽 caowenli@yuan-info.com * @Date: 2023-03-01 09:44:26 * @LastEditors: 曹文丽 caowenli@yuan-info.com * @LastEditTime: 2023-03-01 09:44:42 * @FilePath: \yuan-huoling-browser-tower\src\api\system\portStrategy.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import { http } from "@/utils/https"; //系统端口的列表 export const getSystemPortData = (params) => { return http.get("/portStrategy/system/page", params); }; //自定义端口的列表 export const getCustomizePortData = (params) => { return http.get("/portStrategy/custom/page", params); }; //系统端口恢复 export const systemPortRestore = () => { return http.post("/portStrategy/system/restoreDefault"); }; //自定义端口新增 export const addPort = (data) => { return http.post("/portStrategy/custom/create", data); }; //自定义端口编辑 export const editPort = (data) => { return http.post("/portStrategy/custom/modify", data); }; //自定义端口的批量导出 export const batchExp = (data) => { return http.post("/portStrategy/exportBatch", data,{ responseType: "blob", }); }; //自定义端口的删除 export const delPort = (params) => { return http.get("/portStrategy/custom/delete", params); }; //校验是否是系统端口 export const isSystemPort = (params) => { return http.get("/portStrategy/isSystemPort", params); };