|
@@ -4,13 +4,10 @@ import cn.reghao.autodop.common.msg.rpc.dto.app.PackType;
|
|
|
import cn.reghao.autodop.dmaster.app.db.query.config.*;
|
|
import cn.reghao.autodop.dmaster.app.db.query.config.*;
|
|
|
import cn.reghao.autodop.dmaster.app.model.constant.AppType;
|
|
import cn.reghao.autodop.dmaster.app.model.constant.AppType;
|
|
|
import cn.reghao.autodop.dmaster.app.model.constant.EnvList;
|
|
import cn.reghao.autodop.dmaster.app.model.constant.EnvList;
|
|
|
-import cn.reghao.autodop.dmaster.app.model.po.config.AppDeployConfig;
|
|
|
|
|
import cn.reghao.autodop.dmaster.machine.db.query.MachineHostQuery;
|
|
import cn.reghao.autodop.dmaster.machine.db.query.MachineHostQuery;
|
|
|
-import cn.reghao.autodop.dmaster.notification.model.po.NotifyGroup;
|
|
|
|
|
import cn.reghao.autodop.dmaster.notification.model.po.NotifyType;
|
|
import cn.reghao.autodop.dmaster.notification.model.po.NotifyType;
|
|
|
import cn.reghao.autodop.dmaster.app.model.po.config.AppConfig;
|
|
import cn.reghao.autodop.dmaster.app.model.po.config.AppConfig;
|
|
|
import cn.reghao.autodop.dmaster.app.model.vo.KeyValue;
|
|
import cn.reghao.autodop.dmaster.app.model.vo.KeyValue;
|
|
|
-import cn.reghao.autodop.dmaster.notification.db.repository.NotifyGroupRepository;
|
|
|
|
|
import cn.reghao.autodop.dmaster.util.db.PageList;
|
|
import cn.reghao.autodop.dmaster.util.db.PageList;
|
|
|
import cn.reghao.autodop.dmaster.util.db.PageSort;
|
|
import cn.reghao.autodop.dmaster.util.db.PageSort;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
@@ -40,20 +37,15 @@ public class AppConfigPageController {
|
|
|
private final CompilerConfigQuery compilerConfigQuery;
|
|
private final CompilerConfigQuery compilerConfigQuery;
|
|
|
private final PackerConfigQuery packerConfigQuery;
|
|
private final PackerConfigQuery packerConfigQuery;
|
|
|
private final MachineHostQuery hostQuery;
|
|
private final MachineHostQuery hostQuery;
|
|
|
- private final NotifyGroupRepository receiverRepository;
|
|
|
|
|
- private final AppDeployConfigQuery deployConfigQuery;
|
|
|
|
|
|
|
|
|
|
public AppConfigPageController(AppConfigQuery appConfigQuery, RepoAuthConfigQuery repoAuthConfigQuery,
|
|
public AppConfigPageController(AppConfigQuery appConfigQuery, RepoAuthConfigQuery repoAuthConfigQuery,
|
|
|
CompilerConfigQuery compilerConfigQuery, PackerConfigQuery packerConfigQuery,
|
|
CompilerConfigQuery compilerConfigQuery, PackerConfigQuery packerConfigQuery,
|
|
|
- MachineHostQuery hostQuery, NotifyGroupRepository receiverRepository,
|
|
|
|
|
- AppDeployConfigQuery deployConfigQuery) {
|
|
|
|
|
|
|
+ MachineHostQuery hostQuery) {
|
|
|
this.appConfigQuery = appConfigQuery;
|
|
this.appConfigQuery = appConfigQuery;
|
|
|
this.repoAuthConfigQuery = repoAuthConfigQuery;
|
|
this.repoAuthConfigQuery = repoAuthConfigQuery;
|
|
|
this.compilerConfigQuery = compilerConfigQuery;
|
|
this.compilerConfigQuery = compilerConfigQuery;
|
|
|
this.packerConfigQuery = packerConfigQuery;
|
|
this.packerConfigQuery = packerConfigQuery;
|
|
|
this.hostQuery = hostQuery;
|
|
this.hostQuery = hostQuery;
|
|
|
- this.receiverRepository = receiverRepository;
|
|
|
|
|
- this.deployConfigQuery = deployConfigQuery;
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation(value = "应用配置页面")
|
|
@ApiOperation(value = "应用配置页面")
|
|
@@ -171,17 +163,4 @@ public class AppConfigPageController {
|
|
|
model.addAttribute("app", app);
|
|
model.addAttribute("app", app);
|
|
|
return "/app/config/app/detail";
|
|
return "/app/config/app/detail";
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- @Deprecated
|
|
|
|
|
- @ApiOperation(value = "通知配置页面")
|
|
|
|
|
- @GetMapping("/notify/{id}")
|
|
|
|
|
- public String receiverIdsPage(@PathVariable("id") AppConfig app, Model model) {
|
|
|
|
|
- /*Set<NotifyGroup> currentSet = new HashSet<>(app.getNotifyGroups());
|
|
|
|
|
- List<NotifyGroup> list = receiverRepository.findAll();
|
|
|
|
|
-
|
|
|
|
|
- model.addAttribute("id", app.getId());
|
|
|
|
|
- model.addAttribute("currentSet", currentSet);
|
|
|
|
|
- model.addAttribute("list", list);*/
|
|
|
|
|
- return "/app/config/app/notify";
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|