管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-10-08 e7b3a5e891287b1291d2ac38f7c83d5d73bc7906
src/main/java/com/lf/server/controller/data/DirController.java
@@ -1,8 +1,8 @@
package com.lf.server.controller.data;
import com.lf.server.controller.BaseController;
import com.lf.server.aspect.SysLog;
import com.lf.server.controller.all.BaseController;
import com.lf.server.entity.all.ResponseMsg;
import com.lf.server.entity.data.DictEntity;
import com.lf.server.entity.data.DirEntity;
import com.lf.server.service.data.DirService;
import io.swagger.annotations.Api;
@@ -19,13 +19,14 @@
 * @author sws
 * @date   2022-09-22
 */
@Api(tags = "目录管理")
@Api(tags = "数据管理\\目录管理")
@RestController
@RequestMapping("/dir")
public class DirController extends BaseController {
    @Autowired
    DirService dirService;
    @SysLog()
    @ApiOperation(value = "插入数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "DirEntity", value = "目录实体类", dataType = "com.lf.server.entity.data.DirEntity", paramType = "body", example = "")
@@ -41,6 +42,7 @@
        }
    }
    @SysLog()
    @ApiOperation(value = "插入多条数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "DirEntity", value = "目录实体类", dataType = "com.lf.server.entity.data.DirEntity", paramType = "body", example = "")
@@ -56,6 +58,7 @@
        }
    }
    @SysLog()
    @ApiOperation(value = "删除一条数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "主键ID", dataType = "Integer", paramType = "query", example = "1")
@@ -71,6 +74,7 @@
        }
    }
    @SysLog()
    @ApiOperation(value = "删除多条数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "主键ID集合", dataType = "List<Integer>", paramType = "query", example = "1,2")
@@ -90,6 +94,7 @@
        }
    }
    @SysLog()
    @ApiOperation(value = "更新一条数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dirEntity", value = "主键ID集合", dataType = "DictEntity", paramType = "body", example = "")
@@ -106,6 +111,7 @@
        }
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "主键ID", dataType = "Integer", paramType = "query", example = "1")
@@ -121,7 +127,7 @@
        }
    }
    @SysLog()
    @ApiOperation(value = "查询所有数据")
    @GetMapping(value = "/selectDirAll")
    public ResponseMsg<List<DirEntity>> selectDirAll() {