/**
 * Copyright (c) 2018-2099, Chill Zhuang 庄骞 (bladejava@qq.com).
 * <p>
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/lgpl.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.xiaoniu.subsystem.system.controller;

import com.xiaoniu.subsystem.system.service.ISysRoleDeptService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 角色和部门关联表 控制器
 *
 * @author sst
 * @since 2024-11-26
 */
@RestController
@AllArgsConstructor
@RequestMapping("/sysroledept")
@Tag(name = "角色和部门关联表", description = "角色和部门关联表接口")
public class SysRoleDeptController  {

	private ISysRoleDeptService sysRoleDeptService;

	// /**
	//  * 详情
	//  */
	// @GetMapping("/detail")
	// @ApiOperationSupport(order = 1)
	// @Operation(summary = "详情", description = "传入sysRoleDept")
	// public Result<SysRoleDeptVO> detail(SysRoleDept sysRoleDept) {
	// 	SysRoleDept detail = sysRoleDeptService.getOne(new QueryWrapper<>(sysRoleDept));
	// 	return Result.success(SysRoleDeptWrapper.build().entityVO(detail));
	// }
	//
	// /**
	//  * 分页 角色和部门关联表
	//  */
	// @GetMapping("/list")
	// @ApiOperationSupport(order = 2)
	// @Operation(summary = "分页", description = "传入sysRoleDept")
	// public Result<IPage<SysRoleDeptVO>> list(SysRoleDept sysRoleDept) {
	// 	IPage<SysRoleDept> pages = sysRoleDeptService.page(null, new QueryWrapper<>(sysRoleDept));
	// 	return Result.success(SysRoleDeptWrapper.build().pageVO(pages));
	// }
	//
	//
	// /**
	//  * 自定义分页 角色和部门关联表
	//  */
	// @GetMapping("/page")
	// @ApiOperationSupport(order = 3)
	// @Operation(summary = "分页", description = "传入sysRoleDept")
	// public Result<IPage<SysRoleDeptVO>> page(SysRoleDeptVO sysRoleDept) {
	// 	IPage<SysRoleDeptVO> pages = sysRoleDeptService.selectSysRoleDeptPage(null, sysRoleDept);
	// 	return Result.success(pages);
	// }
	//
	// /**
	//  * 新增 角色和部门关联表
	//  */
	// @PostMapping("/save")
	// @ApiOperationSupport(order = 4)
	// @Operation(summary = "新增", description = "传入sysRoleDept")
	// public R save(@Valid @RequestBody SysRoleDept sysRoleDept) {
	// 	return Result.success(sysRoleDeptService.save(sysRoleDept));
	// }
	//
	// /**
	//  * 修改 角色和部门关联表
	//  */
	// @PostMapping("/update")
	// @ApiOperationSupport(order = 5)
	// @Operation(summary = "修改", description = "传入sysRoleDept")
	// public R update(@Valid @RequestBody SysRoleDept sysRoleDept) {
	// 	return Result.success(sysRoleDeptService.updateById(sysRoleDept));
	// }
	//
	// /**
	//  * 新增或修改 角色和部门关联表
	//  */
	// @PostMapping("/submit")
	// @ApiOperationSupport(order = 6)
	// @Operation(summary = "新增或修改", description = "传入sysRoleDept")
	// public R submit(@Valid @RequestBody SysRoleDept sysRoleDept) {
	// 	return Result.success(sysRoleDeptService.saveOrUpdate(sysRoleDept));
	// }
	//
	//
	// /**
	//  * 删除 角色和部门关联表
	//  */
	// @PostMapping("/remove")
	// @ApiOperationSupport(order = 7)
	// @Operation(summary = "逻辑删除", description = "传入ids")
	// public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
	// 	return Result.success(sysRoleDeptService.removeByIds(Collections.singletonList(ids)));
	// }

	
}
