33 lines
953 B
Go
33 lines
953 B
Go
package service
|
||
|
||
import "be.ems/src/modules/network_element/model"
|
||
|
||
// INeVersion 网元版本信息 服务层接口
|
||
type INeVersion interface {
|
||
// SelectPage 根据条件分页查询字典类型
|
||
SelectPage(query map[string]any) map[string]any
|
||
|
||
// SelectList 根据实体查询
|
||
SelectList(neVersion model.NeVersion) []model.NeVersion
|
||
|
||
// SelectById 通过ID查询
|
||
SelectById(id string) model.NeVersion
|
||
|
||
// Insert 新增信息
|
||
Insert(neVersion model.NeVersion) string
|
||
|
||
// Update 修改信息
|
||
Update(neVersion model.NeVersion) int64
|
||
|
||
// DeleteByIds 批量删除信息
|
||
DeleteByIds(ids []string) (int64, error)
|
||
|
||
// SelectByNeTypeAndNeID 通过网元类型和网元ID查询
|
||
SelectByNeTypeAndNeID(neType, neId string) model.NeVersion
|
||
|
||
// Operate 操作版本上传到网元主机执行命令
|
||
//
|
||
// action 安装行为:install upgrade rollback
|
||
Operate(action string, neVersion model.NeVersion, preinput map[string]string) (string, error)
|
||
}
|