From 0b57a8711fb4e577eaa022b7362a0b9b1f2e45bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BF=A0=E7=BE=8E?= <14203604+liao-zhongmei@user.noreply.gitee.com> Date: Sun, 23 Jun 2024 20:45:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E6=88=90=E5=8A=9F=E8=BF=94?= =?UTF-8?q?=E5=9B=9Etoken,=E5=B9=B6=E8=83=BD=E5=88=B7=E6=96=B0token,permis?= =?UTF-8?q?sion=E6=8E=A7=E5=88=B6=E5=B1=82=E5=BE=85=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/inspectionProfiles/Project_Default.xml | 68 ++++++++ .idea/misc.xml | 5 +- .idea/workspace.xml | 153 ++++++++---------- etl-auth/etl-auth-common/pom.xml | 10 ++ .../auth/common/entity/PathPermission.java | 33 ++++ .../auth/common/entity/RolesPermission.java | 24 +++ .../com/auth/common/entity/UserAccount.java | 23 +++ .../common/enums/PermissionConstants.java | 8 + etl-auth/etl-auth-server/pom.xml | 31 +++- .../auth/server/EtlAuthServerApplication.java | 3 + .../com/auth/server/config/ShiroConfig.java | 3 + .../server/controller/LoginControler.java | 91 +++++++++-- .../controller/PermissionController.java | 54 +++++++ .../auth/server/entity/RolesPermission.java | 10 -- .../com/auth/server/entity/UserAccount.java | 11 -- .../com/auth/server/mapper/PathMapper.java | 8 + .../auth/server/mapper/PermissionMapper.java | 4 +- .../auth/server/mapper/UserMangeMapper.java | 4 +- .../com/auth/server/service/PathService.java | 9 ++ .../server/service/PermissionService.java | 6 +- .../server/service/UserManageService.java | 5 +- .../server/service/impl/PathServiceImpl.java | 16 ++ .../service/impl/PermissionServiceImpl.java | 10 +- .../service/impl/UserManageServiceImpl.java | 7 +- .../java/com/auth/server/util/UserRealm.java | 3 +- .../src/main/resources/bootstrap.yml | 14 +- .../src/main/resources/mapper/PathMapper.xml | 6 + .../target/classes/bootstrap.yml | 14 +- .../server/EtlAuthServerApplication.class | Bin 818 -> 1040 bytes .../com/auth/server/config/ShiroConfig.class | Bin 2813 -> 2813 bytes .../server/controller/LoginControler.class | Bin 4246 -> 6701 bytes .../controller/PermissionController.class | Bin 0 -> 3600 bytes .../auth/server/entity/RolesPermission.class | Bin 2402 -> 0 bytes .../com/auth/server/entity/UserAccount.class | Bin 2781 -> 0 bytes .../com/auth/server/mapper/PathMapper.class | Bin 0 -> 310 bytes .../auth/server/mapper/PermissionMapper.class | Bin 323 -> 323 bytes .../auth/server/mapper/UserMangeMapper.class | Bin 317 -> 317 bytes .../com/auth/server/service/PathService.class | Bin 0 -> 321 bytes .../server/service/PermissionService.class | Bin 283 -> 466 bytes .../server/service/UserManageService.class | Bin 330 -> 330 bytes .../server/service/impl/PathServiceImpl.class | Bin 0 -> 888 bytes .../service/impl/PermissionServiceImpl.class | Bin 2863 -> 2872 bytes .../service/impl/UserManageServiceImpl.class | Bin 726 -> 920 bytes .../com/auth/server/util/UserRealm.class | Bin 3560 -> 3560 bytes .../target/classes/mapper/PathMapper.xml | 6 + ...T.jar => etl-auth-server-1.0-SNAPSHOT.jar} | Bin 17465 -> 17607 bytes .../target/maven-archiver/pom.properties | 6 +- .../auth/common/entity/PathPermission.class | Bin 0 -> 4351 bytes .../auth/common/entity/RolesPermission.class | Bin 0 -> 2923 bytes .../com/auth/common/entity/UserAccount.class | Bin 0 -> 3149 bytes .../common/enums/PermissionConstants.class | Bin 0 -> 528 bytes .../etl/common/enums/ResponseCodeEnum.java | 29 ++++ .../com/etl/common/result/CommonResult.java | 22 +++ .../etl/common/enums/ResponseCodeEnum.class | Bin 0 -> 2176 bytes .../com/etl/common/result/CommonResult.class | Bin 0 -> 3845 bytes etl-common/target/etl-common-1.0-SNAPSHOT.jar | Bin 23060 -> 23060 bytes .../target/maven-archiver/pom.properties | 2 +- etl-gateway/pom.xml | 14 ++ .../etl/gateway/EtlGatewayApplication.java | 2 + .../gateway/filters/JwtAuthCheckFilter.java | 136 ++++++++++++++++ .../com/etl/gateway/filters/LogFilter.java | 6 +- etl-gateway/src/main/resources/bootstrap.yml | 2 +- .../com/etl/jwt/config/AuthJwtProperties.java | 2 + .../java/com/etl/jwt/util/JwtTokenUtil.java | 3 +- .../etl/jwt/config/AuthJwtProperties.class | Bin 5180 -> 5180 bytes .../com/etl/jwt/util/JwtTokenUtil.class | Bin 8412 -> 8412 bytes .../target/etl-jwt-manage-1.0-SNAPSHOT.jar | Bin 8958 -> 8961 bytes .../target/maven-archiver/pom.properties | 2 +- 68 files changed, 720 insertions(+), 145 deletions(-) create mode 100644 etl-auth/etl-auth-common/src/main/java/com/auth/common/entity/PathPermission.java create mode 100644 etl-auth/etl-auth-common/src/main/java/com/auth/common/entity/RolesPermission.java create mode 100644 etl-auth/etl-auth-common/src/main/java/com/auth/common/entity/UserAccount.java create mode 100644 etl-auth/etl-auth-common/src/main/java/com/auth/common/enums/PermissionConstants.java create mode 100644 etl-auth/etl-auth-server/src/main/java/com/auth/server/controller/PermissionController.java delete mode 100644 etl-auth/etl-auth-server/src/main/java/com/auth/server/entity/RolesPermission.java delete mode 100644 etl-auth/etl-auth-server/src/main/java/com/auth/server/entity/UserAccount.java create mode 100644 etl-auth/etl-auth-server/src/main/java/com/auth/server/mapper/PathMapper.java create mode 100644 etl-auth/etl-auth-server/src/main/java/com/auth/server/service/PathService.java create mode 100644 etl-auth/etl-auth-server/src/main/java/com/auth/server/service/impl/PathServiceImpl.java create mode 100644 etl-auth/etl-auth-server/src/main/resources/mapper/PathMapper.xml create mode 100644 etl-auth/etl-auth-server/target/classes/com/auth/server/controller/PermissionController.class delete mode 100644 etl-auth/etl-auth-server/target/classes/com/auth/server/entity/RolesPermission.class delete mode 100644 etl-auth/etl-auth-server/target/classes/com/auth/server/entity/UserAccount.class create mode 100644 etl-auth/etl-auth-server/target/classes/com/auth/server/mapper/PathMapper.class create mode 100644 etl-auth/etl-auth-server/target/classes/com/auth/server/service/PathService.class create mode 100644 etl-auth/etl-auth-server/target/classes/com/auth/server/service/impl/PathServiceImpl.class create mode 100644 etl-auth/etl-auth-server/target/classes/mapper/PathMapper.xml rename etl-auth/etl-auth-server/target/{etl-auth-server-0.0.1-SNAPSHOT.jar => etl-auth-server-1.0-SNAPSHOT.jar} (52%) create mode 100644 etl-auth/etl-auth-server/target/production/etl-auth-common/com/auth/common/entity/PathPermission.class create mode 100644 etl-auth/etl-auth-server/target/production/etl-auth-common/com/auth/common/entity/RolesPermission.class create mode 100644 etl-auth/etl-auth-server/target/production/etl-auth-common/com/auth/common/entity/UserAccount.class create mode 100644 etl-auth/etl-auth-server/target/production/etl-auth-common/com/auth/common/enums/PermissionConstants.class create mode 100644 etl-common/src/main/java/com/etl/common/enums/ResponseCodeEnum.java create mode 100644 etl-common/src/main/java/com/etl/common/result/CommonResult.java create mode 100644 etl-common/target/classes/com/etl/common/enums/ResponseCodeEnum.class create mode 100644 etl-common/target/classes/com/etl/common/result/CommonResult.class create mode 100644 etl-gateway/src/main/java/com/etl/gateway/filters/JwtAuthCheckFilter.java diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index e69de29..ee9f695 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,68 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 53bb56e..0711d5b 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - @@ -22,5 +21,7 @@ - + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 351a24d..9b79cc1 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,90 +4,54 @@