feat: 增加一键部署网站功能
This commit is contained in:

committed by
zhengkunwang223

parent
ef789cdfea
commit
9621d6ea1f
@@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user