| | |
| | | package com.yuanchu.limslaboratory.controller; |
| | | |
| | | |
| | | import com.yuanchu.limslaboratory.service.RoleService; |
| | | import com.yuanchu.limslaboratory.vo.Result; |
| | | 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.RequestHeader; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author 江苏鵷雏网络科技有限公司 |
| | | * @since 2023-07-07 |
| | | */ |
| | | @Api(tags = "用户模块") |
| | | @RestController |
| | | @RequestMapping("/role") |
| | | public class RoleController { |
| | | |
| | | @Autowired |
| | | private RoleService roleService; |
| | | |
| | | @ApiOperation("新增用户-->获取用户权限列表") |
| | | @GetMapping("/list") |
| | | public Result<?> getUserRoleList(){ |
| | | //根据token获取用户信息 |
| | | // Map<String,Object> data = roleService.getUserRoleList(); |
| | | // if (data != null){ |
| | | // return Result.success(data); |
| | | // } |
| | | return Result.fail(202,"用户登录信息无效,请重新登录"); |
| | | } |
| | | } |