|
@@ -8,6 +8,7 @@ import cn.reghao.autodop.dmaster.app.entity.config.orchestration.ProjOrchestrati
|
|
|
import cn.reghao.autodop.dmaster.app.service.crud.orchestarte.AppCrudService;
|
|
import cn.reghao.autodop.dmaster.app.service.crud.orchestarte.AppCrudService;
|
|
|
import cn.reghao.autodop.dmaster.app.service.crud.orchestarte.ProjCrudService;
|
|
import cn.reghao.autodop.dmaster.app.service.crud.orchestarte.ProjCrudService;
|
|
|
import cn.reghao.autodop.dmaster.app.vo.orchestration.AppVO;
|
|
import cn.reghao.autodop.dmaster.app.vo.orchestration.AppVO;
|
|
|
|
|
+import cn.reghao.autodop.dmaster.app.vo.orchestration.ProjVO;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -85,7 +86,8 @@ public class OrchestrateCrudController {
|
|
|
@ApiOperation(value = "添加项目编排")
|
|
@ApiOperation(value = "添加项目编排")
|
|
|
@PostMapping(value = "/proj", consumes = "application/json")
|
|
@PostMapping(value = "/proj", consumes = "application/json")
|
|
|
public ResponseEntity<String> addProjOrchestration(@RequestBody String json) throws Exception {
|
|
public ResponseEntity<String> addProjOrchestration(@RequestBody String json) throws Exception {
|
|
|
- ProjOrchestration proj = (ProjOrchestration) JsonConverter.jsonToObject(json, ProjOrchestration.class);
|
|
|
|
|
|
|
+ ProjVO projVO = (ProjVO) JsonConverter.jsonToObject(json, ProjVO.class);
|
|
|
|
|
+ ProjOrchestration proj = ProjVO.to(projVO);
|
|
|
projCrudService.addOrUpdate(proj);
|
|
projCrudService.addOrUpdate(proj);
|
|
|
return ResponseEntity.ok().body(WebResult.success("ok"));
|
|
return ResponseEntity.ok().body(WebResult.success("ok"));
|
|
|
}
|
|
}
|