snapshot: AlertCenter拆分前快照
This commit is contained in:
1 parent
6a40956afa
commit
805cb767a8
23 files changed
+1560
-404
No files matched your search
@@ -47,6 +47,20 @@ export const userApi = {
|
||||
getRoles: async () => {
|
||||
return http.get<ListResponse>('/user/roles');
|
||||
},
|
||||
// 角色管理(管理员) // Logan.Li
|
||||
createRole: async (data: { name: string; code: string; description?: string; permission_ids?: number[] }) => {
|
||||
return http.post('/admin/roles', data);
|
||||
},
|
||||
updateRole: async (id: number | string, data: { name?: string; code?: string; description?: string; permission_ids?: number[] }) => {
|
||||
return http.put(`/admin/roles/${id}`, data);
|
||||
},
|
||||
deleteRole: async (id: number | string) => {
|
||||
return http.delete(`/admin/roles/${id}`);
|
||||
},
|
||||
// 权限列表(供角色权限选择)
|
||||
getPermissions: async () => {
|
||||
return http.get<ListResponse>('/admin/permissions');
|
||||
},
|
||||
};
|
||||
|
||||
// ==================== LDAP 配置 API ====================
|
||||
@@ -163,6 +177,12 @@ export const k8sApi = {
|
||||
getIngresses: async (clusterId: number | string) => {
|
||||
return http.get(`/k8s-clusters/${clusterId}/ingresses`);
|
||||
},
|
||||
getTopology: async (clusterId: number | string) => { // Logan.Li
|
||||
return http.get(`/k8s-clusters/${clusterId}/topology`);
|
||||
},
|
||||
saveTopology: async (clusterId: number | string, layoutData: string) => { // Logan.Li
|
||||
return http.put(`/k8s-clusters/${clusterId}/topology`, { layout_data: layoutData });
|
||||
},
|
||||
scaleDeployment: async (_clusterId: string, _namespace: string, _name: string, _replicas: number) => {
|
||||
return { success: true };
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user