zss
2023-08-26 6984757bfc75b4a25014de1eb71c2aa75ebdb86f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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,"用户登录信息无效,请重新登录");
    }
}