|
|
@ -116,6 +116,7 @@ public class MyController extends BaseController {
|
|
|
|
UserLoginDto userLoginDto = getUserLoginDto(authorization);
|
|
|
|
UserLoginDto userLoginDto = getUserLoginDto(authorization);
|
|
|
|
UserInfo user = userInfoService.findById(userLoginDto.getUserId());
|
|
|
|
UserInfo user = userInfoService.findById(userLoginDto.getUserId());
|
|
|
|
UserRespDTO userRespDTO = getUserRespDTO(user, true, Collections.emptySet());
|
|
|
|
UserRespDTO userRespDTO = getUserRespDTO(user, true, Collections.emptySet());
|
|
|
|
|
|
|
|
userRespDTO.setMobile(user.getMobile());
|
|
|
|
return Result.success(userRespDTO);
|
|
|
|
return Result.success(userRespDTO);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -445,22 +446,10 @@ public class MyController extends BaseController {
|
|
|
|
return thanks;
|
|
|
|
return thanks;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 查询我收到的评论
|
|
|
|
|
|
|
|
@ApiOperation(value = "12.账户与安全", notes = "账户与安全")
|
|
|
|
|
|
|
|
@GetMapping("/accountSafety")
|
|
|
|
|
|
|
|
public Result<UserInfo> getAccountSafety(@RequestHeader(value = "Authorization", required = true) String authorization) {
|
|
|
|
|
|
|
|
//验证是否登录,并且拿到ID
|
|
|
|
|
|
|
|
UserLoginDto userLoginDto = getUserLoginDto(authorization);
|
|
|
|
|
|
|
|
if (null == userLoginDto) {
|
|
|
|
|
|
|
|
return Result.unauthorized(null);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
String userId = userLoginDto.getUserId();
|
|
|
|
|
|
|
|
UserInfo userInfo = userInfoService.findById(userId);
|
|
|
|
|
|
|
|
return Result.success(userInfo);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "12.1 注销账号", notes = "注销账号")
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "12 注销账号", notes = "注销账号")
|
|
|
|
@PostMapping ("/logOff")
|
|
|
|
@PostMapping ("/logOff")
|
|
|
|
public Result<Void> logOff(@RequestHeader(value = "Authorization", required = true) String authorization, @VerifyParam LogoffReq logoffReq) {
|
|
|
|
public Result<Void> logOff(@RequestHeader(value = "Authorization", required = true) String authorization, @VerifyParam LogoffReq logoffReq) {
|
|
|
|
//验证是否登录,并且拿到ID
|
|
|
|
//验证是否登录,并且拿到ID
|
|
|
|