feat: 网元软件接口安装接口

This commit is contained in:
TsMask
2024-03-12 09:51:11 +08:00
parent 3f02e2e557
commit d20dc98123
7 changed files with 61 additions and 14 deletions

View File

@@ -24,4 +24,7 @@ type INeSoftware interface {
// CheckUniqueTypeAndFileNameAndVersion 校验网元类型和文件名版本是否唯一
CheckUniqueTypeAndFileNameAndVersion(neType, fileName, version, id string) bool
// Install 安装软件包
Install(neSoftware model.NeSoftware) (string, error)
}

View File

@@ -78,3 +78,8 @@ func (r *NeSoftwareImpl) CheckUniqueTypeAndFileNameAndVersion(neType, fileName,
}
return uniqueId == ""
}
// Install 安装软件包
func (r *NeSoftwareImpl) Install(neSoftware model.NeSoftware) (string, error) {
return "", nil
}