| | |
| | | return Result.ok(data); |
| | | } |
| | | |
| | | @GetMapping("getDiagram") |
| | | @ApiOperation("信息") |
| | | public Result<ModelRbd> getDiagram(Long modelId){ |
| | | ModelRbd data = modelLineService.getDiagram(modelId); |
| | | |
| | | return Result.ok(data); |
| | | } |
| | | |
| | | @PostMapping |
| | | @ApiOperation("新增") |
| | | @LogOperation("新增") |
| | |
| | | @PutMapping |
| | | @ApiOperation("修改") |
| | | @LogOperation("修改") |
| | | public Result update(@RequestBody ModelLine modelLine){ |
| | | public Result update(@RequestBody ModelRbd modelRbd){ |
| | | //效验数据 |
| | | ValidatorUtils.validateEntity(modelLine, UpdateGroup.class, DefaultGroup.class); |
| | | modelLineService.update(modelLine); |
| | | ValidatorUtils.validateEntity(modelRbd, UpdateGroup.class, DefaultGroup.class); |
| | | modelLineService.update(modelRbd); |
| | | |
| | | return Result.ok(); |
| | | } |
| | |
| | | return Result.ok(); |
| | | } |
| | | |
| | | @PostMapping("analyze") |
| | | @ApiOperation("解析") |
| | | @LogOperation("解析") |
| | | public Result analyze(@RequestBody ModelRbd modelRbd){ |
| | | modelLineService.update(modelRbd); |
| | | boolean result = modelLineService.analyze(modelRbd); |
| | | return result ? Result.ok() : Result.error("解析失败"); |
| | | } |
| | | |
| | | } |