|
@@ -16,18 +16,26 @@ public class RulesController {
|
|
|
|
|
|
@Autowired
|
|
|
private RulesService rulesService;
|
|
|
+
|
|
|
@RequestMapping("searchRules")
|
|
|
@ResponseBody
|
|
|
public List<RulesVO> queryRules(@RequestBody RulesVO rulesVO) {
|
|
|
return rulesService.queryAllRules(rulesVO);
|
|
|
}
|
|
|
+
|
|
|
@RequestMapping("addRule")
|
|
|
@ResponseBody
|
|
|
public void addRule(@RequestBody RulesVO rulesVO) {
|
|
|
rulesService.addRule(rulesVO);
|
|
|
}
|
|
|
+
|
|
|
+ @RequestMapping("deleteRule")
|
|
|
+ @ResponseBody
|
|
|
+ public void deleteRule(@RequestBody RulesVO rulesVO) {
|
|
|
+ rulesService.deleteRuleById(rulesVO);
|
|
|
+ }
|
|
|
@RequestMapping("RuleInfo")
|
|
|
- public RulesVO RuleInfo(RulesVO rulesVO){
|
|
|
+ public RulesVO RuleInfo(RulesVO rulesVO) {
|
|
|
return rulesService.queryRulesById(rulesVO);
|
|
|
}
|
|
|
}
|