feat: 增加nginx文件编辑功能
This commit is contained in:

committed by
zhengkunwang223

parent
7c6e96e10e
commit
55aed7943e
@@ -1,6 +1,7 @@
|
||||
import http from '@/api';
|
||||
import { ReqPage, ResPage } from '../interface';
|
||||
import { WebSite } from '../interface/website';
|
||||
import { File } from '../interface/file';
|
||||
|
||||
export const SearchWebSites = (req: WebSite.WebSiteSearch) => {
|
||||
return http.post<ResPage<WebSite.WebSite>>(`/websites/search`, req);
|
||||
@@ -18,6 +19,10 @@ export const GetWebsite = (id: number) => {
|
||||
return http.get<WebSite.WebSiteDTO>(`/websites/${id}`);
|
||||
};
|
||||
|
||||
export const GetWebsiteNginx = (id: number) => {
|
||||
return http.get<File.File>(`/websites/${id}/nginx`);
|
||||
};
|
||||
|
||||
export const DeleteWebsite = (req: WebSite.WebSiteDel) => {
|
||||
return http.post<any>(`/websites/del`, req);
|
||||
};
|
||||
|
Reference in New Issue
Block a user