Pu Zhibing
2024-11-21 1d429b7c98f8f15c63a6dba03ff90dae7a984e58
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.ruoyi.account.controller;
 
import com.ruoyi.account.api.model.AppUser;
import com.ruoyi.account.service.IAppUserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
 
/**
 * @author zhibing.pu
 * @Date 2024/11/21 9:47
 */
@RestController
@RequestMapping("/appUser")
public class AppUserController {
 
    @Resource
    private IAppUserService appUserService;
    
    
    /**
     * 根据id获取用户信息
     * @param id
     * @return
     */
    @PostMapping("/getAppUserById")
    public AppUser getAppUserById(@RequestParam("id") Long id){
        return appUserService.getById(id);
    }
 
}