From 0ece3ba8c92df0438af52b8de6b9225d8ada4103 Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期四, 30 十一月 2023 08:46:34 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes --- 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