fix: 命名网元主机接口类文件名

This commit is contained in:
TsMask
2024-02-26 16:55:36 +08:00
parent b98439fd0b
commit bf506a80af
2 changed files with 3 additions and 3 deletions

View File

@@ -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 = ?")

View File

@@ -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 校验分组组和主机名称是否唯一