feat: 完善客户列表管理操作
This commit is contained in:
@@ -141,6 +141,21 @@ export interface EnterpriseApprovalResponse {
|
||||
temporaryPassword: string | null
|
||||
}
|
||||
|
||||
export interface ResetPlatformTenantOwnerPasswordRequest {
|
||||
newPassword: string
|
||||
forceChangePassword: boolean
|
||||
}
|
||||
|
||||
export interface CreatePlatformTenantImpersonationRequest {
|
||||
reason: string
|
||||
}
|
||||
|
||||
export interface PlatformTenantImpersonationResponse {
|
||||
code: string
|
||||
ticketId: string
|
||||
expiresIn: number
|
||||
}
|
||||
|
||||
export interface PlatformRoleResource {
|
||||
id: number | string
|
||||
tenantId: number | string
|
||||
@@ -350,6 +365,24 @@ export function submitPlatformTenantReview(tenantId: number | string) {
|
||||
return postData<PlatformTenantResource>(`/platform/v1/iam/tenants/${tenantId}/submit-review`, {})
|
||||
}
|
||||
|
||||
export function resetPlatformTenantOwnerPassword(
|
||||
tenantId: number | string,
|
||||
payload: ResetPlatformTenantOwnerPasswordRequest,
|
||||
) {
|
||||
return putData<void>(`/platform/v1/iam/tenants/${tenantId}/owner/password`, payload)
|
||||
}
|
||||
|
||||
export function archivePlatformTenant(tenantId: number | string) {
|
||||
return postData<PlatformTenantResource>(`/platform/v1/iam/tenants/${tenantId}/archive`, {})
|
||||
}
|
||||
|
||||
export function createPlatformTenantImpersonation(
|
||||
tenantId: number | string,
|
||||
payload: CreatePlatformTenantImpersonationRequest,
|
||||
) {
|
||||
return postData<PlatformTenantImpersonationResponse>(`/platform/v1/iam/tenants/${tenantId}/impersonation`, payload)
|
||||
}
|
||||
|
||||
export async function uploadPlatformTenantQualification(
|
||||
tenantId: number | string,
|
||||
qualificationType: PlatformQualificationType,
|
||||
|
||||
Reference in New Issue
Block a user