完成Salon小程序合规整改
This commit is contained in:
@@ -2001,5 +2001,74 @@ export const adminWorkbenchRegistrationApi = {
|
||||
}
|
||||
}
|
||||
|
||||
export interface AccountClosureRequestVO {
|
||||
id: IdType
|
||||
userId: IdType
|
||||
nickname: string
|
||||
userType?: number
|
||||
shopIds?: IdType[]
|
||||
shopNames?: string[]
|
||||
status: string
|
||||
requestedAt?: string
|
||||
processingTargetText?: string
|
||||
processedAt?: string
|
||||
reviewerNote?: string
|
||||
}
|
||||
|
||||
export interface ClosureSuccessorManagerVO {
|
||||
id: IdType
|
||||
nickname?: string
|
||||
shopId?: IdType
|
||||
}
|
||||
|
||||
export interface ContentModerationRecordVO {
|
||||
id: IdType
|
||||
contentType: string
|
||||
businessId?: IdType
|
||||
userId?: IdType
|
||||
status: string
|
||||
provider: string
|
||||
resultCode?: string
|
||||
reason?: string
|
||||
payloadJson?: string
|
||||
attemptCount?: number
|
||||
createTime?: string
|
||||
}
|
||||
|
||||
export interface PhoneBackfillReportVO {
|
||||
dryRun: boolean
|
||||
userRowsToUpdate: number
|
||||
orderRowsToUpdate: number
|
||||
userRowsUpdated: number
|
||||
orderRowsUpdated: number
|
||||
accountConflictRows: number
|
||||
phoneConflictRows: number
|
||||
conflictingUserIds: IdType[]
|
||||
}
|
||||
|
||||
export const adminPrivacyComplianceApi = {
|
||||
listClosures() {
|
||||
return adminApi.get<AccountClosureRequestVO[]>('/privacy/account-closure/pending') as unknown as Promise<AccountClosureRequestVO[]>
|
||||
},
|
||||
listSuccessorManagers() {
|
||||
return adminApi.get<ClosureSuccessorManagerVO[]>('/privacy/account-closure/successor-managers') as unknown as Promise<ClosureSuccessorManagerVO[]>
|
||||
},
|
||||
processClosure(id: IdType, data: { decision: string; successorManagerId?: IdType; archiveShopIds?: IdType[]; note?: string }) {
|
||||
return adminApi.post<boolean>(`/privacy/account-closure/${id}/process`, data)
|
||||
},
|
||||
listModeration() {
|
||||
return adminApi.get<ContentModerationRecordVO[]>('/privacy/content-moderation/pending') as unknown as Promise<ContentModerationRecordVO[]>
|
||||
},
|
||||
reviewContent(id: IdType, data: { approved: boolean; reason: string }) {
|
||||
return adminApi.post<boolean>(`/privacy/content-moderation/${id}/review`, data)
|
||||
},
|
||||
phoneBackfillReport() {
|
||||
return adminApi.get<PhoneBackfillReportVO>('/privacy/phone-backfill/report') as unknown as Promise<PhoneBackfillReportVO>
|
||||
},
|
||||
runPhoneBackfill() {
|
||||
return adminApi.post<PhoneBackfillReportVO>('/privacy/phone-backfill/run') as unknown as Promise<PhoneBackfillReportVO>
|
||||
}
|
||||
}
|
||||
|
||||
export { adminApi }
|
||||
export default adminApi
|
||||
|
||||
Reference in New Issue
Block a user