/* * @Author: 曹文丽 caowenli@yuan-info.com * @Date: 2023-09-15 10:33:45 * @LastEditors: 曹文丽 caowenli@yuan-info.com * @LastEditTime: 2023-09-19 14:43:03 * @FilePath: \yuan-asset-module-browser\src\api\collection\collectConfig\collectEngine.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import { http } from "@/utils/https"; /** * @description: 获取表格数据 */ export const getTableList = (data) => { return http.get("/engineManage/page", data); }; /** * @description: 新增 */ export const postAddEngine = (data) => { return http.post("/engineManage/create", data); }; /** * @description: 编辑 */ export const postEditEngine = (data) => { return http.post("/engineManage/modify", data); }; /** * @description: 开关启用 */ export const postSwitchEnable = (data) => { return http.post("/engineManage/enable", data); }; /** * @description: 开关禁用 */ export const postSwitchDisable = (data) => { return http.post("/engineManage/disable", data); }; /** * @description: 删除 */ export const postDelEngine = (data) => { return http.post("/engineManage/delete", data); }; /** * @description: 升级 */ export const postUpgradeTableData = (data) => { return http.get("/detect/query", data); }; /** * @description: 查看详情 */ export const postLookDetail = (data) => { return http.get("/engineManage/detail", data); };