保存抓取规则功能
This commit is contained in:
+27
@@ -177,4 +177,31 @@ public class DeptIdentifyController extends BaseController {
|
||||
public AjaxResult bindHandler(DeptIdentify deptIdentify){
|
||||
return deptIdentifyService.bindHandler(deptIdentify);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据模板id查询抓取规则
|
||||
* @param templateManage
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/getFatchRuleByTemplateid")
|
||||
public AjaxResult getFatchRuleByTemplateid(@RequestBody TemplateManage templateManage){
|
||||
List<FatchRule> fatchRuleList = deptIdentifyService.getFatchRuleByTemplateid(templateManage);
|
||||
return AjaxResult.success(fatchRuleList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存抓取规则
|
||||
* @param templateManage
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/saveFatchRules")
|
||||
public AjaxResult saveFatchRules(@RequestBody TemplateManage templateManage){
|
||||
return deptIdentifyService.saveFatchRules(templateManage);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user