|
|
@ -173,8 +173,7 @@ public class MyController extends BaseController {
|
|
|
|
@ApiOperation(value = "4.查看他人信息", notes = "游客无法查看他人信息")
|
|
|
|
@ApiOperation(value = "4.查看他人信息", notes = "游客无法查看他人信息")
|
|
|
|
@GetMapping("/getOtherUserInfo/{userId}")
|
|
|
|
@GetMapping("/getOtherUserInfo/{userId}")
|
|
|
|
@GlobalInterceptor(checkAppUserLogin = true)
|
|
|
|
@GlobalInterceptor(checkAppUserLogin = true)
|
|
|
|
public Result<UserRespDTO> getOtherUserInfo(@RequestHeader(value = "token", required = false) String token,
|
|
|
|
public Result<UserRespDTO> getOtherUserInfo(@VerifyParam(required = true) @PathVariable String userId) {
|
|
|
|
@VerifyParam(required = true) @PathVariable String userId) {
|
|
|
|
|
|
|
|
UserInfo user = userInfoService.findById(userId);
|
|
|
|
UserInfo user = userInfoService.findById(userId);
|
|
|
|
if (null == user) {
|
|
|
|
if (null == user) {
|
|
|
|
return Result.failed(StatusCode.USER_INVALID_USER_ID);
|
|
|
|
return Result.failed(StatusCode.USER_INVALID_USER_ID);
|
|
|
|