feat(X-Pack): 新增视图插件demo

This commit is contained in:
fit2cloud-chenyw
2024-06-17 09:47:59 +08:00
parent a9bee350b5
commit 9f54efbf82
18 changed files with 322 additions and 17 deletions

View File

@@ -1,6 +1,7 @@
package io.dataease.api.xpack.component;
import io.dataease.api.xpack.component.vo.XpackMenuVO;
import io.dataease.api.xpack.component.vo.XpackPluginsViewVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@@ -11,6 +12,12 @@ public interface XpackComponentApi {
@GetMapping("/content/{name}")
String content(@PathVariable("name") String name);
@GetMapping("/contentPlugin/{name}")
String pluginContent(@PathVariable("name") String name);
@GetMapping("/menu")
List<XpackMenuVO> menu();
@GetMapping("/viewPlugins")
List<XpackPluginsViewVO> viewPlugins();
}

View File

@@ -0,0 +1,29 @@
package io.dataease.api.xpack.component.vo;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
@Data
public class XpackPluginsViewVO implements Serializable {
@Serial
private static final long serialVersionUID = 5059944608544058565L;
private Long id;
private String name;
private String icon;
private String category;
private String title;
private String chartValue;
private String chartTitle;
private String render;
}