26-03-15-09:53 火力规则模块:获取通信组件的所有平台和组件 增加返回平台description字段

This commit is contained in:
MHW
2026-03-15 09:54:20 +08:00
parent cc01c9ece8
commit 7847dbc89f
4 changed files with 17 additions and 3 deletions

View File

@@ -53,8 +53,12 @@ public class FireRuleController extends BaseController {
return success(ruleService.getCommPlatformComponentNames(scenarioId));
}
/**
* 根据场景id获取所有平台及其组件
* @param scenarioId
* @return
*/
@GetMapping("/platforms/{scenarioId}")
@ApiOperation("获取通信组件的所有平台和组件")
public AjaxResult platforms(@PathVariable Integer scenarioId){
return success(ruleService.findPlatformComponents(scenarioId));
}