public async Task DeleteAsync(BatchInput <long> input) { foreach (var id in input.Ids) { var picture = await _pictureManager.GetByIdAsync(id); //删除云存储资源文件 await _storageProvider.DeleteAsync(picture.Key); await _pictureManager.DeleteAsync(picture); } }