Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
smileNicky
jeeplatform
提交
b6651b51
J
jeeplatform
项目概览
smileNicky
/
jeeplatform
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
5
列表
看板
标记
里程碑
合并请求
4
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jeeplatform
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
5
Issue
5
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b6651b51
编写于
6月 01, 2019
作者:
N
Nicky.Ma
浏览文件
操作
浏览文件
下载
差异文件
加上Swagger2主键
上级
140c6e65
882cc5a9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
17 addition
and
1 deletion
+17
-1
code/jeeplatform-admin/src/main/java/org/muses/jeeplatform/web/controller/UserController.java
.../org/muses/jeeplatform/web/controller/UserController.java
+17
-1
未找到文件。
code/jeeplatform-admin/src/main/java/org/muses/jeeplatform/web/controller/UserController.java
浏览文件 @
b6651b51
package
org.muses.jeeplatform.web.controller
;
import
com.alibaba.fastjson.JSON
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.shiro.crypto.hash.SimpleHash
;
import
org.muses.jeeplatform.core.CommonConsts
;
import
org.muses.jeeplatform.core.email.JavaEmailSender
;
...
...
@@ -28,6 +32,7 @@ import java.util.*;
/**
* Created by Nicky on 2017/7/29.
*/
@Api
(
value
=
"用户操作接口"
,
tags
={
"用户操作接口"
})
@RequestMapping
(
"/user"
)
@Controller
public
class
UserController
extends
BaseController
{
...
...
@@ -48,6 +53,7 @@ public class UserController extends BaseController {
* @param model
* @return
*/
@ApiOperation
(
value
=
"用户信息列表"
,
notes
=
"用户信息列表"
)
@RequestMapping
(
value
=
"/queryAll"
,
produces
=
"application/json;charset=UTF-8"
)
public
ModelAndView
findAll
(
HttpServletRequest
request
,
HttpServletResponse
response
,
Model
model
)
{
String
pageIndexStr
=
request
.
getParameter
(
"pageIndex"
);
...
...
@@ -87,8 +93,9 @@ public class UserController extends BaseController {
* @param endDateStr
* @return
*/
@ApiOperation
(
value
=
"查询用户信息"
,
notes
=
"查询用户信息"
)
@RequestMapping
(
value
=
"/searchU"
,
produces
=
"application/json;charset=UTf-8"
)
public
ModelAndView
doSearch
(
@RequestParam
(
value
=
"pageIndex"
,
required
=
fals
e
)
String
pageIndexStr
,
@RequestParam
(
value
=
"keyword"
,
required
=
false
)
String
keyword
,
public
ModelAndView
doSearch
(
@RequestParam
(
value
=
"pageIndex"
,
required
=
tru
e
)
String
pageIndexStr
,
@RequestParam
(
value
=
"keyword"
,
required
=
false
)
String
keyword
,
@RequestParam
(
value
=
"startDate"
,
required
=
false
)
String
startDateStr
,
@RequestParam
(
value
=
"endDate"
,
required
=
false
)
String
endDateStr
)
{
int
pageSize
=
CommonConsts
.
PAGE_SIZE
;
ModelAndView
mv
=
this
.
getModelAndView
();
...
...
@@ -140,6 +147,10 @@ public class UserController extends BaseController {
*
* @param params
*/
@ApiOperation
(
value
=
"新增用户"
,
notes
=
"新增用户"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"params"
,
value
=
"json参数"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
@PostMapping
(
value
=
"/addU"
)
@ResponseBody
public
Map
<
String
,
String
>
addU
(
@RequestParam
(
"params"
)
String
params
)
{
...
...
@@ -183,6 +194,10 @@ public class UserController extends BaseController {
return
result
;
}
@ApiOperation
(
value
=
"跳转到编辑用户信息页面"
,
notes
=
"编辑用户信息页面"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"userId"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
@GetMapping
(
value
=
"/goEditU"
)
public
String
goEditU
(
@RequestParam
(
"userId"
)
String
userId
,
Model
model
)
{
User
user
=
userService
.
findByUId
(
Integer
.
parseInt
(
userId
));
...
...
@@ -278,6 +293,7 @@ public class UserController extends BaseController {
return
"admin/user/sys_user_auth"
;
}
@ApiOperation
(
value
=
"修改用户"
,
notes
=
"修改用户"
)
@PostMapping
(
value
=
"/auth"
,
produces
=
"application/json;charset=utf-8"
)
@ResponseBody
public
Map
<
String
,
String
>
doAuth
(
@RequestParam
(
"params"
)
String
params
){
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录