feat: 增加网站分组管理
This commit is contained in:

committed by
zhengkunwang223

parent
9621d6ea1f
commit
42134e315b
@@ -6,10 +6,6 @@ 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);
|
||||
};
|
||||
@@ -17,3 +13,19 @@ export const CreateWebsite = (req: WebSite.WebSiteCreateReq) => {
|
||||
export const DeleteWebsite = (req: WebSite.WebSiteDel) => {
|
||||
return http.post<any>(`/websites/del`, req);
|
||||
};
|
||||
|
||||
export const ListGroups = () => {
|
||||
return http.get<WebSite.Group[]>(`/websites/groups`);
|
||||
};
|
||||
|
||||
export const CreateGroup = (req: WebSite.GroupOp) => {
|
||||
return http.post<any>(`/websites/groups`, req);
|
||||
};
|
||||
|
||||
export const UpdateGroup = (req: WebSite.GroupOp) => {
|
||||
return http.put<any>(`/websites/groups`, req);
|
||||
};
|
||||
|
||||
export const DeleteGroup = (id: number) => {
|
||||
return http.delete<any>(`/websites/groups/${id}`);
|
||||
};
|
||||
|
Reference in New Issue
Block a user