fix: 替换参数配置接口

This commit is contained in:
TsMask
2023-09-06 11:32:42 +08:00
parent ed72ca11be
commit a07ad1ade2
2 changed files with 14 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ export function exportConfig(
*/
export function listConfig(query: Record<string, any>) {
return request({
url: '/system/config/list',
url: '/configManage/v1/configs',
method: 'get',
params: query,
});
@@ -36,7 +36,7 @@ export function listConfig(query: Record<string, any>) {
*/
export function getConfig(configId: string | number) {
return request({
url: `/system/config/${configId}`,
url: `/configManage/v1/config/${configId}`,
method: 'get',
});
}
@@ -48,7 +48,7 @@ export function getConfig(configId: string | number) {
*/
export function getConfigKey(configKey: string) {
return request({
url: `/system/config/configKey/${configKey}`,
url: `/configManage/v1/config/${configKey}`,
method: 'get',
});
}
@@ -60,7 +60,7 @@ export function getConfigKey(configKey: string) {
*/
export function addConfig(data: Record<string, any>) {
return request({
url: '/system/config',
url: '/configManage/v1/config',
method: 'post',
data: data,
});
@@ -73,7 +73,7 @@ export function addConfig(data: Record<string, any>) {
*/
export function updateConfig(data: Record<string, any>) {
return request({
url: '/system/config',
url: '/configManage/v1/config',
method: 'put',
data: data,
});
@@ -86,7 +86,7 @@ export function updateConfig(data: Record<string, any>) {
*/
export function delConfig(configId: string | number) {
return request({
url: `/system/config/${configId}`,
url: `/configManage/v1/config/${configId}`,
method: 'delete',
});
}
@@ -97,7 +97,7 @@ export function delConfig(configId: string | number) {
*/
export function refreshCache() {
return request({
url: '/system/config/refreshCache',
url: '/configManage/v1/config/refreshCache',
method: 'put',
});
}