Merge branch 'refs/heads/develop'

This commit is contained in:
MHW
2026-03-14 20:47:07 +08:00
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));
}
}