mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
Merge pull request #10965 from dataease/pr@dev-v2@feat_resource_export_picture
feat(X-Pack): 增加后台导出仪表板、大屏图片功能
This commit is contained in:
2
de-xpack
2
de-xpack
Submodule de-xpack updated: 697683f9f0...5e9ea291de
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user