报表基础模块:模板导出支持pdf/word/excel

This commit is contained in:
gaoqr
2024-07-23 14:13:35 +08:00
parent b8227c1494
commit 9db35ced9e
3 changed files with 9 additions and 4 deletions
@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RequestBody;
public interface ReportTemplateApi {
String PREFIX = ApiConstants.PREFIX + "/template";
@PostMapping(value = PREFIX + "/excel")
@PostMapping(value = PREFIX + "/export")
@Operation(summary = "下载模板excel")
Response excel(@RequestBody ReportTemplateGenerateReqDTO reqDTO);
}
@@ -19,4 +19,8 @@ public class ReportTemplateGenerateReqDTO {
@Schema(description = "参数集合")
private Map<String, Object> params;
@Schema(description = "生成文件类型,pdf/word/excel")
@NotNull(message = "生成文件类型不能为空")
private String producerType;
}