Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-auth
Commits
3d200240
Commit
3d200240
authored
Sep 06, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登出
parent
a7ea5803
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
pom.xml
gic-platform-auth-web/pom.xml
+4
-4
LoginController.java
...ain/java/com/gic/auth/web/controller/LoginController.java
+6
-0
MenuController.java
...main/java/com/gic/auth/web/controller/MenuController.java
+1
-1
No files found.
gic-platform-auth-web/pom.xml
View file @
3d200240
...
...
@@ -71,13 +71,13 @@
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-enterprise-
common
</artifactId>
<version>
${gic-enterprise-
common
}
</version>
<artifactId>
gic-enterprise-
base-api
</artifactId>
<version>
${gic-enterprise-
base-api
}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-enterprise-
base-api
</artifactId>
<version>
${gic-enterprise-
base-api
}
</version>
<artifactId>
gic-enterprise-
common
</artifactId>
<version>
${gic-enterprise-
common
}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/LoginController.java
View file @
3d200240
...
...
@@ -95,4 +95,10 @@ public class LoginController {
}
return
RestResponse
.
success
();
}
@RequestMapping
(
"logout"
)
public
RestResponse
logout
(){
UserDetailUtils
.
destory
();
return
RestResponse
.
success
();
}
}
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/MenuController.java
View file @
3d200240
...
...
@@ -23,7 +23,7 @@ public class MenuController {
public
RestResponse
loginUserMenu
(
Integer
currentMenu
){
Integer
userId
=
UserDetailUtils
.
getUserDetail
().
getUserId
();
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
RpcContext
.
getContext
().
setAttachment
(
"userDetail"
,
JSON
.
toJSONString
(
UserDetailUtils
.
getUserDetail
()));
System
.
out
.
println
(
JSON
.
toJSONString
(
RpcContext
.
getContext
().
getAttachments
()));
ServiceResponse
<
List
<
MenuDTO
>>
userMenu
=
this
.
menuApiService
.
getUserMenu
(
userId
,
enterpriseId
,
currentMenu
);
if
(
userMenu
.
isSuccess
()){
return
RestResponse
.
success
(
userMenu
.
getResult
());
...
...
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