1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-04 04:54:16 +08:00

20 lines
579 B
Go
Raw Normal View History

2022-10-28 17:04:57 +08:00
import http from '@/api';
2022-11-02 15:19:14 +08:00
import { ResPage } from '../interface';
2022-10-28 17:04:57 +08:00
import { WebSite } from '../interface/website';
2022-11-02 15:19:14 +08:00
export const SearchWebSites = (req: WebSite.WebSiteSearch) => {
return http.post<ResPage<WebSite.WebSite>>(`/websites/search`, req);
};
export const ListGroups = () => {
2022-10-28 17:04:57 +08:00
return http.get<WebSite.Group[]>(`/websites/groups`);
};
export const CreateWebsite = (req: WebSite.WebSiteCreateReq) => {
return http.post<any>(`/websites`, req);
};
2022-11-02 15:19:14 +08:00
export const DeleteWebsite = (req: WebSite.WebSiteDel) => {
return http.post<any>(`/websites/del`, req);
};