Merge pull request #10965 from dataease/pr@dev-v2@feat_resource_export_picture

feat(X-Pack): 增加后台导出仪表板、大屏图片功能
This commit is contained in:
fit2cloud-chenyw 2024-07-15 18:52:12 +08:00 committed by GitHub
commit 8d244f1c1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 28 additions and 1 deletions

@ -1 +1 @@
Subproject commit 697683f9f013c50fd6aef0a9d723b1876f7018af
Subproject commit 5e9ea291de63ba42144f55ce2aba43abf6f9d906

View File

@ -11,6 +11,8 @@ import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.core.io.ByteArrayResource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
@ -75,4 +77,7 @@ public interface ReportApi {
@PostMapping("/logMsg")
String logMsg(@RequestBody ReportInstanceMsgRequest request);
@PostMapping("/export")
ResponseEntity<ByteArrayResource> export(@RequestBody ReportExportRequest request);
}

View File

@ -0,0 +1,22 @@
package io.dataease.api.report.dto;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
@Data
public class ReportExportRequest implements Serializable {
@Serial
private static final long serialVersionUID = -5372551595882128201L;
private Long resourceId;
private String busiType;
private String pixel;
private Integer extWaitTime = 0;
private Integer resultFormat = 0;
}