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.List; import java.util.Map; /** *

* 前端控制器 *

* * @author 江苏鵷雏网络科技有限公司 * @since 2023-07-07 */ @Api(tags = "用户模块") @RestController @RequestMapping("/role") public class RoleController { @Autowired private RoleService roleService; @ApiOperation("新增用户-->获取用户权限列表") @GetMapping("/list") public Result getUserRoleList(){ List> data = roleService.getUserRoleList(); return Result.success(data); } }