| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得动态表单") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('bpm:form:query')") |
| | | public CommonResult<BpmFormRespVO> getForm(@RequestParam("id") Long id) { |
| | | BpmFormDO form = formService.getForm(id); |
| | | return success(BeanUtils.toBean(form, BpmFormRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得动态表单分页") |
| | | @PreAuthorize("@ss.hasPermission('bpm:form:query')") |
| | | public CommonResult<PageResult<BpmFormRespVO>> getFormPage(@Valid BpmFormPageReqVO pageVO) { |
| | | PageResult<BpmFormDO> pageResult = formService.getFormPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, BpmFormRespVO.class)); |