| | |
| | | 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 |
| | | * <p> |
| | | * 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author luodangjia |
| | | * @since 2024-11-21 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/appUser") |
| | | @RequestMapping("/app-user") |
| | | public class AppUserController { |
| | | |
| | | @Resource |
| | | private IAppUserService appUserService; |
| | | |
| | | |
| | | /** |
| | | * 根据id获取用户信息 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/getAppUserById") |
| | | public AppUser getAppUserById(@RequestParam("id") Long id){ |
| | | return appUserService.getById(id); |
| | | } |
| | | |
| | | |
| | | } |
| | | |