This commit is contained in:
2026-08-08 11:05:45 +08:00
parent 6f709267b7
commit 4835904507
5 changed files with 133 additions and 13 deletions
+7 -1
View File
@@ -141,6 +141,12 @@ export interface EnterpriseApprovalResponse {
temporaryPassword: string | null
}
export interface PlatformTenantCreationResponse {
tenant: PlatformTenantResource
administratorUsername: string
temporaryPassword: string
}
export interface ResetPlatformTenantOwnerPasswordRequest {
newPassword: string
forceChangePassword: boolean
@@ -350,7 +356,7 @@ export async function checkPlatformTenantContactPhone(contactPhone: string, excl
}
export function createPlatformTenant(payload: CreatePlatformTenantRequest) {
return postData<PlatformTenantResource>('/platform/v1/iam/tenants', payload)
return postData<PlatformTenantCreationResponse>('/platform/v1/iam/tenants', payload)
}
export function updatePlatformTenant(tenantId: number | string, payload: UpdatePlatformTenantRequest) {