luodangjia
2024-11-25 559ee10df3622e4802ca5664b83b713cd3a75f97
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
    }
}