package com.ruoyi.other.controller;
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
import com.ruoyi.common.security.utils.SecurityUtils;
|
import com.ruoyi.other.vo.Home;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
@Api(tags = "个人中心")
|
@RestController
|
@RequestMapping("/personalCenter")
|
public class PersonalCenterController {
|
|
@GetMapping("/getUserInfo")
|
@ApiOperation(value = "获取用户信息")
|
public AjaxResult getUserInfo(){
|
Long userId = SecurityUtils.getUserId();
|
Home home = new Home();
|
return AjaxResult.success(home);
|
}
|
}
|