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
a73ed3ce
Commit
a73ed3ce
authored
Sep 02, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户列表接口
parent
1e5f66e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
138 additions
and
0 deletions
+138
-0
UserListDTO.java
...-auth-api/src/main/java/com/gic/auth/dto/UserListDTO.java
+90
-0
UserListQO.java
...rm-auth-api/src/main/java/com/gic/auth/qo/UserListQO.java
+36
-0
UserApiService.java
...pi/src/main/java/com/gic/auth/service/UserApiService.java
+12
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/dto/UserListDTO.java
0 → 100644
View file @
a73ed3ce
package
com
.
gic
.
auth
.
dto
;
import
java.io.Serializable
;
/**
* 管理员列表
* @ClassName: UserListDTO
* @Description:
* @author guojuxing
* @date 2019/9/2 5:12 PM
*/
public
class
UserListDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
3693735542954676950L
;
/**
* 用户id
*/
private
Integer
userId
;
/**
* 用户名
*/
private
String
userName
;
/**
* 手机号码
*/
private
String
phoneNumber
;
/**
* 国际区号,如中国 86
*/
private
String
phoneAreaCode
;
/**
* 用户角色,可以多选,用英文逗号隔开
*/
private
String
userRoleIds
;
/**
* 用户资源组授权,可以多选,用英文逗号隔开
*/
private
String
userResourceIds
;
public
Integer
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
Integer
userId
)
{
this
.
userId
=
userId
;
}
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
public
String
getPhoneNumber
()
{
return
phoneNumber
;
}
public
void
setPhoneNumber
(
String
phoneNumber
)
{
this
.
phoneNumber
=
phoneNumber
;
}
public
String
getPhoneAreaCode
()
{
return
phoneAreaCode
;
}
public
void
setPhoneAreaCode
(
String
phoneAreaCode
)
{
this
.
phoneAreaCode
=
phoneAreaCode
;
}
public
String
getUserRoleIds
()
{
return
userRoleIds
;
}
public
void
setUserRoleIds
(
String
userRoleIds
)
{
this
.
userRoleIds
=
userRoleIds
;
}
public
String
getUserResourceIds
()
{
return
userResourceIds
;
}
public
void
setUserResourceIds
(
String
userResourceIds
)
{
this
.
userResourceIds
=
userResourceIds
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/qo/UserListQO.java
0 → 100644
View file @
a73ed3ce
package
com
.
gic
.
auth
.
qo
;
import
com.gic.enterprise.qo.PageQO
;
/**
* 管理员列表
* @ClassName: UserListQO
* @Description:
* @author guojuxing
* @date 2019/9/2 5:16 PM
*/
public
class
UserListQO
extends
PageQO
{
private
static
final
long
serialVersionUID
=
3863482060139969653L
;
/**
* 用户名\手机号码
*/
private
String
search
;
private
Integer
enterpriseId
;
public
String
getSearch
()
{
return
search
;
}
public
void
setSearch
(
String
search
)
{
this
.
search
=
search
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/service/UserApiService.java
View file @
a73ed3ce
package
com
.
gic
.
auth
.
service
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.dto.UserDTO
;
import
com.gic.auth.qo.UserListQO
;
import
java.util.List
;
...
...
@@ -45,4 +47,14 @@ public interface UserApiService {
ServiceResponse
<
List
<
UserDTO
>>
listUserByPhoneNumber
(
String
phoneNumber
);
ServiceResponse
<
UserDTO
>
login
(
String
phoneNumber
,
Integer
enterpriseId
,
String
password
);
/**
* 分页查询管理员列表数据
* @Title: pageUser
* @Description:
* @author guojuxing
* @param params
* @return com.gic.api.base.commons.ServiceResponse<com.gic.api.base.commons.Page<com.gic.auth.dto.UserDTO>>
*/
ServiceResponse
<
Page
<
UserDTO
>>
pageUser
(
UserListQO
params
);
}
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