feat: 代码结构优化

This commit is contained in:
meilin.huang
2021-05-08 20:50:34 +08:00
parent 4660757de5
commit af0d51293e
19 changed files with 134 additions and 238 deletions

View File

@@ -38,6 +38,7 @@ func (m *machineApp) GetMachineList(condition *entity.Machine, pageParam *model.
// 根据条件获取机器信息
func (m *machineApp) Save(entity *entity.Machine) {
biz.ErrIsNil(machine.TestConn(entity), "该机器无法连接")
if entity.Id != 0 {
m.machineRepo.UpdateById(entity)
} else {