You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
### 插件调试环境搭建
|
|
|
|
1. clone仓库到BI仓库同级目录,编辑nuclear-maven的pom.xml,引用插件目录
|
|
|
|

|
|
|
|
|
|
|
|
2. 在工程目录的WEB-INF的plugins文件夹下新建如图文件夹,将工程中的plugin.xml复制过去(或者直接安装根目录中打包好的zip插件,会自动建这样的文件夹)
|
|
|
|

|
|
|
|
|
|
|
|
3. 修改插件pom中的output,改成工程中插件文件夹的classes即可。
|
|
|
|

|
|
|
|
4. 正常build,起工程,断点调试
|
|
|
|
### 打包插件
|
|
|
|
1. 修改build.xml的jdk.home和classes
|
|
|
|

|
|
|
|
2. idea的ant直接添加工程中的build.xml即可
|
|
|
|

|
|
|
|
3. build后会生成classes,然后直接打包即可
|
|
|
|
### 接口约定
|
|
|
|
url: /app/decision/v5/plugin/design/widgets/data
|
|
|
|
|
|
|
|
method: POST
|
|
|
|
|
|
|
|
请求体
|
|
|
|
```
|
|
|
|
{
|
|
|
|
widgets: {
|
|
|
|
组件id: 之前发送的组件信息
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
返回体
|
|
|
|
```
|
|
|
|
{
|
|
|
|
status: 200,
|
|
|
|
...
|
|
|
|
data: {
|
|
|
|
组件id: {
|
|
|
|
status: 200,
|
|
|
|
data: 之前的组件数据
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|