package com.vci.ubcs.system.controller; 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.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; /** * 分类授权 * @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 classifyAuthList) { return classifyAuthService.submit(classifyAuthList); } /** * 获取分类授权集合 * @param classifyAuthVO * @return */ @GetMapping("list") public R> getClassifyAuthList(ClassifyAuthVO classifyAuthVO) { return R.data(classifyAuthService.getClassifyAuthList(classifyAuthVO)); } }