|
|
@@ -53,7 +53,7 @@ public class DeptController extends KdController {
|
|
|
/**
|
|
|
* 详情
|
|
|
*/
|
|
|
- @PreAuth(menu = "dept")
|
|
|
+// @PreAuth(menu = "dept")
|
|
|
@GetMapping("/detail")
|
|
|
@ApiOperationSupport(order = 1)
|
|
|
@Operation(summary = "详情", description = "传入dept")
|
|
|
@@ -65,7 +65,7 @@ public class DeptController extends KdController {
|
|
|
/**
|
|
|
* 列表
|
|
|
*/
|
|
|
- @PreAuth(menu = "dept")
|
|
|
+// @PreAuth(menu = "dept")
|
|
|
@GetMapping("/list")
|
|
|
@Parameters({
|
|
|
@Parameter(name = "deptName", description = "部门名称", in = ParameterIn.QUERY, schema = @Schema(type = "string")),
|
|
|
@@ -82,7 +82,7 @@ public class DeptController extends KdController {
|
|
|
/**
|
|
|
* 懒加载列表
|
|
|
*/
|
|
|
- @PreAuth(menu = "dept")
|
|
|
+// @PreAuth(menu = "dept")
|
|
|
@GetMapping("/lazy-list")
|
|
|
@Parameters({
|
|
|
@Parameter(name = "deptName", description = "部门名称", in = ParameterIn.QUERY, schema = @Schema(type = "string")),
|
|
|
@@ -98,7 +98,7 @@ public class DeptController extends KdController {
|
|
|
/**
|
|
|
* 获取部门树形结构
|
|
|
*/
|
|
|
- @PreAuth(menu = "dept")
|
|
|
+// @PreAuth(menu = "dept")
|
|
|
@GetMapping("/tree")
|
|
|
@ApiOperationSupport(order = 4)
|
|
|
@Operation(summary = "树形结构", description = "树形结构")
|
|
|
@@ -110,7 +110,7 @@ public class DeptController extends KdController {
|
|
|
/**
|
|
|
* 懒加载获取部门树形结构
|
|
|
*/
|
|
|
- @PreAuth(menu = "dept")
|
|
|
+// @PreAuth(menu = "dept")
|
|
|
@GetMapping("/lazy-tree")
|
|
|
@ApiOperationSupport(order = 5)
|
|
|
@Operation(summary = "懒加载树形结构", description = "树形结构")
|
|
|
@@ -123,7 +123,7 @@ public class DeptController extends KdController {
|
|
|
* 新增或修改
|
|
|
*/
|
|
|
// @IsAdmin
|
|
|
- @PostMapping("/submit")
|
|
|
+// @PostMapping("/submit")
|
|
|
@ApiOperationSupport(order = 6)
|
|
|
@Operation(summary = "新增或修改", description = "传入dept")
|
|
|
public R submit(@Valid @RequestBody Dept dept) {
|