| | |
| | | package com.project.admin.controller.system; |
| | | |
| | | import com.project.common.config.ProjectConfig; |
| | | import com.project.common.core.domain.entity.SysDept; |
| | | import com.project.system.service.ISysDeptService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | public class SysProfileController extends BaseController |
| | | { |
| | | private final ISysUserService userService; |
| | | private final ISysDeptService deptService; |
| | | private final TokenService tokenService; |
| | | |
| | | |
| | |
| | | public AjaxResult profile() |
| | | { |
| | | SysUser user = userService.getById(getUserId()); |
| | | SysDept sysDept = deptService.selectDeptById(user.getDeptId()); |
| | | user.setDept(sysDept); |
| | | AjaxResult ajax = AjaxResult.success(user); |
| | | ajax.put("roleGroup", userService.selectUserRoleGroup(user.getUserName())); |
| | | ajax.put("postGroup", userService.selectUserPostGroup(user.getUserName())); |