Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-backend
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
framework
cloud-backend
Commits
58bc7a3f
Commit
58bc7a3f
authored
Aug 10, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.0
parent
48b5a904
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
pom.xml
+1
-1
user-server/src/main/java/com/zq/user/controller/admin/UserAdminController.java
+3
-1
user-server/src/main/java/com/zq/user/controller/app/UserController.java
+3
-1
user-server/src/main/java/com/zq/user/service/UserService.java
+2
-1
No files found.
pom.xml
View file @
58bc7a3f
...
...
@@ -22,7 +22,7 @@
<swagger.version>
2.9.2
</swagger.version>
<alibaba.druid.version>
1.1.22
</alibaba.druid.version>
<mybatis.plus.version>
3.4.
3
</mybatis.plus.version>
<mybatis.plus.version>
3.4.
0
</mybatis.plus.version>
<pagehelper.version>
5.2.0
</pagehelper.version>
<jjwt.version>
0.9.1
</jjwt.version>
<fastjson.version>
1.2.76
</fastjson.version>
...
...
user-server/src/main/java/com/zq/user/controller/admin/UserAdminController.java
View file @
58bc7a3f
package
com
.
zq
.
user
.
controller
.
admin
;
import
com.zq.common.entity.AppUser
;
import
com.zq.common.vo.PageVo
;
import
com.zq.common.vo.ResultVo
;
import
com.zq.user.service.UserService
;
import
com.zq.user.vo.FindAppUserVo
;
...
...
@@ -25,7 +27,7 @@ public class UserAdminController {
@ApiOperation
(
"获取用户列表"
)
@PostMapping
(
value
=
"/getUserList"
)
public
ResultVo
getUserList
(
@RequestBody
FindAppUserVo
vo
)
{
public
ResultVo
<
PageVo
<
AppUser
>>
getUserList
(
@RequestBody
FindAppUserVo
vo
)
{
return
ResultVo
.
success
(
userService
.
getUserList
(
vo
));
}
...
...
user-server/src/main/java/com/zq/user/controller/app/UserController.java
View file @
58bc7a3f
...
...
@@ -3,9 +3,11 @@ package com.zq.user.controller.app;
import
com.zq.common.annotation.Limit
;
import
com.zq.common.config.limit.LimitType
;
import
com.zq.common.entity.AppUser
;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.utils.ValidateUtil
;
import
com.zq.common.vo.ApiTokenVo
;
import
com.zq.common.vo.PageVo
;
import
com.zq.common.vo.ResultVo
;
import
com.zq.user.service.UserService
;
import
com.zq.user.vo.FindAppUserVo
;
...
...
@@ -89,7 +91,7 @@ public class UserController {
@ApiOperation
(
"获取用户列表"
)
@PostMapping
(
value
=
"/getUserList"
)
public
ResultVo
getUserList
(
@RequestBody
FindAppUserVo
vo
)
{
public
ResultVo
<
PageVo
<
AppUser
>>
getUserList
(
@RequestBody
FindAppUserVo
vo
)
{
return
ResultVo
.
success
(
userService
.
getUserList
(
vo
));
}
...
...
user-server/src/main/java/com/zq/user/service/UserService.java
View file @
58bc7a3f
...
...
@@ -13,6 +13,7 @@ import com.zq.common.http.HttpRequestUtils;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.utils.PagingUtils
;
import
com.zq.common.vo.ApiTokenVo
;
import
com.zq.common.vo.PageVo
;
import
com.zq.user.dao.AppUserDao
;
import
com.zq.user.manager.UserCacheKeys
;
import
com.zq.user.vo.FindAppUserVo
;
...
...
@@ -162,7 +163,7 @@ public class UserService {
* @param vo
* @return
*/
public
Object
getUserList
(
FindAppUserVo
vo
)
{
public
PageVo
<
AppUser
>
getUserList
(
FindAppUserVo
vo
)
{
LambdaQueryWrapper
<
AppUser
>
lambdaQuery
=
Wrappers
.
lambdaQuery
(
AppUser
.
class
);
lambdaQuery
.
orderByAsc
(
AppUser:
:
getId
);
...
...
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