mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-03 20:44:13 +08:00
16 lines
538 B
Go
16 lines
538 B
Go
import { Group } from '../interface/group';
|
|
import http from '@/api';
|
|
|
|
export const GetGroupList = (params: Group.GroupSearch) => {
|
|
return http.post<Array<Group.GroupInfo>>(`/groups/search`, params);
|
|
};
|
|
export const CreateGroup = (params: Group.GroupCreate) => {
|
|
return http.post<Group.GroupCreate>(`/groups`, params);
|
|
};
|
|
export const UpdateGroup = (params: Group.GroupUpdate) => {
|
|
return http.post(`/groups/update`, params);
|
|
};
|
|
export const DeleteGroup = (id: number) => {
|
|
return http.post(`/groups/del`, { id: id });
|
|
};
|