优化
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user