add delete acl entry from acl detail

This commit is contained in:
许晓东
2021-09-04 18:21:47 +08:00
parent 399d67fd3c
commit bb8db4f6f3
6 changed files with 49 additions and 5 deletions

View File

@@ -72,6 +72,17 @@ public class AclAuthController {
return aclService.addConsumerAcl(param.toTopicEntry(), param.toGroupEntry());
}
/**
* delete acl .
*
* @param entry entry
* @return
*/
@DeleteMapping
public Object deleteAclByUser(@RequestBody AclEntry entry) {
return aclService.deleteAcl(entry);
}
/**
* delete user acl .
*

View File

@@ -123,7 +123,7 @@ public class AclServiceImpl implements AclService, SmartInitializingSingleton {
}
@Override public ResponseData deleteAcl(AclEntry entry) {
return aclConsole.deleteAcl(entry, false, false, false) ? ResponseData.create().success() : ResponseData.create().failed();
return aclConsole.deleteAcl(entry) ? ResponseData.create().success() : ResponseData.create().failed();
}
@Override public ResponseData addAcl(AclEntry entry) {