feat: add batch file policy actions

This commit is contained in:
Lan
2026-06-03 06:22:56 +08:00
parent 47edefbdd7
commit 24b92fe1ac
6 changed files with 190 additions and 5 deletions
+11
View File
@@ -323,6 +323,17 @@ export interface AdminBatchUpdateFilesResponse {
failed?: AdminBatchUpdateFileFailure[]
}
export interface AdminBatchPolicyActionRequest {
ids: number[]
action: AdminFilePolicyAction
downloadLimit?: number
download_limit?: number
}
export interface AdminBatchPolicyActionResponse extends AdminBatchUpdateFilesResponse {
action?: AdminFilePolicyAction | string
}
export type AdminBatchEditMode = 'expiresAt' | 'downloadLimit' | 'forever'
export interface AdminBatchEditForm {