¶Ô±ÈÐÂÎļþ |
| | |
| | | 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> |
| | | * å端æ§å¶å¨ |
| | | * </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,"ç¨æ·ç»å½ä¿¡æ¯æ æï¼è¯·éæ°ç»å½"); |
| | | } |
| | | } |