|
|
@ -112,7 +112,7 @@ public class IpFilterController extends BaseController { |
|
|
|
public R add(@Validated(AddGroup.class) @RequestBody IpFilter bo) { |
|
|
|
iIpFilterService.save(bo); |
|
|
|
iIpFilterService.updateBlackIpList(); |
|
|
|
return R.ok(); |
|
|
|
return R.ok(bo); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -142,4 +142,18 @@ public class IpFilterController extends BaseController { |
|
|
|
iIpFilterService.updateBlackIpList(); |
|
|
|
return R.ok(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 删除IP黑名单管理(自动化测试) |
|
|
|
* |
|
|
|
* @param id 主键串 |
|
|
|
*/ |
|
|
|
@SaCheckPermission("system:filter:remove") |
|
|
|
@Log(title = "IP黑名单管理", businessType = BusinessType.DELETE) |
|
|
|
@DeleteMapping("/AutomatedTest/{id}") |
|
|
|
public R<Void> removeAutomatedTest(@PathVariable Long id) { |
|
|
|
iIpFilterService.removeById(id); |
|
|
|
iIpFilterService.updateBlackIpList(); |
|
|
|
return R.ok(); |
|
|
|
} |
|
|
|
} |