chore: 从 git 中移除 backend/target 目录
- 使用 git rm --cached 从版本控制中删除 target 目录 - .gitignore 已配置忽略 target 和 node_modules - 本地文件保留,仅从 git 索引中删除 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
934b8aad40
commit
ea8f8390da
99 files changed
+3551
-724
No files matched your search
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
import type { SystemConfig } from '@/types'
|
||||
|
||||
/**
|
||||
* 获取所有系统配置(管理员)
|
||||
*/
|
||||
export function getAllConfigs() {
|
||||
return request<SystemConfig[]>({
|
||||
url: '/system/config',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定配置值
|
||||
*/
|
||||
export function getConfigValue(configKey: string) {
|
||||
return request<string>({
|
||||
url: `/system/config/value/${configKey}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新配置
|
||||
*/
|
||||
export function updateConfig(configKey: string, configValue: string) {
|
||||
return request({
|
||||
url: '/system/config',
|
||||
method: 'put',
|
||||
data: { configKey, configValue }
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量更新配置
|
||||
*/
|
||||
export function batchUpdateConfigs(configs: Record<string, string>) {
|
||||
return request({
|
||||
url: '/system/config/batch',
|
||||
method: 'put',
|
||||
data: configs
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user