mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 12:40:25 +08:00
16 lines
565 B
TypeScript
16 lines
565 B
TypeScript
import { request } from '@/utils'
|
|
import type { AxiosResponse } from 'axios'
|
|
|
|
export default {
|
|
// 获取信息
|
|
info: (): Promise<AxiosResponse<any>> => request.get('/apps/phpmyadmin/info'),
|
|
// 设置端口
|
|
port: (port: number): Promise<AxiosResponse<any>> =>
|
|
request.post('/apps/phpmyadmin/port', { port }),
|
|
// 获取配置
|
|
getConfig: (): Promise<AxiosResponse<any>> => request.get('/apps/phpmyadmin/config'),
|
|
// 保存配置
|
|
saveConfig: (config: string): Promise<AxiosResponse<any>> =>
|
|
request.post('/apps/phpmyadmin/config', { config })
|
|
}
|