| | |
| | | return null; |
| | | } |
| | | byte[] bpmnBytes = modelService.getModelBpmnXML(id); |
| | | return success(BpmModelConvert.INSTANCE.buildModel(model, bpmnBytes)); |
| | | BpmSimpleModelNodeVO simpleModel = modelService.getSimpleModel(id); |
| | | return success(BpmModelConvert.INSTANCE.buildModel(model, bpmnBytes, simpleModel)); |
| | | } |
| | | |
| | | @PostMapping("/create") |
| | |
| | | public CommonResult<String> createModel(@Valid @RequestBody BpmModelSaveReqVO createRetVO) { |
| | | return success(modelService.createModel(createRetVO)); |
| | | } |
| | | |
| | | |
| | | @PutMapping("/update") |
| | | @Operation(summary = "修改模型") |
| | |
| | | return success(true); |
| | | } |
| | | |
| | | @Deprecated |
| | | @PutMapping("/update-bpmn") |
| | | @Operation(summary = "修改模型的 BPMN") |
| | | @PreAuthorize("@ss.hasPermission('bpm:model:update')") |
| | |
| | | return success(modelService.getSimpleModel(modelId)); |
| | | } |
| | | |
| | | @Deprecated |
| | | @PostMapping("/simple/update") |
| | | @Operation(summary = "保存仿钉钉流程设计模型") |
| | | @PreAuthorize("@ss.hasPermission('bpm:model:update')") |
| | |
| | | modelService.updateSimpleModel(getLoginUserId(), reqVO); |
| | | return success(Boolean.TRUE); |
| | | } |
| | | |
| | | |
| | | } |