| | |
| | | */ |
| | | @Tag(name = "数据平台 - 指标数据集字段") |
| | | @RestController |
| | | @RequestMapping("/data/ind-data-set-field") |
| | | @RequestMapping("/data/ind/data-set-field") |
| | | @Validated |
| | | public class IndDataSetFieldController { |
| | | |
| | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获取指标数据集字段列表", description = "用于【指标数据集字段】界面") |
| | | @PreAuthorize("@ss.hasPermission('data:ind-data-set:query')") |
| | | public CommonResult<PageResult<IndDataSetRespVO>> page(IndDataSetFieldPageReqVO reqVO) { |
| | | public CommonResult<PageResult<IndDataSetFieldRespVO>> page(IndDataSetFieldPageReqVO reqVO) { |
| | | PageResult<IndDataSetFieldEntity> page = indDataSetFieldService.page(reqVO); |
| | | return success(BeanUtils.toBean(page, IndDataSetRespVO.class)); |
| | | return success(BeanUtils.toBean(page, IndDataSetFieldRespVO.class)); |
| | | } |
| | | |
| | | @PostMapping("/create") |
| | |
| | | |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除指标数据集字段") |
| | | @Parameter(name = "id", description = "指标数据集字段编号", required= true, example = "1024") |
| | | @Parameter(name = "id", description = "指标数据集字段编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('data:ind-data-set:delete')") |
| | | public CommonResult<Boolean> delete(@RequestParam("id") String id) { |
| | | indDataSetFieldService.delete(id); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获取指标数据集字段信息") |
| | | @PreAuthorize("@ss.hasPermission('system:ind-data-set:query')") |
| | | public CommonResult<IndDataSetRespVO> get(String id) { |
| | | public CommonResult<IndDataSetFieldRespVO> get(String id) { |
| | | IndDataSetFieldEntity entity = indDataSetFieldService.get(id); |
| | | return success(BeanUtils.toBean(entity, IndDataSetRespVO.class)); |
| | | return success(BeanUtils.toBean(entity, IndDataSetFieldRespVO.class)); |
| | | } |
| | | } |