mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-08 16:00:30 +00:00
feat: PHP 运行环境增加扩展模版 (#3502)
Refs https://github.com/1Panel-dev/1Panel/issues/1636
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import http from '@/api';
|
||||
import { ResPage } from '../interface';
|
||||
import { ResPage, ReqPage } from '../interface';
|
||||
import { Runtime } from '../interface/runtime';
|
||||
import { TimeoutEnum } from '@/enums/http-enum';
|
||||
|
||||
@@ -38,3 +38,23 @@ export const GetNodeModules = (req: Runtime.NodeModuleReq) => {
|
||||
export const OperateNodeModule = (req: Runtime.NodeModuleReq) => {
|
||||
return http.post<any>(`/runtimes/node/modules/operate`, req, TimeoutEnum.T_10M);
|
||||
};
|
||||
|
||||
export const SearchPHPExtensions = (req: ReqPage) => {
|
||||
return http.post<ResPage<Runtime.PHPExtensions>>(`/runtimes/php/extensions/search`, req);
|
||||
};
|
||||
|
||||
export const ListPHPExtensions = (req: Runtime.PHPExtensionsList) => {
|
||||
return http.post<Runtime.PHPExtensions[]>(`/runtimes/php/extensions/search`, req);
|
||||
};
|
||||
|
||||
export const CreatePHPExtensions = (req: Runtime.PHPExtensionsCreate) => {
|
||||
return http.post<any>(`/runtimes/php/extensions`, req);
|
||||
};
|
||||
|
||||
export const UpdatePHPExtensions = (req: Runtime.PHPExtensionsUpdate) => {
|
||||
return http.post<any>(`/runtimes/php/extensions/update`, req);
|
||||
};
|
||||
|
||||
export const DeletePHPExtensions = (req: Runtime.PHPExtensionsDelete) => {
|
||||
return http.post<any>(`/runtimes/php/extensions/del`, req);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user