From 8a0ae6d19d78d2295a10b1cc97bfe17e651234ea Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期五, 01 十二月 2023 08:08:28 +0800 Subject: [PATCH] 更新理片笼逻辑 --- springboot-vue3/src/main/java/com/example/springboot/controller/RoleMenuListController.java | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/controller/RoleMenuListController.java b/springboot-vue3/src/main/java/com/example/springboot/controller/RoleMenuListController.java new file mode 100644 index 0000000..8c47976 --- /dev/null +++ b/springboot-vue3/src/main/java/com/example/springboot/controller/RoleMenuListController.java @@ -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)); + } +} \ No newline at end of file -- Gitblit v1.8.0