mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-05-19 22:37:00 +08:00
优化数据权限
This commit is contained in:
@@ -101,6 +101,7 @@ public class DefaultBasicAuthorizeDefinition implements AopAuthorizeDefinition {
|
||||
}
|
||||
actions.addAll(Arrays.asList(dataAccess.action()));
|
||||
DefaultDataAccessDefinition definition = new DefaultDataAccessDefinition();
|
||||
definition.setEntityType(dataAccess.entityType());
|
||||
definition.setPhased(dataAccess.phased());
|
||||
if (!"".equals(dataAccess.controllerBeanName())) {
|
||||
definition.setController(dataAccess.controllerBeanName());
|
||||
@@ -108,7 +109,7 @@ public class DefaultBasicAuthorizeDefinition implements AopAuthorizeDefinition {
|
||||
definition.setController(dataAccess.getClass().getName());
|
||||
}
|
||||
dataAccessDefinition = definition;
|
||||
dataAccessControl=true;
|
||||
dataAccessControl = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,9 @@ public class DefaultDataAccessDefinition implements DataAccessDefinition {
|
||||
|
||||
private String controller;
|
||||
|
||||
private String idParameterName="id";
|
||||
private String idParameterName = "id";
|
||||
|
||||
private Class entityType;
|
||||
|
||||
private Phased phased;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user