# File Service 文件服务 - 文件上传、下载、预览、管理 ## 基本信息 - **服务端口**: 8082 - **服务名称**: file-service - **模块分支**: 业务域/功能模块 - **数据库**: erp_db ## 功能清单 1. 文件上传 2. 文件下载 3. 存储管理 ## API接口 | 方法 | 路径 | 描述 | |------|------|------| | GET | /api/files/{id} | FileController接口 | | GET | /api/files/statistics | FileController接口 | | GET | /api/files/modules | FileController接口 | | GET | /api/files/{id}/download | FileController接口 | | GET | /api/files/{id}/preview | FileController接口 | | GET | /api/files/config | FileController接口 | | POST | /api/files/upload | FileController接口 | | POST | /api/files/batch-upload | FileController接口 | | POST | /api/files/batch-delete | FileController接口 | | POST | /api/files/cleanup | FileController接口 | | PUT | /api/files/{id} | FileController接口 | | DELETE | /api/files/{id} | FileController接口 | ## 数据库表 | 表名 | 说明 | |------|------| | files | FileEntity | ## 配置文件 - bootstrap.yml: Nacos配置 - application.yml: 应用配置 ## 启动方式 ```bash mvn clean package java -jar target/file-service.jar ```