|
@@ -31,79 +31,80 @@ public class DocSpaceController extends BaseController {
|
|
|
private IDocSpaceService docSpaceService;
|
|
|
|
|
|
/**
|
|
|
- * 查询文档空间管理列表
|
|
|
+ * 获取空间详情
|
|
|
*/
|
|
|
- @ApiOperation("查询文档空间管理列表")
|
|
|
- //@PreAuthorize("@ss.hasPermi('biz:space:list')")
|
|
|
- @GetMapping("/list")
|
|
|
- public TableDataInfo list(DocSpace docSpace) {
|
|
|
- startPage();
|
|
|
- List<DocSpace> list = docSpaceService.selectDocSpaceList(docSpace);
|
|
|
- return getDataTable(list);
|
|
|
+ @ApiOperation("获取空间信息")
|
|
|
+ @GetMapping(value = "/info/{type}")
|
|
|
+ public AjaxResult spaceType(@ApiParam(value = "空间类型(1.公共 2.部门 3.个人)", required = true) @PathVariable("type") String type) {
|
|
|
+ return success(docSpaceService.selectDocSpaceListByType(type));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 导出文档空间管理列表
|
|
|
+ * 查询文档空间管理列表
|
|
|
*/
|
|
|
- @ApiOperation("导出文档空间管理列表")
|
|
|
- //@PreAuthorize("@ss.hasPermi('biz:space:export')")
|
|
|
- @Log(title = "文档空间管理", businessType = BusinessType.EXPORT)
|
|
|
- @PostMapping("/export")
|
|
|
- public void export(HttpServletResponse response, DocSpace docSpace) {
|
|
|
- List<DocSpace> list = docSpaceService.selectDocSpaceList(docSpace);
|
|
|
- ExcelUtil<DocSpace> util = new ExcelUtil<DocSpace>(DocSpace.class);
|
|
|
- util.exportExcel(response, list, "文档空间管理数据");
|
|
|
- }
|
|
|
+// @ApiOperation("查询文档空间管理列表")
|
|
|
+// //@PreAuthorize("@ss.hasPermi('biz:space:list')")
|
|
|
+// @GetMapping("/list")
|
|
|
+// public TableDataInfo list(DocSpace docSpace) {
|
|
|
+// startPage();
|
|
|
+// List<DocSpace> list = docSpaceService.selectDocSpaceList(docSpace);
|
|
|
+// return getDataTable(list);
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
- * 获取文档空间管理详细信息
|
|
|
+ * 导出文档空间管理列表
|
|
|
*/
|
|
|
- @ApiOperation("获取文档空间管理详细信息")
|
|
|
- //@PreAuthorize("@ss.hasPermi('biz:space:query')")
|
|
|
- @GetMapping(value = "/{spaceId}")
|
|
|
- public AjaxResult getInfo(@PathVariable("spaceId") Long spaceId) {
|
|
|
- return success(docSpaceService.selectDocSpaceBySpaceId(spaceId));
|
|
|
- }
|
|
|
+// @ApiOperation("导出文档空间管理列表")
|
|
|
+// //@PreAuthorize("@ss.hasPermi('biz:space:export')")
|
|
|
+// @Log(title = "文档空间管理", businessType = BusinessType.EXPORT)
|
|
|
+// @PostMapping("/export")
|
|
|
+// public void export(HttpServletResponse response, DocSpace docSpace) {
|
|
|
+// List<DocSpace> list = docSpaceService.selectDocSpaceList(docSpace);
|
|
|
+// ExcelUtil<DocSpace> util = new ExcelUtil<DocSpace>(DocSpace.class);
|
|
|
+// util.exportExcel(response, list, "文档空间管理数据");
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
- * 获取空间详情
|
|
|
+ * 获取文档空间管理详细信息
|
|
|
*/
|
|
|
- @ApiOperation("获取空间信息")
|
|
|
- @GetMapping(value = "/info/{type}")
|
|
|
- public AjaxResult spaceType(@ApiParam(value = "空间类型(1.公共 2.部门 3.个人)", required = true) @PathVariable("type") String type) {
|
|
|
- return success(docSpaceService.selectDocSpaceListByType(type));
|
|
|
- }
|
|
|
+// @ApiOperation("获取文档空间管理详细信息")
|
|
|
+// //@PreAuthorize("@ss.hasPermi('biz:space:query')")
|
|
|
+// @GetMapping(value = "/{spaceId}")
|
|
|
+// public AjaxResult getInfo(@PathVariable("spaceId") Long spaceId) {
|
|
|
+// return success(docSpaceService.selectDocSpaceBySpaceId(spaceId));
|
|
|
+// }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 新增文档空间管理
|
|
|
*/
|
|
|
- @ApiOperation("新增文档空间管理")
|
|
|
- //@PreAuthorize("@ss.hasPermi('biz:space:add')")
|
|
|
- @Log(title = "文档空间管理", businessType = BusinessType.INSERT)
|
|
|
- @PostMapping
|
|
|
- public AjaxResult add(@RequestBody DocSpace docSpace) {
|
|
|
- return toAjax(docSpaceService.insertDocSpace(docSpace));
|
|
|
- }
|
|
|
+// @ApiOperation("新增文档空间管理")
|
|
|
+// //@PreAuthorize("@ss.hasPermi('biz:space:add')")
|
|
|
+// @Log(title = "文档空间管理", businessType = BusinessType.INSERT)
|
|
|
+// @PostMapping
|
|
|
+// public AjaxResult add(@RequestBody DocSpace docSpace) {
|
|
|
+// return toAjax(docSpaceService.insertDocSpace(docSpace));
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 修改文档空间管理
|
|
|
*/
|
|
|
- @ApiOperation("修改文档空间管理")
|
|
|
+// @ApiOperation("修改文档空间管理")
|
|
|
//@PreAuthorize("@ss.hasPermi('biz:space:edit')")
|
|
|
- @Log(title = "文档空间管理", businessType = BusinessType.UPDATE)
|
|
|
- @PutMapping
|
|
|
- public AjaxResult edit(@RequestBody DocSpace docSpace) {
|
|
|
- return toAjax(docSpaceService.updateDocSpace(docSpace));
|
|
|
- }
|
|
|
+// @Log(title = "文档空间管理", businessType = BusinessType.UPDATE)
|
|
|
+// @PutMapping
|
|
|
+// public AjaxResult edit(@RequestBody DocSpace docSpace) {
|
|
|
+// return toAjax(docSpaceService.updateDocSpace(docSpace));
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 删除文档空间管理
|
|
|
*/
|
|
|
- @ApiOperation("删除文档空间管理")
|
|
|
- //@PreAuthorize("@ss.hasPermi('biz:space:remove')")
|
|
|
- @Log(title = "文档空间管理", businessType = BusinessType.DELETE)
|
|
|
- @DeleteMapping("/{spaceIds}")
|
|
|
- public AjaxResult remove(@PathVariable Long[] spaceIds) {
|
|
|
- return toAjax(docSpaceService.deleteDocSpaceBySpaceIds(spaceIds));
|
|
|
- }
|
|
|
+// @ApiOperation("删除文档空间管理")
|
|
|
+// //@PreAuthorize("@ss.hasPermi('biz:space:remove')")
|
|
|
+// @Log(title = "文档空间管理", businessType = BusinessType.DELETE)
|
|
|
+// @DeleteMapping("/{spaceIds}")
|
|
|
+// public AjaxResult remove(@PathVariable Long[] spaceIds) {
|
|
|
+// return toAjax(docSpaceService.deleteDocSpaceBySpaceIds(spaceIds));
|
|
|
+// }
|
|
|
}
|