add auth detail
This commit is contained in:
@@ -28,9 +28,9 @@ public class AclAuthController {
|
||||
@Autowired
|
||||
private AclService aclService;
|
||||
|
||||
@GetMapping
|
||||
public Object getAclList() {
|
||||
return aclService.getAclList();
|
||||
@PostMapping("/detail")
|
||||
public Object getAclDetailList(@RequestBody QueryAclDTO param) {
|
||||
return aclService.getAclDetailList(param.toEntry());
|
||||
}
|
||||
|
||||
@GetMapping("/operation/list")
|
||||
|
||||
@@ -20,7 +20,7 @@ public interface AclService {
|
||||
|
||||
ResponseData deleteUserAndAuth(String name);
|
||||
|
||||
ResponseData getAclList();
|
||||
ResponseData getAclDetailList(AclEntry entry);
|
||||
|
||||
ResponseData getAclList(AclEntry entry);
|
||||
|
||||
|
||||
@@ -80,8 +80,8 @@ public class AclServiceImpl implements AclService, SmartInitializingSingleton {
|
||||
return ResponseData.create().success();
|
||||
}
|
||||
|
||||
@Override public ResponseData getAclList() {
|
||||
List<AclBinding> aclBindingList = aclConsole.getAclList(null);
|
||||
@Override public ResponseData getAclDetailList(AclEntry entry) {
|
||||
List<AclBinding> aclBindingList = entry ==null || entry.isNull() ? aclConsole.getAclList(null) : aclConsole.getAclList(entry);
|
||||
|
||||
return ResponseData.create().data(new CounterList<>(aclBindingList.stream().map(x -> AclEntry.valueOf(x)).collect(Collectors.toList()))).success();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user