feat: 网元软件包设为网元新版本的更新接口

This commit is contained in:
TsMask
2024-04-30 19:52:18 +08:00
parent 10ac5629a8
commit 4bbfc12c71
3 changed files with 51 additions and 0 deletions

View File

@@ -25,6 +25,9 @@ type INeSoftware interface {
// CheckUniqueTypeAndNameAndVersion 校验网元类型和文件名版本是否唯一
CheckUniqueTypeAndNameAndVersion(neType, name, version, id string) bool
// UpdateVersions 更新软件包对应网元的新版本
UpdateVersions(neSoftware model.NeSoftware, neVersion model.NeVersion) int64
// InstallToNeHost 安装包上传到网元主机执行安装命令
InstallToNeHost(neSoftware model.NeSoftware, preinput map[string]string) (string, error)
}