更新多个功能

This commit is contained in:
2026-06-29 07:35:07 +08:00
parent fa94f52b53
commit cf7e2560b5
41 changed files with 2388 additions and 37 deletions
+22
View File
@@ -0,0 +1,22 @@
import { get, put } from '@/api/request'
/**
* 获取所有配置列表
*/
export function getAllConfigs(params?: any) {
return get('/api/config', params)
}
/**
* 根据配置键获取配置
*/
export function getConfigByKey(configKey: string) {
return get(`/api/config/key/${configKey}`)
}
/**
* 更新配置
*/
export function updateConfig(id: number, data: any) {
return put(`/api/config/${id}`, data)
}