|
|
@@ -0,0 +1,26 @@
|
|
|
+package org.jetlinks.community.rule.engine.web;
|
|
|
+
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import org.hswebframework.web.authorization.annotation.Resource;
|
|
|
+import org.hswebframework.web.crud.service.ReactiveCrudService;
|
|
|
+import org.hswebframework.web.crud.web.reactive.ReactiveServiceCrudController;
|
|
|
+import org.jetlinks.community.rule.engine.entity.RuleSceneEntity;
|
|
|
+import org.jetlinks.community.rule.engine.service.RuleSceneService;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("rule-engine/scene")
|
|
|
+@Resource(id = "rule-engine/scene", name = "规则引擎-场景联动")
|
|
|
+@AllArgsConstructor
|
|
|
+public class RuleSceneController implements ReactiveServiceCrudController<RuleSceneEntity, String> {
|
|
|
+
|
|
|
+
|
|
|
+ private final RuleSceneService sceneService;
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public ReactiveCrudService<RuleSceneEntity, String> getService() {
|
|
|
+ return sceneService;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|