mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-03 02:36:39 +08:00
32 lines
850 B
JavaScript
32 lines
850 B
JavaScript
// 系统参数API
|
|
import {
|
|
postAxios,
|
|
getAxios
|
|
} from '@/lib/http';
|
|
export const systemConfigApi = {
|
|
// 查询系统参数列表
|
|
getSystemConfigList: (data) => {
|
|
return postAxios('/systemConfig/getListPage', data);
|
|
},
|
|
// 添加系统参数
|
|
addSystemConfig: (data) => {
|
|
return postAxios('/systemConfig/add', data);
|
|
},
|
|
// 更新单条系统参数
|
|
updateSystemConfig: (data) => {
|
|
return postAxios('/systemConfig/update', data);
|
|
},
|
|
// 通过key获取对应的信息
|
|
getConfigListByKey: (key) => {
|
|
return getAxios(`/systemConfig/selectByKey?configKey=${key}`);
|
|
},
|
|
// 根据分组查询所有系统配置
|
|
getListByGroup: (group) => {
|
|
return getAxios(`/systemConfig/getListByGroup?group=${group}`);
|
|
},
|
|
// 获取系统版本信息
|
|
getCodeVersion: () => {
|
|
return getAxios('/codeVersion');
|
|
}
|
|
};
|