Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
wangzhen
/
shiro-test
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 82665a43
authored
Aug 29, 2024
by
wangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor the classes of the RBAC to PermissionService.
1 parent
58a94d84
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/main/java/com/myxrk/rbac/aspect/DataGridMaskAspect.java
src/main/java/com/myxrk/rbac/aspect/DataGridMaskAspect.java
View file @
82665a4
...
...
@@ -31,13 +31,15 @@ public class DataGridMaskAspect {
private
static
final
String
COLUMNS_ID
=
"id"
;
private
final
PermissionService
permissionService
;
private
ProceedingJoinPoint
joinPoint
;
public
DataGridMaskAspect
(
PermissionService
permissionService
)
{
this
.
permissionService
=
permissionService
;
}
@Around
(
"@annotation(org.springframework.web.bind.annotation.GetMapping)"
)
public
Object
doMaskData
(
ProceedingJoinPoint
joinPoint
)
throws
Throwable
{
public
Object
maskData
(
ProceedingJoinPoint
joinPoint
)
throws
Throwable
{
this
.
joinPoint
=
joinPoint
;
Object
result
=
joinPoint
.
proceed
();
// 仅处理Result类型,来源与ResponseBodyAdvice处理之后的结果
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment