|
@@ -5,7 +5,6 @@ import org.apache.shiro.authz.annotation.RequiresUser;
|
|
|
import org.hswebframework.web.authorization.Authorization;
|
|
|
import org.hswebframework.web.authorization.AuthorizationHolder;
|
|
|
import org.hswebframework.web.authorization.Permission;
|
|
|
-import org.hswebframework.web.authorization.annotation.AuthInfo;
|
|
|
import org.hswebframework.web.authorization.annotation.Authorize;
|
|
|
import org.hswebframework.web.authorization.annotation.RequiresDataAccess;
|
|
|
import org.hswebframework.web.authorization.annotation.RequiresFieldAccess;
|
|
@@ -19,7 +18,6 @@ import org.hswebframework.web.entity.authorization.SimpleUserEntity;
|
|
|
import org.hswebframework.web.entity.authorization.UserEntity;
|
|
|
import org.hswebframework.web.service.QueryByEntityService;
|
|
|
import org.hswebframework.web.service.QueryService;
|
|
|
-import org.hswebframwork.utils.ClassUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -36,13 +34,13 @@ public class TestController implements QueryController<UserEntity, String, Query
|
|
|
|
|
|
@GetMapping("/test1")
|
|
|
@Authorize(action = "query", message = "${'表达式方式'}")
|
|
|
- public ResponseMessage testSimple(@AuthInfo Authorization authorization) {
|
|
|
+ public ResponseMessage testSimple(Authorization authorization) {
|
|
|
return ResponseMessage.ok(authorization);
|
|
|
}
|
|
|
|
|
|
@GetMapping("/test")
|
|
|
@RequiresPermissions("test:*")
|
|
|
- public ResponseMessage testShiro(@AuthInfo Authorization authorization) {
|
|
|
+ public ResponseMessage testShiro(Authorization authorization) {
|
|
|
return ResponseMessage.ok(authorization);
|
|
|
}
|
|
|
|