|
|
@@ -2,19 +2,19 @@ package com.doc.biz.controller;
|
|
|
|
|
|
import com.doc.biz.domain.DocSpace;
|
|
|
import com.doc.biz.service.IDocSpaceService;
|
|
|
-import com.doc.common.annotation.Log;
|
|
|
import com.doc.common.core.controller.BaseController;
|
|
|
import com.doc.common.core.domain.AjaxResult;
|
|
|
import com.doc.common.core.page.TableDataInfo;
|
|
|
-import com.doc.common.enums.BusinessType;
|
|
|
-import com.doc.common.utils.poi.ExcelUtil;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -43,13 +43,13 @@ public class DocSpaceController extends BaseController {
|
|
|
* 查询文档空间管理列表
|
|
|
*/
|
|
|
// @ApiOperation("查询文档空间管理列表")
|
|
|
-// //@PreAuthorize("@ss.hasPermi('biz:space:list')")
|
|
|
-// @GetMapping("/list")
|
|
|
-// public TableDataInfo list(DocSpace docSpace) {
|
|
|
-// startPage();
|
|
|
-// List<DocSpace> list = docSpaceService.selectDocSpaceList(docSpace);
|
|
|
-// return getDataTable(list);
|
|
|
-// }
|
|
|
+ @PreAuthorize("@ss.hasPermi('biz:space:list')")
|
|
|
+ @GetMapping("/list")
|
|
|
+ public TableDataInfo list(DocSpace docSpace) {
|
|
|
+ startPage();
|
|
|
+ List<DocSpace> list = docSpaceService.selectDocSpaceList(docSpace);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 导出文档空间管理列表
|
|
|
@@ -68,11 +68,11 @@ public class DocSpaceController extends BaseController {
|
|
|
* 获取文档空间管理详细信息
|
|
|
*/
|
|
|
// @ApiOperation("获取文档空间管理详细信息")
|
|
|
-// //@PreAuthorize("@ss.hasPermi('biz:space:query')")
|
|
|
-// @GetMapping(value = "/{spaceId}")
|
|
|
-// public AjaxResult getInfo(@PathVariable("spaceId") Long spaceId) {
|
|
|
-// return success(docSpaceService.selectDocSpaceBySpaceId(spaceId));
|
|
|
-// }
|
|
|
+ @PreAuthorize("@ss.hasPermi('biz:space:query')")
|
|
|
+ @GetMapping(value = "/{spaceId}")
|
|
|
+ public AjaxResult getInfo(@PathVariable("spaceId") Long spaceId) {
|
|
|
+ return success(docSpaceService.selectDocSpaceBySpaceId(spaceId));
|
|
|
+ }
|
|
|
|
|
|
|
|
|
/**
|