🎨 增加访问用户主页流量统计
This commit is contained in:
parent
5013a9a3c1
commit
5fe3140873
@ -4,6 +4,7 @@ import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.rymcu.vertical.core.result.GlobalResult;
|
||||
import com.rymcu.vertical.core.result.GlobalResultGenerator;
|
||||
import com.rymcu.vertical.core.service.log.annotation.VisitLogger;
|
||||
import com.rymcu.vertical.dto.ArticleDTO;
|
||||
import com.rymcu.vertical.dto.PortfolioDTO;
|
||||
import com.rymcu.vertical.dto.UserDTO;
|
||||
@ -33,6 +34,7 @@ public class UserController {
|
||||
private PortfolioService portfolioService;
|
||||
|
||||
@GetMapping("/{nickname}")
|
||||
@VisitLogger
|
||||
public GlobalResult detail(@PathVariable String nickname){
|
||||
UserDTO userDTO = userService.findUserDTOByNickname(nickname);
|
||||
return GlobalResultGenerator.genSuccessResult(userDTO);
|
||||
|
Loading…
Reference in New Issue
Block a user