mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 17:17:13 +08:00
21 lines
776 B
Go
21 lines
776 B
Go
import { http } from '@/utils'
|
|
|
|
export default {
|
|
// 负载状态
|
|
load: (): any => http.Get('/apps/mysql/load'),
|
|
// 获取配置
|
|
config: (): any => http.Get('/apps/mysql/config'),
|
|
// 保存配置
|
|
saveConfig: (config: string): any => http.Post('/apps/mysql/config', { config }),
|
|
// 清空错误日志
|
|
clearErrorLog: (): any => http.Post('/apps/mysql/clear_error_log'),
|
|
// 获取慢查询日志
|
|
slowLog: (): any => http.Get('/apps/mysql/slow_log'),
|
|
// 清空慢查询日志
|
|
clearSlowLog: (): any => http.Post('/apps/mysql/clear_slow_log'),
|
|
// 获取 root 密码
|
|
rootPassword: (): any => http.Get('/apps/mysql/root_password'),
|
|
// 修改 root 密码
|
|
setRootPassword: (password: string): any => http.Post('/apps/mysql/root_password', { password })
|
|
}
|