|
|
|
@ -87,5 +87,12 @@ public class SimpleUserController {
|
|
|
|
|
authors = authors.stream().map(userInfo -> {userInfo.setAvatar(Constants.RESOURCE_PREFIX + userInfo.getAvatar());return userInfo;}).collect(Collectors.toList());
|
|
|
|
|
return Result.success(authors);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "获取用户信息")
|
|
|
|
|
@GetMapping("/listByNickName")
|
|
|
|
|
@GlobalInterceptor(checkAdminLogin = true)
|
|
|
|
|
public Result<List<UserInfo>> getUserInfoList(String nickName) {
|
|
|
|
|
return Result.success(userInfoService.getUserInfo(nickName));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|