¶Ô±ÈÐÂÎļþ |
| | |
| | | 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)); |
| | | } |
| | | |
| | | } |