| | |
| | | |
| | | @GetMapping("getDiagram") |
| | | @ApiOperation("信息") |
| | | public Result<ModelRbd> getDiagram(){ |
| | | ModelRbd data = modelLineService.getDiagram(); |
| | | public Result<ModelRbd> getDiagram(Long modelId){ |
| | | ModelRbd data = modelLineService.getDiagram(modelId); |
| | | |
| | | return Result.ok(data); |
| | | } |
| | |
| | | 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("解析失败"); |
| | | } |
| | | |
| | | } |