forked from github/dataease
Merge pull request #10965 from dataease/pr@dev-v2@feat_resource_export_picture
feat(X-Pack): 增加后台导出仪表板、大屏图片功能
This commit is contained in:
commit
8d244f1c1f
2
de-xpack
2
de-xpack
@ -1 +1 @@
|
||||
Subproject commit 697683f9f013c50fd6aef0a9d723b1876f7018af
|
||||
Subproject commit 5e9ea291de63ba42144f55ce2aba43abf6f9d906
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user