fix: 替换参数配置接口
This commit is contained in:
@@ -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',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user