import request from "@/utils/request"; // 获取配置分页列表 export const getFacilitiesAdaptabilityConfigPage = (params) => { return request({ url: "/sponge/facilitiesAdaptabilityConfig/page", method: "get", params }); }; // 新增配置 export const getFacilitiesAdaptabilityConfigAddWithItem = (data) => { return request({ url: "/sponge/facilitiesAdaptabilityConfig/addWithItem", method: "post", data }); }; // 删除配置 export const facilitiesAdaptabilityConfigDel = (ids) => { return request({ url: `/sponge/facilitiesAdaptabilityConfig/${ids}`, method: "delete" }); }; // 复制配置 export const facilitiesAdaptabilityConfigCopy = (data) => { return request({ url: "/sponge/facilitiesAdaptabilityConfig/copy", method: "post", data }); }; // 启用配置 export const facilitiesAdaptabilityConfigEnable= (id) => { return request({ url: `/sponge/facilitiesAdaptabilityConfig/enable/${id}`, method: "get" }); }; // 获取配置项列表 export const getFacilitiesAdaptabilityConfigItemList = (params) => { return request({ url: "/sponge/facilitiesAdaptabilityConfigItem/list", method: "get", params }); }; // 编辑配置项 export const facilitiesAdaptabilityConfigItemEdit = (data) => { return request({ url: "/sponge/facilitiesAdaptabilityConfigItem/edit", method: "put", data }); };