26-03-14-20:46 通过平台id获取平台下所有组件

This commit is contained in:
MHW
2026-03-14 20:46:49 +08:00
parent c1c67e826b
commit f72105134f
6 changed files with 44 additions and 0 deletions

View File

@@ -52,4 +52,15 @@ public class FireRuleController extends BaseController {
public AjaxResult getCommPlatformComponentNames(Integer scenarioId){
return success(ruleService.getCommPlatformComponentNames(scenarioId));
}
/**
* 根据平台id获取平台下所有组件
* @param platformId
* @return
*/
@GetMapping("/component/{platformId}")
@ApiOperation("根据平台id获取平台下所有组件")
public AjaxResult getComponents(@PathVariable Integer platformId){
return success(ruleService.getComponents(platformId));
}
}