This commit is contained in:
2026-08-07 09:06:22 +08:00
parent e5f02c2530
commit 2449c07e5e
5 changed files with 74 additions and 18 deletions
+19
View File
@@ -101,6 +101,21 @@ export interface PlatformTenantQualification {
validTo?: string | null
}
export interface PlatformTenantMember {
membershipId: number | string
userId: number | string
authUserId: number | string
username?: string | null
displayName: string | null
phone: string | null
email: string | null
memberType: string
memberNo: string | null
status: 'ACTIVE' | 'DISABLED' | string
roleIds?: Array<number | string>
roleNames?: string[]
}
export type PlatformQualificationType = 'BUSINESS_LICENSE' | 'LEGAL_PERSON_ID' | 'FREIGHT_FORWARDER_CERTIFICATE' | 'BANK_ACCOUNT_LICENSE'
export interface PlatformQualificationUploadResponse {
@@ -378,6 +393,10 @@ export function listTenantQualifications(tenantId: number | string) {
return getData<PlatformTenantQualification[]>(`/platform/v1/iam/tenants/${tenantId}/qualifications`)
}
export function listPlatformTenantMembers(tenantId: number | string) {
return getData<PlatformTenantMember[]>(`/platform/v1/iam/tenants/${tenantId}/members`)
}
export function qualificationFileName(documentUrl: string) {
const path = documentUrl.split(/[?#]/, 1)[0]
const encodedName = path.split('/').filter(Boolean).at(-1)