mirror of
https://github.com/acepanel/panel.git
synced 2026-02-06 05:03:13 +08:00
feat: 前端重构1
This commit is contained in:
15
web/src/api/apps/phpmyadmin/index.ts
Normal file
15
web/src/api/apps/phpmyadmin/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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 })
|
||||
}
|
||||
Reference in New Issue
Block a user