From a93a3f1532d33849187dcd1a372c315ec4511e04 Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期一, 04 十二月 2023 09:04:01 +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