import { StreamableFile } from '@nestjs/common'; import { Response } from 'express'; import { FileService } from '../services/file.service'; /** * 文件访问控制器 * 提供文件下载和预览功能 * 注意:Controller 仅负责 HTTP 层逻辑,业务逻辑在 FileService */ export declare class FileAccessController { private readonly fileService; private readonly logger; constructor(fileService: FileService); /** * 通过文件 ID 下载/访问文件 * GET /files/:id */ getFile(id: string, res: Response): Promise; /** * 通过文件 ID 下载文件(强制下载) * GET /files/:id/download */ downloadFile(id: string, res: Response): Promise; }