fix: 命名网元主机接口类文件名
This commit is contained in:
@@ -130,7 +130,7 @@ func (r *NeHostImpl) SelectList(neHost model.NeHost) []model.NeHost {
|
||||
var params []any
|
||||
if neHost.HostType != "" {
|
||||
conditions = append(conditions, "host_type = ?")
|
||||
params = append(params, neHost.GroupID)
|
||||
params = append(params, neHost.HostType)
|
||||
}
|
||||
if neHost.GroupID != "" {
|
||||
conditions = append(conditions, "group_id = ?")
|
||||
@@ -74,8 +74,8 @@ func (r *NeHostImpl) DeleteByIds(hostIds []string) (int64, error) {
|
||||
rows := r.neHostRepository.DeleteByIds(hostIds)
|
||||
return rows, nil
|
||||
}
|
||||
// 删除参数配置信息失败!
|
||||
return 0, fmt.Errorf("neHost.errDelete")
|
||||
// 删除信息失败!
|
||||
return 0, fmt.Errorf("delete fail")
|
||||
}
|
||||
|
||||
// CheckUniqueHostTitle 校验分组组和主机名称是否唯一
|
||||
|
||||
Reference in New Issue
Block a user