| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获取预警规则") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:alert-rule:query')") |
| | | public CommonResult<BiAlertRuleDO> getRule(@RequestParam("id") Long id) { |
| | | return success(alertRuleService.getRule(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获取预警规则分页") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:alert-rule:query')") |
| | | public CommonResult<PageResult<BiAlertRuleDO>> getRulePage(@Valid DecisionAlertRulePageReqVO pageReq) { |
| | | return success(alertRuleService.getRulePage(pageReq)); |
| | | } |