【功能新增】IOT: 添加插件管理功能,包括插件列表、详情、状态更新及文件上传功能

This commit is contained in:
安浩浩
2024-12-30 12:03:30 +08:00
parent 5d2adcac19
commit e6a5bb0293
7 changed files with 238 additions and 125 deletions

View File

@ -47,5 +47,15 @@ export const PluginInfoApi = {
// 导出IoT 插件信息 Excel
exportPluginInfo: async (params) => {
return await request.download({ url: `/iot/plugin-info/export-excel`, params })
},
// 修改IoT 插件状态
updatePluginStatus: async (data: any) => {
return await request.put({ url: `/iot/plugin-info/update-status`, data })
},
// 上传Jar包
uploadPluginFile: async (data: any) => {
return await request.post({ url: `/iot/plugin-info/upload-file`, data })
}
}