|
|
@@ -12,7 +12,6 @@
|
|
|
*/
|
|
|
package vip.xiaonuo.disk.controller;
|
|
|
|
|
|
-import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
import cn.hutool.core.lang.tree.Tree;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
@@ -62,7 +61,6 @@ public class ResourceTypeController {
|
|
|
*/
|
|
|
@ApiOperationSupport(order = 1)
|
|
|
@ApiOperation("获取resource_type分页")
|
|
|
- @SaCheckPermission("/disk/type/page")
|
|
|
@GetMapping("/disk/type/page")
|
|
|
public CommonResult<Page<ResourceType>> page(ResourceTypePageParam resourceTypePageParam) {
|
|
|
return CommonResult.data(resourceTypeService.page(resourceTypePageParam));
|
|
|
@@ -89,7 +87,6 @@ public class ResourceTypeController {
|
|
|
@ApiOperationSupport(order = 2)
|
|
|
@ApiOperation("添加resource_type")
|
|
|
@CommonLog("添加resource_type")
|
|
|
- @SaCheckPermission("/disk/type/add")
|
|
|
@PostMapping("/disk/type/add")
|
|
|
public CommonResult<String> add(@RequestBody @Valid ResourceTypeAddParam resourceTypeAddParam) {
|
|
|
resourceTypeService.add(resourceTypeAddParam);
|
|
|
@@ -105,7 +102,6 @@ public class ResourceTypeController {
|
|
|
@ApiOperationSupport(order = 3)
|
|
|
@ApiOperation("编辑resource_type")
|
|
|
@CommonLog("编辑resource_type")
|
|
|
- @SaCheckPermission("/disk/type/edit")
|
|
|
@PostMapping("/disk/type/edit")
|
|
|
public CommonResult<String> edit(@RequestBody @Valid ResourceTypeEditParam resourceTypeEditParam) {
|
|
|
resourceTypeService.edit(resourceTypeEditParam);
|
|
|
@@ -121,7 +117,6 @@ public class ResourceTypeController {
|
|
|
@ApiOperationSupport(order = 4)
|
|
|
@ApiOperation("删除resource_type")
|
|
|
@CommonLog("删除resource_type")
|
|
|
- @SaCheckPermission("/disk/type/delete")
|
|
|
@PostMapping("/disk/type/delete")
|
|
|
public CommonResult<String> delete(@RequestBody @Valid @NotEmpty(message = "集合不能为空")
|
|
|
CommonValidList<ResourceTypeIdParam> resourceTypeIdParamList) {
|
|
|
@@ -137,7 +132,6 @@ public class ResourceTypeController {
|
|
|
*/
|
|
|
@ApiOperationSupport(order = 5)
|
|
|
@ApiOperation("获取resource_type详情")
|
|
|
- @SaCheckPermission("/disk/type/detail")
|
|
|
@GetMapping("/disk/type/detail")
|
|
|
public CommonResult<ResourceType> detail(@Valid ResourceTypeIdParam resourceTypeIdParam) {
|
|
|
return CommonResult.data(resourceTypeService.detail(resourceTypeIdParam));
|