|
|
@@ -902,7 +902,7 @@ public class DmIntentController extends BaseController<DmIntentQuery, DmIntentDt |
|
|
|
@Autowired |
|
|
|
private ISensitiveService sensitiveService; |
|
|
|
|
|
|
|
@GetMapping("/create-sensitive-lib") |
|
|
|
@GetMapping("/api/create-sensitive-lib") |
|
|
|
public AjaxResult addSensitiveBlack(@RequestParam("name") String name, @RequestParam(value = "category" ,required = false) String category, @RequestParam("type") String type){ |
|
|
|
try { |
|
|
|
String res = ""; |
|
|
@@ -921,7 +921,7 @@ public class DmIntentController extends BaseController<DmIntentQuery, DmIntentDt |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/add-sensitive-word") |
|
|
|
@GetMapping("/api/add-sensitive-word") |
|
|
|
public AjaxResult addSensitiveWord(@RequestParam("content") String content, @RequestParam("type") String type){ |
|
|
|
try { |
|
|
|
String res = ""; |
|
|
@@ -937,7 +937,7 @@ public class DmIntentController extends BaseController<DmIntentQuery, DmIntentDt |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/check-sensitive-word") |
|
|
|
@GetMapping("/api/check-sensitive-word") |
|
|
|
public AjaxResult addSensitiveWhite(@RequestParam("content") String content, @RequestParam(value = "useLib", required = false) Integer useLib){ |
|
|
|
String res = sensitiveService.checkSensitiveWord(content, useLib); |
|
|
|
logger.info("check-sensitive-word ,content:{}, res:{}",content, res); |
|
|
|