|
|
@@ -48,7 +48,7 @@ public class AppConfigPageController {
|
|
|
this.packerConfigRepository = packerConfigRepository;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "应用配置页面")
|
|
|
+ @ApiOperation(value = "应用配置列表页面")
|
|
|
@GetMapping
|
|
|
public String appConfigPage(@RequestParam(value = "env", required = false) String env,
|
|
|
@RequestParam(value = "type", required = false) String type,
|
|
|
@@ -84,6 +84,7 @@ public class AppConfigPageController {
|
|
|
return "/devops/app/config/index";
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "添加应用配置页面")
|
|
|
@GetMapping("/add")
|
|
|
public String addAppConfigPage(Model model) {
|
|
|
setAppModel(model);
|
|
|
@@ -126,6 +127,7 @@ public class AppConfigPageController {
|
|
|
model.addAttribute("packers", packers);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "编辑应用配置页面")
|
|
|
@GetMapping("/edit/{id}")
|
|
|
public String editAppConfigPage(@PathVariable("id") AppConfig app, Model model) {
|
|
|
setAppModel(model);
|
|
|
@@ -133,6 +135,7 @@ public class AppConfigPageController {
|
|
|
return "/devops/app/config/edit";
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "拷贝应用配置页面")
|
|
|
@GetMapping("/copy/{appId}")
|
|
|
public String copyAppConfigPage(@PathVariable("appId") String appId, Model model) {
|
|
|
List<KeyValue> envs = getEnvList();
|
|
|
@@ -150,6 +153,7 @@ public class AppConfigPageController {
|
|
|
return envs;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "应用配置详情页面")
|
|
|
@GetMapping("/detail/{appId}")
|
|
|
public String appConfigPage(@PathVariable("appId") String appId, Model model) {
|
|
|
AppConfig app = appBuildQuery.getAppConfig(appId);
|