Просмотр исходного кода

CompilerController 添加"获取编译器版本信息"接口

reghao 2 месяцев назад
Родитель
Сommit
09adf2fdb4

+ 8 - 0
web/src/main/java/cn/reghao/bnt/web/devops/build/controller/CompilerController.java

@@ -106,4 +106,12 @@ public class CompilerController {
         Result result = compilerConfigService.delete(id);
         return WebResult.result(result);
     }
+
+    @Operation(summary = "获取编译器版本信息", description = "N")
+    @GetMapping(value = "/version", produces = MediaType.APPLICATION_JSON_VALUE)
+    @ResponseBody
+    public String getCompileVersion(@RequestParam("id") Integer id) {
+        String result = compilerConfigService.getCompilerVersion(id);
+        return WebResult.success(result);
+    }
 }