|
|
@@ -1,4 +1,4 @@
|
|
|
-import { addModel, addModelPlugin, debugModelPlugin, delModel, getModel, getModelById, getModelCount, getModelList, getModelPlugin, updateModelPlugin } from '@/api/iot/model'
|
|
|
+import { addModel, addModelPlugin, debugModelPlugin, delModel, getModel, getModelById, getModelCount, getModelList, getModelPlugin, getModelTemplate, getModelTemplateById, postModelTemplate, updateModelPlugin } from '@/api/iot/model'
|
|
|
import { message } from 'ant-design-vue'
|
|
|
|
|
|
export class ModelController {
|
|
|
@@ -56,4 +56,17 @@ export class ModelController {
|
|
|
static async debugPlugin (data: {input: string, pluginBody: string, decode: boolean}) {
|
|
|
return await debugModelPlugin(data)
|
|
|
}
|
|
|
+
|
|
|
+ static async modelTemplate (params: {page: number, pageSize: number, templateLabel: string}) {
|
|
|
+ return getModelTemplate(params)
|
|
|
+ }
|
|
|
+
|
|
|
+ static async modelTemplateById (id: string) {
|
|
|
+ return getModelTemplateById(id)
|
|
|
+ }
|
|
|
+
|
|
|
+ static async postModelTemplate (data: {modelId: string, templateLabel: string}) {
|
|
|
+ await postModelTemplate(data)
|
|
|
+ message.success('加入产品模型库列表成功')
|
|
|
+ }
|
|
|
}
|