import api from './client' import type { ApiResponse, TrashListParams, TrashListResponse, TrashRetentionRequest, TrashBatchRequest, TrashBatchResult } from '@/types' export class TrashService { static async list(params: TrashListParams): Promise> { return api.get('/admin/trash/list', { params }) } static async restore(id: number): Promise { return api.post('/admin/trash/restore', { id }) } static async purge(id: number): Promise { return api.delete('/admin/trash/purge', { data: { id } }) } static async updateRetention(id: number, retention: TrashRetentionRequest): Promise { return api.post('/admin/trash/retention', { id, ...retention }) } static async batch(request: TrashBatchRequest): Promise> { return api.post('/admin/trash/batch', request) } }