|
|
@ -79,7 +79,7 @@ public class UserController { |
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
@ApiOperation(value = "查看详情", notes = "传入id") |
|
|
|
@ApiOperation(value = "查看详情", notes = "传入id") |
|
|
|
@GetMapping("/detail") |
|
|
|
@GetMapping("/detail") |
|
|
|
@PreAuth(RoleConstant.HAS_ROLE_ADMIN) |
|
|
|
// @PreAuth(RoleConstant.HAS_ROLE_ADMIN)
|
|
|
|
public R<UserVO> detail(User user) { |
|
|
|
public R<UserVO> detail(User user) { |
|
|
|
User detail = userService.getOne(Condition.getQueryWrapper(user)); |
|
|
|
User detail = userService.getOne(Condition.getQueryWrapper(user)); |
|
|
|
return R.data(UserWrapper.build().entityVO(detail)); |
|
|
|
return R.data(UserWrapper.build().entityVO(detail)); |
|
|
|