wu
2023-11-30 dc31792dc1b8ad1658e49ba8fce9a1be924e6fbb
springboot-vue3/src/main/java/com/example/springboot/controller/RoleMenuListController.java
New file
@@ -0,0 +1,29 @@
package com.example.springboot.controller;
import com.example.springboot.entity.vo.Result;
import com.example.springboot.entity.vo.RoleMenuListVo;
import com.example.springboot.service.RoleMenuListService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@Slf4j
@Api(tags = "角色和菜单关系")
@RequestMapping("/api/roleMenuList")
public class RoleMenuListController {
    @Autowired
    private RoleMenuListService roleMenuListService;
    @ApiOperation(value = "分页查询角色和菜单关系")
    @GetMapping("/selectPage")
    @RequiresRoles({"admin"})
    public Result selectPage(RoleMenuListVo roleMenuListVO) {
        return Result.success(roleMenuListService.selectPage(roleMenuListVO));
    }
}