Quellcode durchsuchen

优化 app 模块的代码结构

reghao vor 4 Jahren
Ursprung
Commit
17ddfd0714

+ 1 - 3
common/src/main/java/cn/reghao/autodop/common/docker/Docker.java

@@ -414,11 +414,9 @@ public class Docker implements ImageOps, ContainerOps, AutoCloseable {
             FullHttpResponse response = client.get(uri, null);
             if (response != null) {
                 String result =  response.content().toString(StandardCharsets.UTF_8);
-                System.out.println();
-            } else {
-
             }
         } catch (IOException | InterruptedException e) {
+            e.printStackTrace();
         }
     }
 }

+ 0 - 97
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/controller/BuildConfigController.java

@@ -1,97 +0,0 @@
-package cn.reghao.autodop.dmaster.app.controller;
-
-import cn.reghao.jdkutil.result.Result;
-import cn.reghao.autodop.dmaster.app.model.po.config.build.PackerConfig;
-import cn.reghao.autodop.dmaster.app.model.po.config.build.BuildDir;
-import cn.reghao.autodop.dmaster.app.db.crud.config.build.BuildDirCrudService;
-import cn.reghao.autodop.dmaster.app.model.po.config.build.CompilerConfig;
-import cn.reghao.autodop.dmaster.app.model.po.config.build.RepoAuthConfig;
-import cn.reghao.autodop.dmaster.app.db.crud.config.build.CompilerConfigCrudService;
-import cn.reghao.autodop.dmaster.app.db.crud.config.build.PackerConfigCrudService;
-import cn.reghao.autodop.dmaster.app.db.crud.config.build.RepoAuthConfigCrudService;
-import cn.reghao.jdkutil.result.WebBody;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.http.MediaType;
-import org.springframework.http.ResponseEntity;
-import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.*;
-
-/**
- * @author reghao
- * @date 2019-08-30 18:49:15
- */
-@Slf4j
-@Api(tags = "应用构建配置 CRUD 接口")
-@RestController
-@RequestMapping("/api/app/config/build")
-public class BuildConfigController {
-    private BuildDirCrudService buildDirCrudService;
-    private RepoAuthConfigCrudService repoAuthCrudService;
-    private CompilerConfigCrudService compilerCrudService;
-    private PackerConfigCrudService packerCrudService;
-
-    public BuildConfigController(BuildDirCrudService buildDirCrudService,
-                                 RepoAuthConfigCrudService repoAuthCrudService,
-                                 CompilerConfigCrudService compilerCrudService,
-                                 PackerConfigCrudService packerCrudService) {
-        this.buildDirCrudService = buildDirCrudService;
-        this.repoAuthCrudService = repoAuthCrudService;
-        this.compilerCrudService = compilerCrudService;
-        this.packerCrudService = packerCrudService;
-    }
-
-    /* 构建目录配置 */
-    @ApiOperation(value = "迁移构建目录")
-    @PostMapping(value = "/dir", produces = MediaType.APPLICATION_JSON_VALUE)
-    public ResponseEntity<String> modifyBuildDir(@Validated BuildDir buildDir) {
-        Result result = buildDirCrudService.update(buildDir);
-        return ResponseEntity.ok().body(WebBody.result(result));
-    }
-
-    /* 仓库认证配置 */
-    @ApiOperation(value = "添加/修改仓库认证配置")
-    @PostMapping(value = "/repoauth", produces = MediaType.APPLICATION_JSON_VALUE)
-    public ResponseEntity<String> addRepoConfig(@Validated RepoAuthConfig repoAuth) {
-        Result result = repoAuthCrudService.insertOrUpdate(repoAuth);
-        return ResponseEntity.ok().body(WebBody.result(result));
-    }
-
-    @ApiOperation(value = "删除仓库认证配置")
-    @DeleteMapping(value = "/repoauth/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
-    public ResponseEntity<String> deleteRepoConfig(@PathVariable("id") RepoAuthConfig repoAuth) {
-        Result result = repoAuthCrudService.delete(repoAuth);
-        return ResponseEntity.ok().body(WebBody.result(result));
-    }
-
-    /* 应用编译配置 */
-    @ApiOperation(value = "添加/修改应用编译配置")
-    @PostMapping(value = "/compiler", produces = MediaType.APPLICATION_JSON_VALUE)
-    public ResponseEntity<String> addCompileConfig(@Validated CompilerConfig compilerConfig) {
-        Result result = compilerCrudService.insertOrUpdate(compilerConfig);
-        return ResponseEntity.ok().body(WebBody.result(result));
-    }
-
-    @ApiOperation(value = "删除应用编译配置")
-    @DeleteMapping(value = "/compiler/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
-    public ResponseEntity<String> deleteCompileConfig(@PathVariable("id") CompilerConfig compilerConfig) {
-        Result result = compilerCrudService.delete(compilerConfig);
-        return ResponseEntity.ok().body(WebBody.result(result));
-    }
-
-    /* 应用打包配置 */
-    @ApiOperation(value = "添加应用打包配置")
-    @PostMapping(value = "/packer", produces = MediaType.APPLICATION_JSON_VALUE)
-    public ResponseEntity<String> addPackConfig(@Validated PackerConfig packerConfig) {
-        Result result = packerCrudService.insertOrUpdate(packerConfig);
-        return ResponseEntity.ok().body(WebBody.result(result));
-    }
-
-    @ApiOperation(value = "删除应用打包配置")
-    @DeleteMapping(value = "/packer/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
-    public ResponseEntity<String> deletePackConfig(@PathVariable("id") PackerConfig packerConfig) {
-        Result result = packerCrudService.delete(packerConfig);
-        return ResponseEntity.ok().body(WebBody.result(result));
-    }
-}

+ 8 - 36
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/controller/AppConfigController.java → dmaster/src/main/java/cn/reghao/autodop/dmaster/app/controller/config/AppConfigController.java

@@ -1,4 +1,4 @@
-package cn.reghao.autodop.dmaster.app.controller;
+package cn.reghao.autodop.dmaster.app.controller.config;
 
 import cn.reghao.autodop.dmaster.app.model.dto.DeployConfigs;
 import cn.reghao.autodop.dmaster.app.model.po.config.build.PackerConfig;
@@ -7,10 +7,8 @@ import cn.reghao.jdkutil.result.Result;
 import cn.reghao.jdkutil.result.ResultStatus;
 import cn.reghao.autodop.dmaster.app.model.vo.NewApp;
 import cn.reghao.autodop.dmaster.app.model.po.config.AppConfig;
-import cn.reghao.autodop.dmaster.app.model.po.config.ProjConfig;
 import cn.reghao.autodop.dmaster.notification.model.po.NotifyGroup;
 import cn.reghao.autodop.dmaster.app.db.crud.config.AppConfigCrud;
-import cn.reghao.autodop.dmaster.app.db.crud.config.ProjCrudService;
 import cn.reghao.jdkutil.result.WebBody;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -29,22 +27,19 @@ import java.util.List;
 @Slf4j
 @Api(tags = "应用配置 CRUD 接口")
 @RestController
-@RequestMapping("/api/app/config")
+@RequestMapping("/api/app/config/app")
 public class AppConfigController {
     private final AppConfigCrud appConfigCrud;
-    private final ProjCrudService projCrudService;
     private MachineHostQuery hostQuery;
 
-    public AppConfigController(AppConfigCrud appConfigCrud, ProjCrudService projCrudService,
-                               MachineHostQuery hostQuery) {
+    public AppConfigController(AppConfigCrud appConfigCrud, MachineHostQuery hostQuery) {
         this.appConfigCrud = appConfigCrud;
-        this.projCrudService = projCrudService;
         this.hostQuery = hostQuery;
     }
 
     /* 应用编排 */
     @ApiOperation(value = "添加/修改应用编排")
-    @PostMapping(value = "/app", produces = MediaType.APPLICATION_JSON_VALUE)
+    @PostMapping(produces = MediaType.APPLICATION_JSON_VALUE)
     public ResponseEntity<String> addAppOrchestration(@Validated AppConfig app) {
         Result result;
         try {
@@ -59,7 +54,7 @@ public class AppConfigController {
 
     // TODO 使用 @PathVariable 注解时会自动填充实体
     @ApiOperation(value = "复制应用编排")
-    @PostMapping(value = "/app/copy/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
+    @PostMapping(value = "/copy/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
     public ResponseEntity<String> copyAppOrchestration(@PathVariable("id") AppConfig app,
                                                        @Validated NewApp newApp) {
         Result result;
@@ -73,7 +68,7 @@ public class AppConfigController {
     }
 
     @ApiOperation(value = "设置应用通知")
-    @PostMapping(value = "/app/notify", produces = MediaType.APPLICATION_JSON_VALUE)
+    @PostMapping(value = "/notify", produces = MediaType.APPLICATION_JSON_VALUE)
     public ResponseEntity<String> appNotify(@RequestParam("id") AppConfig app,
                                             @RequestParam("groupId") List<NotifyGroup> notifyGroups) {
         app.setNotifyGroups(notifyGroups);
@@ -82,14 +77,14 @@ public class AppConfigController {
     }
 
     @ApiOperation(value = "删除应用编排")
-    @DeleteMapping(value = "/app/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
+    @DeleteMapping(value = "/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
     public ResponseEntity<String> deleteAppOrchestration(@PathVariable("id") AppConfig app) {
         Result result = appConfigCrud.delete(app);
         return ResponseEntity.ok().body(WebBody.result(result));
     }
 
     @ApiOperation(value = "应用部署配置")
-    @PostMapping(value = "/app/deploy", produces = MediaType.APPLICATION_JSON_VALUE)
+    @PostMapping(value = "/deploy", produces = MediaType.APPLICATION_JSON_VALUE)
     public ResponseEntity<String> appDeploy(@RequestParam("id") AppConfig app,
                                             @Validated DeployConfigs deployConfigs) {
         PackerConfig packerConfig = app.getPackerConfig();
@@ -104,27 +99,4 @@ public class AppConfigController {
         app.setDeployConfigs(deployConfigs.getDeployConfigs());
         return ResponseEntity.ok().body(WebBody.success());
     }
-
-    /* 项目编排 */
-    @ApiOperation(value = "添加/修改项目编排")
-    @PostMapping(value = "/proj", produces = MediaType.APPLICATION_JSON_VALUE)
-    public ResponseEntity<String> addProjOrchestration(@Validated ProjConfig proj) {
-        Result result = projCrudService.insertOrUpdate(proj);
-        return ResponseEntity.ok().body(WebBody.result(result));
-    }
-
-    @ApiOperation(value = "复制项目编排")
-    @PostMapping(value = "/proj/copy/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
-    public ResponseEntity<String> copyProjOrchestration(@PathVariable("id") ProjConfig proj,
-                                                        @Validated NewApp newApp) {
-        Result result = projCrudService.copy(proj, newApp);
-        return ResponseEntity.ok().body(WebBody.result(result));
-    }
-
-    @ApiOperation(value = "删除项目编排")
-    @DeleteMapping(value = "/proj/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
-    public ResponseEntity<String> deleteProjOrchestration(@PathVariable("id") ProjConfig proj) {
-        Result result = projCrudService.delete(proj);
-        return ResponseEntity.ok().body(WebBody.result(result));
-    }
 }

+ 36 - 0
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/controller/config/BuildDirController.java

@@ -0,0 +1,36 @@
+package cn.reghao.autodop.dmaster.app.controller.config;
+
+import cn.reghao.jdkutil.result.Result;
+import cn.reghao.autodop.dmaster.app.model.po.config.build.BuildDir;
+import cn.reghao.autodop.dmaster.app.db.crud.config.build.BuildDirCrudService;
+import cn.reghao.jdkutil.result.WebBody;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.http.MediaType;
+import org.springframework.http.ResponseEntity;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * @author reghao
+ * @date 2019-08-30 18:49:15
+ */
+@Slf4j
+@Api(tags = "构建目录配置接口")
+@RestController
+@RequestMapping("/api/app/config/build/dir")
+public class BuildDirController {
+    private BuildDirCrudService buildDirCrudService;
+
+    public BuildDirController(BuildDirCrudService buildDirCrudService) {
+        this.buildDirCrudService = buildDirCrudService;
+    }
+
+    @ApiOperation(value = "迁移构建目录")
+    @PostMapping(produces = MediaType.APPLICATION_JSON_VALUE)
+    public ResponseEntity<String> modifyBuildDir(@Validated BuildDir buildDir) {
+        Result result = buildDirCrudService.update(buildDir);
+        return ResponseEntity.ok().body(WebBody.result(result));
+    }
+}

+ 43 - 0
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/controller/config/CompilerController.java

@@ -0,0 +1,43 @@
+package cn.reghao.autodop.dmaster.app.controller.config;
+
+import cn.reghao.autodop.dmaster.app.db.crud.config.build.CompilerConfigCrudService;
+import cn.reghao.autodop.dmaster.app.model.po.config.build.CompilerConfig;
+import cn.reghao.jdkutil.result.Result;
+import cn.reghao.jdkutil.result.WebBody;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.http.MediaType;
+import org.springframework.http.ResponseEntity;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * @author reghao
+ * @date 2019-08-30 18:49:15
+ */
+@Slf4j
+@Api(tags = "应用编译配置接口")
+@RestController
+@RequestMapping("/api/app/config/build/compiler")
+public class CompilerController {
+    private CompilerConfigCrudService compilerCrudService;
+
+    public CompilerController(CompilerConfigCrudService compilerCrudService) {
+        this.compilerCrudService = compilerCrudService;
+    }
+
+    @ApiOperation(value = "添加/修改应用编译配置")
+    @PostMapping(value = "/compiler", produces = MediaType.APPLICATION_JSON_VALUE)
+    public ResponseEntity<String> addCompileConfig(@Validated CompilerConfig compilerConfig) {
+        Result result = compilerCrudService.insertOrUpdate(compilerConfig);
+        return ResponseEntity.ok().body(WebBody.result(result));
+    }
+
+    @ApiOperation(value = "删除应用编译配置")
+    @DeleteMapping(value = "/compiler/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
+    public ResponseEntity<String> deleteCompileConfig(@PathVariable("id") CompilerConfig compilerConfig) {
+        Result result = compilerCrudService.delete(compilerConfig);
+        return ResponseEntity.ok().body(WebBody.result(result));
+    }
+}

+ 43 - 0
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/controller/config/PackerController.java

@@ -0,0 +1,43 @@
+package cn.reghao.autodop.dmaster.app.controller.config;
+
+import cn.reghao.autodop.dmaster.app.db.crud.config.build.PackerConfigCrudService;
+import cn.reghao.autodop.dmaster.app.model.po.config.build.PackerConfig;
+import cn.reghao.jdkutil.result.Result;
+import cn.reghao.jdkutil.result.WebBody;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.http.MediaType;
+import org.springframework.http.ResponseEntity;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * @author reghao
+ * @date 2019-08-30 18:49:15
+ */
+@Slf4j
+@Api(tags = "应用打包配置接口")
+@RestController
+@RequestMapping("/api/app/config/build/packer")
+public class PackerController {
+    private PackerConfigCrudService packerCrudService;
+
+    public PackerController(PackerConfigCrudService packerCrudService) {
+        this.packerCrudService = packerCrudService;
+    }
+
+    @ApiOperation(value = "添加应用打包配置")
+    @PostMapping(value = "/packer", produces = MediaType.APPLICATION_JSON_VALUE)
+    public ResponseEntity<String> addPackConfig(@Validated PackerConfig packerConfig) {
+        Result result = packerCrudService.insertOrUpdate(packerConfig);
+        return ResponseEntity.ok().body(WebBody.result(result));
+    }
+
+    @ApiOperation(value = "删除应用打包配置")
+    @DeleteMapping(value = "/packer/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
+    public ResponseEntity<String> deletePackConfig(@PathVariable("id") PackerConfig packerConfig) {
+        Result result = packerCrudService.delete(packerConfig);
+        return ResponseEntity.ok().body(WebBody.result(result));
+    }
+}

+ 57 - 0
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/controller/config/ProjConfigController.java

@@ -0,0 +1,57 @@
+package cn.reghao.autodop.dmaster.app.controller.config;
+
+import cn.reghao.autodop.dmaster.app.db.crud.config.AppConfigCrud;
+import cn.reghao.autodop.dmaster.app.db.crud.config.ProjCrudService;
+import cn.reghao.autodop.dmaster.app.model.po.config.ProjConfig;
+import cn.reghao.autodop.dmaster.app.model.vo.NewApp;
+import cn.reghao.autodop.dmaster.machine.db.query.MachineHostQuery;
+import cn.reghao.jdkutil.result.Result;
+import cn.reghao.jdkutil.result.WebBody;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.http.MediaType;
+import org.springframework.http.ResponseEntity;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+/**
+ * @author reghao
+ * @date 2019-11-27 11:29:43
+ */
+@Slf4j
+@Api(tags = "应用配置 CRUD 接口")
+@RestController
+@RequestMapping("/api/app/config/proj")
+public class ProjConfigController {
+    private final ProjCrudService projCrudService;
+
+    public ProjConfigController(ProjCrudService projCrudService) {
+        this.projCrudService = projCrudService;
+    }
+
+    /* 项目编排 */
+    @ApiOperation(value = "添加/修改项目编排")
+    @PostMapping(produces = MediaType.APPLICATION_JSON_VALUE)
+    public ResponseEntity<String> addProjOrchestration(@Validated ProjConfig proj) {
+        Result result = projCrudService.insertOrUpdate(proj);
+        return ResponseEntity.ok().body(WebBody.result(result));
+    }
+
+    @ApiOperation(value = "复制项目编排")
+    @PostMapping(value = "/copy/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
+    public ResponseEntity<String> copyProjOrchestration(@PathVariable("id") ProjConfig proj,
+                                                        @Validated NewApp newApp) {
+        Result result = projCrudService.copy(proj, newApp);
+        return ResponseEntity.ok().body(WebBody.result(result));
+    }
+
+    @ApiOperation(value = "删除项目编排")
+    @DeleteMapping(value = "/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
+    public ResponseEntity<String> deleteProjOrchestration(@PathVariable("id") ProjConfig proj) {
+        Result result = projCrudService.delete(proj);
+        return ResponseEntity.ok().body(WebBody.result(result));
+    }
+}

+ 46 - 0
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/controller/config/RepoAuthController.java

@@ -0,0 +1,46 @@
+package cn.reghao.autodop.dmaster.app.controller.config;
+
+import cn.reghao.autodop.dmaster.app.db.crud.config.build.BuildDirCrudService;
+import cn.reghao.autodop.dmaster.app.db.crud.config.build.CompilerConfigCrudService;
+import cn.reghao.autodop.dmaster.app.db.crud.config.build.PackerConfigCrudService;
+import cn.reghao.autodop.dmaster.app.db.crud.config.build.RepoAuthConfigCrudService;
+import cn.reghao.autodop.dmaster.app.model.po.config.build.RepoAuthConfig;
+import cn.reghao.jdkutil.result.Result;
+import cn.reghao.jdkutil.result.WebBody;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.http.MediaType;
+import org.springframework.http.ResponseEntity;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * @author reghao
+ * @date 2019-08-30 18:49:15
+ */
+@Slf4j
+@Api(tags = "仓库认证配置接口")
+@RestController
+@RequestMapping("/api/app/config/build/repoauth")
+public class RepoAuthController {
+    private RepoAuthConfigCrudService repoAuthCrudService;
+
+    public RepoAuthController(RepoAuthConfigCrudService repoAuthCrudService) {
+        this.repoAuthCrudService = repoAuthCrudService;
+    }
+
+    @ApiOperation(value = "添加/修改仓库认证配置")
+    @PostMapping(produces = MediaType.APPLICATION_JSON_VALUE)
+    public ResponseEntity<String> addRepoConfig(@Validated RepoAuthConfig repoAuth) {
+        Result result = repoAuthCrudService.insertOrUpdate(repoAuth);
+        return ResponseEntity.ok().body(WebBody.result(result));
+    }
+
+    @ApiOperation(value = "删除仓库认证配置")
+    @DeleteMapping(value = "/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
+    public ResponseEntity<String> deleteRepoConfig(@PathVariable("id") RepoAuthConfig repoAuth) {
+        Result result = repoAuthCrudService.delete(repoAuth);
+        return ResponseEntity.ok().body(WebBody.result(result));
+    }
+}

+ 11 - 0
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/service/BuildDeployService.java

@@ -0,0 +1,11 @@
+package cn.reghao.autodop.dmaster.app.service;
+
+/**
+ * @author reghao
+ * @date 2021-09-17 11:30:16
+ */
+public interface BuildDeployService {
+    String build(String appId);
+    String build(String appId, String commitId);
+    boolean deploy(String appId, String commitId);
+}

+ 22 - 0
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/service/BuildDeployServiceImpl.java

@@ -0,0 +1,22 @@
+package cn.reghao.autodop.dmaster.app.service;
+
+/**
+ * @author reghao
+ * @date 2021-09-17 11:30:16
+ */
+public class BuildDeployServiceImpl implements BuildDeployService {
+    @Override
+    public String build(String appId) {
+        return "";
+    }
+
+    @Override
+    public String build(String appId, String commitId) {
+        return "";
+    }
+
+    @Override
+    public boolean deploy(String appId, String commitId) {
+        return false;
+    }
+}

+ 8 - 0
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/service/config/BuildDirService.java

@@ -0,0 +1,8 @@
+package cn.reghao.autodop.dmaster.app.service.config;
+
+/**
+ * @author reghao
+ * @date 2021-09-17 15:56:49
+ */
+public interface BuildDirService {
+}

+ 8 - 0
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/service/config/CompilerConfig.java

@@ -0,0 +1,8 @@
+package cn.reghao.autodop.dmaster.app.service.config;
+
+/**
+ * @author reghao
+ * @date 2021-09-17 15:54:07
+ */
+public interface CompilerConfig {
+}

+ 8 - 0
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/service/config/PackerConfig.java

@@ -0,0 +1,8 @@
+package cn.reghao.autodop.dmaster.app.service.config;
+
+/**
+ * @author reghao
+ * @date 2021-09-17 15:54:16
+ */
+public interface PackerConfig {
+}

+ 1 - 1
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/service/config/BuildConfigService.java → dmaster/src/main/java/cn/reghao/autodop/dmaster/app/service/config/RepoAuthService.java

@@ -4,5 +4,5 @@ package cn.reghao.autodop.dmaster.app.service.config;
  * @author reghao
  * @date 2021-09-17 10:16:07
  */
-public interface BuildConfigService {
+public interface RepoAuthService {
 }