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