Files
Dokumenten-Check/dc-backend/src/main/java/de/frigosped/dc/model/ProgressRequest.java
Wolf G. Beckmann 522bc21439 feat: Add Markdown export service for DOCX and PDF formats
- Implemented MarkdownExportService to convert Markdown text into DOCX and PDF formats.
- Supported Markdown elements include headings, bold, italic, blockquotes, tables, and specific emojis.
- Added methods for generating DOCX and PDF documents with proper formatting and rendering.
- Enhanced application properties to enable logging for production environment.
- Introduced a test-run script to reset project state and trigger processing via API.

Co-authored-by: Copilot <copilot@github.com>
2026-04-28 14:32:45 +02:00

53 lines
2.1 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package de.frigosped.dc.model;
/**
* Request-Body für PUT /api/dc/projects/:id/progress
*
* Felder (alle optional null = nicht aktualisieren):
* progress 0100 Prozent
* currentPhase OCR | QUESTIONS | COMPLETED
* currentDocId ID des aktuell verarbeiteten Dokuments
* currentQuestionId ID der aktuell ausgewerteten Frage (null bei OCR)
* estimatedCompletionAt ISO-8601-Zeitstempel (Schätzung Fertigstellung)
*
* Jackson serialisiert camelCase → snake_case (quarkus.jackson.property-naming-strategy=SNAKE_CASE).
*/
public class ProgressRequest {
private Integer progress;
private String currentPhase;
private Long currentDocId;
private Long currentQuestionId;
private String estimatedCompletionAt;
public ProgressRequest() {}
public ProgressRequest(int progress) {
this.progress = progress;
}
public ProgressRequest(int progress, String currentPhase, Long currentDocId,
Long currentQuestionId, String estimatedCompletionAt) {
this.progress = progress;
this.currentPhase = currentPhase;
this.currentDocId = currentDocId;
this.currentQuestionId = currentQuestionId;
this.estimatedCompletionAt = estimatedCompletionAt;
}
public Integer getProgress() { return progress; }
public void setProgress(Integer v) { this.progress = v; }
public String getCurrentPhase() { return currentPhase; }
public void setCurrentPhase(String v) { this.currentPhase = v; }
public Long getCurrentDocId() { return currentDocId; }
public void setCurrentDocId(Long v) { this.currentDocId = v; }
public Long getCurrentQuestionId() { return currentQuestionId; }
public void setCurrentQuestionId(Long v) { this.currentQuestionId = v; }
public String getEstimatedCompletionAt() { return estimatedCompletionAt; }
public void setEstimatedCompletionAt(String v) { this.estimatedCompletionAt = v; }
}