1
0
forked from baron/baron-sso

feat: implement CSV-based organization chart import and enhance group hierarchy

This commit is contained in:
2026-03-04 14:20:49 +09:00
parent a973cd746b
commit 9ac99d2e0c
4 changed files with 187 additions and 20 deletions

View File

@@ -260,6 +260,21 @@ export async function removeGroupMember(
);
}
export async function importOrgChart(tenantId: string, file: File) {
const formData = new FormData();
formData.append("file", file);
const { data } = await apiClient.post(
`/v1/admin/tenants/${tenantId}/organization/import`,
formData,
{
headers: {
"Content-Type": "multipart/form-data",
},
},
);
return data;
}
export type GroupRole = {
tenantId: string;
tenantName: string;