| | |
| | | |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | * |
| | | * @author expert |
| | | */ |
| | | @Api(value = "登录管理", tags = "登录管理") |
| | | @RestController |
| | | public class SysLoginController |
| | | { |
| | |
| | | * @return 结果 |
| | | */ |
| | | @PostMapping("/login") |
| | | @ApiOperation("登录") |
| | | public AjaxResult login(@RequestBody LoginBody loginBody) |
| | | { |
| | | AjaxResult ajax = AjaxResult.success(); |
| | |
| | | * @return 用户信息 |
| | | */ |
| | | @GetMapping("getInfo") |
| | | @ApiOperation("获取用户信息") |
| | | public AjaxResult getInfo() |
| | | { |
| | | LoginUser loginUser = SecurityUtils.getLoginUser(); |
| | |
| | | * @return 路由信息 |
| | | */ |
| | | @GetMapping("getRouters") |
| | | @ApiOperation("获取路由信息") |
| | | public AjaxResult getRouters() |
| | | { |
| | | Long userId = SecurityUtils.getUserId(); |