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