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
07786b7c
Commit
07786b7c
authored
Dec 10, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户基本信息查询接口添加
parent
e1ca5daf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
+20
-1
UserApiService.java
...pi/src/main/java/com/gic/auth/service/UserApiService.java
+11
-1
UserApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
+9
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/service/UserApiService.java
View file @
07786b7c
...
@@ -58,7 +58,7 @@ public interface UserApiService {
...
@@ -58,7 +58,7 @@ public interface UserApiService {
ServiceResponse
<
Void
>
editAdmin
(
UserDTO
userDTO
);
ServiceResponse
<
Void
>
editAdmin
(
UserDTO
userDTO
);
/**
/**
* 用户详情
* 用户详情
(包括资源组、权限等待信息)
* @Title: getUserById
* @Title: getUserById
* @Description:
* @Description:
* @author guojuxing
* @author guojuxing
...
@@ -68,6 +68,16 @@ public interface UserApiService {
...
@@ -68,6 +68,16 @@ public interface UserApiService {
ServiceResponse
<
UserDTO
>
getUserById
(
Integer
userId
);
ServiceResponse
<
UserDTO
>
getUserById
(
Integer
userId
);
/**
/**
* 用户基本信息
* @Title: getUserInfoById
* @Description:
* @author guojuxing
* @param userId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.auth.dto.UserDTO>
*/
ServiceResponse
<
UserDTO
>
getUserInfoById
(
Integer
userId
);
/**
* 删除
* 删除
* @Title: delete
* @Title: delete
* @Description:
* @Description:
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
View file @
07786b7c
...
@@ -279,6 +279,15 @@ public class UserApiServiceImpl implements UserApiService {
...
@@ -279,6 +279,15 @@ public class UserApiServiceImpl implements UserApiService {
}
}
@Override
@Override
public
ServiceResponse
<
UserDTO
>
getUserInfoById
(
Integer
userId
)
{
TabSysUser
tabUser
=
userService
.
getUserById
(
userId
);
if
(
tabUser
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"用户ID输入有误,无此数据"
);
}
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityNew
(
UserDTO
.
class
,
tabUser
));
}
@Override
public
ServiceResponse
<
String
>
delete
(
Integer
userId
)
{
public
ServiceResponse
<
String
>
delete
(
Integer
userId
)
{
TabSysUser
tabUser
=
userService
.
getUserById
(
userId
);
TabSysUser
tabUser
=
userService
.
getUserById
(
userId
);
if
(
tabUser
==
null
)
{
if
(
tabUser
==
null
)
{
...
...
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