From f02a461cd0e0c6ad326cd71e3af733e3292407fc Mon Sep 17 00:00:00 2001 From: xiejun <309858992@qq.com> Date: 星期五, 29 十二月 2023 13:31:00 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS/ubcs-service/ubcs-system/src/main/java/com/vci/ubcs/system/controller/ClassifyAuthController.java | 62 +++++++++++++++++++++++++++++++ 1 files changed, 62 insertions(+), 0 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-system/src/main/java/com/vci/ubcs/system/controller/ClassifyAuthController.java b/Source/UBCS/ubcs-service/ubcs-system/src/main/java/com/vci/ubcs/system/controller/ClassifyAuthController.java new file mode 100644 index 0000000..5efa76f --- /dev/null +++ b/Source/UBCS/ubcs-service/ubcs-system/src/main/java/com/vci/ubcs/system/controller/ClassifyAuthController.java @@ -0,0 +1,62 @@ +package com.vci.ubcs.system.controller; + +import com.vci.ubcs.system.entity.ClassifyAuth; +import com.vci.ubcs.system.entity.Menu; +import com.vci.ubcs.system.service.IClassifyAuthService; +import com.vci.ubcs.system.vo.ClassifyAuthVO; +import io.swagger.annotations.Api; +import lombok.AllArgsConstructor; +import org.springblade.core.tenant.annotation.NonDS; +import org.springblade.core.tool.api.R; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import java.util.List; +import java.util.Map; + +/** + * 鍒嗙被鎺堟潈 + * @author ludc + * @date 2023/12/20 11:33 + */ +@NonDS +@RestController +@AllArgsConstructor +@RequestMapping("/classifyAuth") +@ApiIgnore +@Api(value = "鍒嗙被鎺堟潈", tags = "鎺ュ彛") +public class ClassifyAuthController { + + private final IClassifyAuthService classifyAuthService; + + /** + * 鍒嗙被鎺堟潈淇濆瓨鎺ュ彛 + * @param classifyAuthList + * @return + */ + @PostMapping("saveOrUpdate") + public R saveOrUpdate(@RequestBody List<ClassifyAuth> classifyAuthList) { + return classifyAuthService.submit(classifyAuthList); + } + + /** + * 鑾峰彇鍒嗙被鎺堟潈闆嗗悎 + * @param classifyAuthVO + * @return + */ + @GetMapping("list") + public R<List<ClassifyAuthVO>> getClassifyAuthList(ClassifyAuthVO classifyAuthVO) { + return R.data(classifyAuthService.getClassifyAuthList(classifyAuthVO)); + } + + /** + * 鏌ヨ璇ュ垎绫讳笅锛屽綋鍓嶇櫥褰曠殑瑙掕壊鏈夊摢浜涙寜閽潈闄� + * @param classifyId + * @return + */ + @GetMapping("getAuthButtonList") + public R<Map<String,Boolean>> getAuthButtonList(String classifyId){ + return R.data(classifyAuthService.getAuthButtonList(classifyId)); + } + +} -- Gitblit v1.9.3