import http from "@/api"; const CONFIG = `/config`; //配置列表分页 export const getConfigListApi = (params: any) => { return http.get(`${CONFIG}/index`, params); }; //配置新增 export const getConfigSaveApi = (params: any) => { return http.post(`${CONFIG}/save`, params); }; //配置更新 export const getConfigUpApi = (params: any) => { const { id } = params; return http.put(`${CONFIG}/update/${id}`, params); }; //配置详情 export const getConfigReadApi = (params: any) => { return http.get(`${CONFIG}/read/${params}`); }; //配置删除 export const getConfigDelApi = (params: any) => { return http.delete(`${CONFIG}/delete/${params}`); }; //分组 getConfigGroupsApi getConfigTypesApi export const getConfigGroupsApi = () => { return http.get(`${CONFIG}/groups`); }; //分类 export const getConfigTypesApi = () => { return http.get(`${CONFIG}/types`); }; // export const getConfigListApi = (params: any) => { // return http.get(`${CONFIG}/index`, params); // };