yinghe-lowcode-zln
Version:
基于vue、ant-design-vue,datagrid的低代码平台
94 lines (83 loc) • 1.7 kB
JavaScript
import { axios } from '@/utils/request'
// 查询参数列表
export function listConfig (query) {
return axios({
url: '/system/config/list',
method: 'get',
params: query
})
}
// 查询参数详细
export function getConfig (configId) {
return axios({
url: '/system/config/' + configId,
method: 'get'
})
}
// 根据参数键名查询参数值
export function getConfigKey (configKey) {
return axios({
url: '/system/config/configKey/' + configKey,
method: 'get'
})
}
// 新增参数配置
export function addConfig (data) {
return axios({
url: '/system/config',
method: 'post',
data: data
})
}
// 修改参数配置
export function updateConfig (data) {
return axios({
url: '/system/config/edit',
method: 'post',
data: data
})
}
// 删除参数配置
export function delConfig (configId) {
return axios({
url: '/system/config/delete/' + configId,
method: 'get'
})
}
// 清理参数缓存
export function clearCache () {
return axios({
url: '/system/config/clearCache/delete',
method: 'get'
})
}
// 导出参数
export function exportConfig (query) {
return axios({
url: '/system/config/export',
method: 'get',
params: query
})
}
// 修改密码策略参数配置
export function editPwdRule (data) {
return axios({
url: '/system/config/edit/pwdRule',
method: 'post',
data: data
})
}
//查询密码策略
export function pwdValid (query) {
return axios({
url: `/system/config/pwdValid/${query}`,
method: 'get'
})
}
//查询密码策略
export function getPwdRule (query) {
return axios({
url: '/system/config/getPwdRule',
method: 'get'
})
}