feat: 完成数据库端口修改功能

This commit is contained in:
ssongliu
2022-11-08 14:34:41 +08:00
committed by ssongliu
parent 85419b6dd4
commit 8431f49c47
14 changed files with 152 additions and 11 deletions

View File

@@ -224,7 +224,7 @@ func (u *MysqlService) ChangeInfo(info dto.ChangeDBInfo) error {
}
}
}
_ = mysqlRepo.UpdateDatabasePassword(app.ID, map[string]interface{}{
_ = mysqlRepo.UpdateDatabaseInfo(app.ID, map[string]interface{}{
"param": strings.ReplaceAll(app.Param, app.Password, info.Value),
"env": strings.ReplaceAll(app.Env, app.Password, info.Value),
})