KPluginPrivateModelLibrary
kds-plugin-document / Exports / KPluginPrivateModelLibrary
Interface: KPluginPrivateModelLibrary
Table of contents
Methods
Methods
addModelByGroupInstance
▸ addModelByGroupInstance(modelName
, kGroupInstance
, previewImg?
): HostPromise
<{ errorInfo?
: KErrorInfo
; isSuccess
: boolean
}>
添加groupInstance为模型
add groupInstance as the model. After creating the model, make sure to refresh the list promptly to see the latest data. The limit for adding models is 200
Parameters
Name | Type |
---|---|
modelName | string |
kGroupInstance | KGroupInstance |
previewImg? | string |
Returns
HostPromise
<{ errorInfo?
: KErrorInfo
; isSuccess
: boolean
}>
Defined in
api.d.ts:3668
addModelByProject
▸ addModelByProject(): HostPromise
<{ errorInfo?
: KErrorInfo
; isSuccess
: boolean
}>
添加当前方案为模型
add project as the model. After creating the model, make sure to refresh the list promptly to see the latest data. The limit for adding models is 200
Returns
HostPromise
<{ errorInfo?
: KErrorInfo
; isSuccess
: boolean
}>
Defined in
api.d.ts:3677
getModelList
▸ getModelList(start
, num
): HostPromise
<{ errorInfo?
: KErrorInfo
; modelList
: KPluginModelInfo
[] ; totalCount
: number
}>
获取模型列表
Get list of model library.
Parameters
Name | Type |
---|---|
start | number |
num | number |
Returns
HostPromise
<{ errorInfo?
: KErrorInfo
; modelList
: KPluginModelInfo
[] ; totalCount
: number
}>
Defined in
api.d.ts:3684
removeModel
▸ removeModel(projectId
): HostPromise
<{ errorInfo?
: KErrorInfo
; isSuccess
: boolean
}>
模型删除
remove model.
Parameters
Name | Type |
---|---|
projectId | string |
Returns
HostPromise
<{ errorInfo?
: KErrorInfo
; isSuccess
: boolean
}>
Defined in
api.d.ts:3698
renameModel
▸ renameModel(projectId
, name
): HostPromise
<{ errorInfo?
: KErrorInfo
; isSuccess
: boolean
}>
模型重命名
rename model.
Parameters
Name | Type |
---|---|
projectId | string |
name | string |
Returns
HostPromise
<{ errorInfo?
: KErrorInfo
; isSuccess
: boolean
}>
Defined in
api.d.ts:3691