Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
Project
Project
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
station
YeeAmosFireAutoSysRoot
Commits
1e16e79c
Commit
1e16e79c
authored
Mar 20, 2020
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询登录用户信息
parent
50494e7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
CurCompanyController.java
...in/amos/fas/business/controller/CurCompanyController.java
+32
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/CurCompanyController.java
0 → 100644
View file @
1e16e79c
package
com
.
yeejoin
.
amos
.
fas
.
business
.
controller
;
import
java.util.HashMap
;
import
java.util.Map
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.fas.core.util.CommonResponse
;
import
com.yeejoin.amos.fas.core.util.CommonResponseUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
@RestController
@RequestMapping
(
"/api/region"
)
@Api
(
"获取当前用户信息api"
)
public
class
CurCompanyController
extends
BaseController
{
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取当前用户信息"
,
notes
=
"获取当前用户信息"
)
@RequestMapping
(
value
=
"/current"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
GET
)
public
CommonResponse
current
()
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"nickName"
,
getUserInfo
().
getRealName
());
map
.
put
(
"company"
,
getSelectedOrgInfo
().
getCompany
());
map
.
put
(
"department"
,
getSelectedOrgInfo
().
getDepartment
());
return
CommonResponseUtil
.
success
(
map
);
}
}
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