mirror of
https://github.com/dataease/dataease.git
synced 2026-05-21 12:45:37 +08:00
feat(X-Pack): 新增视图插件demo
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user