From ef5a518c3e2c1fe41aa60f56ca31ddafa0cb1561 Mon Sep 17 00:00:00 2001 From: guoyuji <guoyujie@ng.com> Date: 星期四, 23 五月 2024 08:32:36 +0800 Subject: [PATCH] 添加产品汇总报表 --- north-glass-erp/src/main/java/com/example/erp/controller/userInfo/UserRoleController.java | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/userInfo/UserRoleController.java b/north-glass-erp/src/main/java/com/example/erp/controller/userInfo/UserRoleController.java new file mode 100644 index 0000000..c2e3752 --- /dev/null +++ b/north-glass-erp/src/main/java/com/example/erp/controller/userInfo/UserRoleController.java @@ -0,0 +1,34 @@ +package com.example.erp.controller.userInfo; + +import cn.dev33.satoken.annotation.SaCheckPermission; +import com.example.erp.common.Result; +import com.example.erp.controller.dto.UserDTO; +import com.example.erp.service.userInfo.UserRoleService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.Map; + +@RestController +@Api(value="鐢ㄦ埛瑙掕壊controller",tags={"鐢ㄦ埛瑙掕壊鎿嶄綔鎺ュ彛"}) +@RequestMapping("/userRole") +public class UserRoleController { + private final UserRoleService userRoleService; + + public UserRoleController(UserRoleService userRoleService) { + this.userRoleService = userRoleService; + } + + + @ApiOperation("鏇存柊鐢ㄦ埛瑙掕壊") + @SaCheckPermission("userList.update") + @PostMapping("/updateUserRole") + public Result updateUserRole(@RequestBody Map<String,Object> params) { + return Result.seccess(userRoleService.updateUserRole(params)); + } +} -- Gitblit v1.8.0