From 8537a8d58b5a3750b57d76367ef51f086af271df Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 18 四月 2024 00:09:40 +0800
Subject: [PATCH] 集团属性池映射界面代码完善
---
Source/UBCS/ubcs-service/ubcs-system/src/main/java/com/vci/ubcs/system/controller/ClassifyAuthController.java | 28 ++++++++++++++++++++++------
1 files changed, 22 insertions(+), 6 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
index 8113955..e195f4a 100644
--- 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
@@ -1,19 +1,23 @@
package com.vci.ubcs.system.controller;
+import com.vci.ubcs.system.dto.ClassifyAuthDTO;
import com.vci.ubcs.system.entity.ClassifyAuth;
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.log.exception.ServiceException;
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 javax.validation.Valid;
import java.util.List;
+import java.util.Map;
/**
- * 鍒嗙被鎺堟潈
+ * 鍒嗙被鎺堟潈,鏁版嵁鎺堟潈
* @author ludc
* @date 2023/12/20 11:33
*/
@@ -29,12 +33,12 @@
/**
* 鍒嗙被鎺堟潈淇濆瓨鎺ュ彛
- * @param classifyAuthList
+ * @param classifyAuthListDTO
* @return
*/
- @PostMapping("saveOrUpdate")
- public R saveOrUpdate(@RequestBody List<ClassifyAuth> classifyAuthList) {
- return classifyAuthService.submit(classifyAuthList);
+ @PostMapping("/saveOrUpdate")
+ public R saveOrUpdate(@RequestBody @Valid ClassifyAuthDTO classifyAuthListDTO) throws ServiceException {
+ return classifyAuthService.submit(classifyAuthListDTO);
}
/**
@@ -42,9 +46,21 @@
* @param classifyAuthVO
* @return
*/
- @GetMapping("list")
+ @GetMapping("/list")
public R<List<ClassifyAuthVO>> getClassifyAuthList(ClassifyAuthVO classifyAuthVO) {
return R.data(classifyAuthService.getClassifyAuthList(classifyAuthVO));
}
+ /**
+ * 鏌ヨ璇ュ垎绫讳笅锛屽綋鍓嶇櫥褰曠殑瑙掕壊鏈夊摢浜涙寜閽潈闄�
+ * @param classifyId
+ * @param menuCode
+ * @param authType
+ * @return
+ */
+ @GetMapping("/getAuthButtonList")
+ public R<Map<String,Boolean>> getAuthButtonList(@Valid @RequestParam("classifyId") String classifyId,@Valid @RequestParam("code") String menuCode,@Valid @RequestParam("authType") String authType){
+ return R.data(classifyAuthService.getAuthButtonList(classifyId,menuCode,authType));
+ }
+
}
--
Gitblit v1.9.3