refactor: streaming download, Git LFS templates, deploy workflow

- Replace base64 JSON response with StreamingResponseBody (zero-buffer)
- Error responses return JSON via GlobalExceptionHandler (400/404)
- Add git-lfs track for *.docx to keep repo lean
- Add deploy/deploy.sh: one-click build + restart
- Add deploy/clean-lfs.sh: periodic LFS cache cleanup
- Add deploy/gmp-service.service: systemd service unit
- Remove unused ApiResponse and DocxExportData DTOs
- Fix build.sh/run.sh jar name (gmp-mock-service -> gmp-service)
- Add TemplateNotFoundException for missing templates
This commit is contained in:
agentuser
2026-05-08 11:12:47 +08:00
parent ad4b0e93f0
commit 7442f77bd0
14 changed files with 296 additions and 105 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ mvn clean package -DskipTests
if [ $? -eq 0 ]; then
echo "===== 构建成功 ====="
JAR_PATH="target/gmp-mock-service.jar"
JAR_PATH="target/gmp-service.jar"
if [ -f "$JAR_PATH" ]; then
SIZE=$(du -h "$JAR_PATH" | cut -f1)
echo "JAR 文件: $JAR_PATH ($SIZE)"