feat: 增加一键部署网站功能

This commit is contained in:
zhengkunwang223
2022-11-02 15:19:14 +08:00
committed by zhengkunwang223
parent ef789cdfea
commit 9621d6ea1f
30 changed files with 670 additions and 141 deletions

View File

@@ -1,10 +1,19 @@
import http from '@/api';
import { ResPage } from '../interface';
import { WebSite } from '../interface/website';
export const listGroups = () => {
export const SearchWebSites = (req: WebSite.WebSiteSearch) => {
return http.post<ResPage<WebSite.WebSite>>(`/websites/search`, req);
};
export const ListGroups = () => {
return http.get<WebSite.Group[]>(`/websites/groups`);
};
export const CreateWebsite = (req: WebSite.WebSiteCreateReq) => {
return http.post<any>(`/websites`, req);
};
export const DeleteWebsite = (req: WebSite.WebSiteDel) => {
return http.post<any>(`/websites/del`, req);
};