Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fit-finance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fitness-server
fit-finance
Commits
b9cc7fc1
You need to sign in or sign up before continuing.
Commit
b9cc7fc1
authored
Nov 09, 2024
by
陈攀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
切换xmfc-auth
parent
a8bc1326
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
10 deletions
+16
-10
app/src/main/java/com/jiejing/fitness/finance/app/FitnessFinanceApplication.java
+1
-1
pom.xml
+8
-2
service/pom.xml
+2
-2
service/src/main/java/com/jiejing/fitness/finance/service/rpc/PermissionRpcService.java
+5
-5
No files found.
app/src/main/java/com/jiejing/fitness/finance/app/FitnessFinanceApplication.java
View file @
b9cc7fc1
...
...
@@ -44,7 +44,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
"com.jiejing.studio.api"
,
"com.jiejing.message.api"
,
"com.jiejing.fitness.rpc.api"
,
"com.jiejing.
permcenter
.api"
,
"com.jiejing.
auth
.api"
,
"com.jiejing.configcenter.api"
,
"com.jiejing.workflow.api"
,
})
...
...
pom.xml
View file @
b9cc7fc1
...
...
@@ -85,10 +85,16 @@
<groupId>
com.jiejing.fitness
</groupId>
<artifactId>
message-sdk
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<exclusions>
<exclusion>
<groupId>
com.jiejing.base
</groupId>
<artifactId>
usercenter-api
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.jiejing.
base
</groupId>
<artifactId>
permcenter-api
</artifactId>
<groupId>
com.jiejing.
function
</groupId>
<artifactId>
xmfc-auth-sdk
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
</dependency>
<dependency>
...
...
service/pom.xml
View file @
b9cc7fc1
...
...
@@ -36,8 +36,8 @@
<artifactId>
message-sdk
</artifactId>
</dependency>
<dependency>
<groupId>
com.jiejing.
base
</groupId>
<artifactId>
permcenter-api
</artifactId>
<groupId>
com.jiejing.
function
</groupId>
<artifactId>
xmfc-auth-sdk
</artifactId>
</dependency>
<dependency>
<groupId>
com.jiejing.base
</groupId>
...
...
service/src/main/java/com/jiejing/fitness/finance/service/rpc/PermissionRpcService.java
View file @
b9cc7fc1
...
...
@@ -3,11 +3,11 @@ package com.jiejing.fitness.finance.service.rpc;
import
static
java
.
util
.
stream
.
Collectors
.
toList
;
import
com.google.common.collect.Lists
;
import
com.jiejing.auth.api.perm.authority.AuthorityAuthRpcService
;
import
com.jiejing.auth.api.perm.authority.request.QueryUserIdByCodeRequest
;
import
com.jiejing.common.model.JsonResult
;
import
com.jiejing.fitness.enums.auth.AuthDomainEnum
;
import
com.jiejing.fitness.enums.tenant.TenantTypeEnum
;
import
com.jiejing.permcenter.api.config.request.QueryUserIdByCodeRequest
;
import
com.jiejing.permcenter.api.perm.AuthorityPermApi
;
import
java.util.ArrayList
;
import
java.util.HashSet
;
import
java.util.List
;
...
...
@@ -26,7 +26,7 @@ import org.springframework.stereotype.Service;
public
class
PermissionRpcService
{
@Resource
private
Authority
PermApi
authorityPermApi
;
private
Authority
AuthRpcService
authorityPermRpcService
;
/**
* 查询改作用域下具有改权限的人
...
...
@@ -41,8 +41,8 @@ public class PermissionRpcService {
QueryUserIdByCodeRequest
request
=
QueryUserIdByCodeRequest
.
builder
()
.
domain
(
domain
).
tenantKey
(
tenantKey
)
.
permissionCode
(
permissionCode
).
includeSubTree
(
includeSubTree
).
build
();
JsonResult
<
Set
<
Long
>>
result
=
authorityPermApi
.
queryUserIdByCode
(
request
);
return
Optional
.
ofNullable
(
result
.
getResult
()
).
orElse
(
new
HashSet
<>(
1
));
Set
<
Long
>
result
=
authorityPermRpcService
.
queryUserIdByCode
(
request
);
return
Optional
.
ofNullable
(
result
).
orElse
(
new
HashSet
<>(
1
));
}
public
List
<
Long
>
getUserIdsByCodeList
(
String
domain
,
Long
studioId
,
List
<
String
>
permissionCodeList
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment