...
|
...
|
@@ -32,7 +32,7 @@ public class UserController { |
|
|
@ApiOperation(value = "查询用户列表及信息", notes = "查询用户列表及单个用户信息")
|
|
|
@ApiImplicitParams({@ApiImplicitParam(name = "pageNum", value = "分页-当前页", required = false, dataType = "int",defaultValue = "1"),
|
|
|
@ApiImplicitParam(name = "pageSize", value = "分页-每页显示多少条", required = false, dataType = "int",defaultValue = "5")})
|
|
|
@GetMapping("/user/list")
|
|
|
@GetMapping("/list")
|
|
|
public PageInfo<USERS> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1")
|
|
|
int pageNum,
|
|
|
@RequestParam(value = "pageSize",required = false,defaultValue = "5")
|
...
|
...
|
@@ -49,7 +49,7 @@ public class UserController { |
|
|
|
|
|
@LogAnnotation(moduleName = "用户管理",operate = "用户编辑")
|
|
|
@UserPasswordMd5
|
|
|
@PutMapping("/user/edit")
|
|
|
@PutMapping("/edit")
|
|
|
public ResultJson updateUserById(@RequestBody @Valid USERS user){
|
|
|
int i = userService.updateByPrimaryKeySelective(user);
|
|
|
ResultJson resultJson = new ResultJson();
|
...
|
...
|
@@ -59,7 +59,7 @@ public class UserController { |
|
|
|
|
|
@UserPasswordMd5
|
|
|
@LogAnnotation(moduleName = "用户管理",operate = "用户添加")
|
|
|
@PostMapping("/user/add")
|
|
|
@PostMapping("/add")
|
|
|
public ResultJson addUser(@RequestBody @Valid USERS user, HttpServletRequest request, HttpServletResponse response, BindingResult bindingResult){
|
|
|
|
|
|
if (bindingResult.hasErrors()){
|
...
|
...
|
@@ -73,7 +73,7 @@ public class UserController { |
|
|
}
|
|
|
|
|
|
@LogAnnotation(moduleName = "用户管理",operate = "用户删除")
|
|
|
@DeleteMapping("/user/del")
|
|
|
@DeleteMapping("/del")
|
|
|
public ResultJson delUser(@RequestBody USERS user,HttpServletRequest request,HttpServletResponse response){
|
|
|
//String username = getusername();
|
|
|
int i = userService.deleteByPrimaryKey(user.getUserId());
|
...
|
...
|
@@ -82,7 +82,7 @@ public class UserController { |
|
|
|
|
|
}
|
|
|
|
|
|
@PutMapping("/user/roleset")
|
|
|
@PutMapping("/roleset")
|
|
|
public ResultJson roleSet(@RequestBody UserRole userRole){
|
|
|
|
|
|
int i = userService.setUserRole(userRole);
|
...
|
...
|
|