管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-10-08 e7b3a5e891287b1291d2ac38f7c83d5d73bc7906
src/main/java/com/lf/server/controller/sys/DepController.java
ÎļþÃû´Ó src/main/java/com/lf/server/controller/data/DepController.java ÐÞ¸Ä
@@ -1,10 +1,10 @@
package com.lf.server.controller.data;
package com.lf.server.controller.sys;
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.DepEntity;
import com.lf.server.entity.data.DictEntity;
import com.lf.server.service.data.DepService;
import com.lf.server.entity.sys.DepEntity;
import com.lf.server.service.sys.DepService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
@@ -20,16 +20,17 @@
 * @date   2022-09-23
 */
@Api(tags = "组织机构")
@Api(tags = "运维管理\\单位管理")
@RestController
@RequestMapping("/dep")
public class DepController extends BaseController {
    @Autowired
    DepService depService;
    @SysLog()
    @ApiOperation(value = "插入数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "DepEntity", value = "字典实体类", dataType = "com.lf.server.entity.data.DepEntity", paramType = "body", example = "")
            @ApiImplicitParam(name = "DepEntity", value = "字典实体类", dataType = "com.lf.server.entity.sys.DepEntity", paramType = "body", example = "")
    })
    @PostMapping(value = "/insertDep", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertDep(@RequestBody DepEntity depEntity) {
@@ -42,9 +43,10 @@
        }
    }
    @SysLog()
    @ApiOperation(value = "插入多条数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "DepEntity", value = "字典实体类", dataType = "com.lf.server.entity.data.DepEntity", paramType = "body", example = "")
            @ApiImplicitParam(name = "DepEntity", value = "字典实体类", dataType = "com.lf.server.entity.sys.DepEntity", paramType = "body", example = "")
    })
    @PostMapping(value = "/insertDes", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertDes(@RequestBody List<DepEntity> depEntity) {
@@ -57,6 +59,7 @@
        }
    }
    @SysLog()
    @ApiOperation(value = "删除一条数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "主键ID", dataType = "Integer", paramType = "query", example = "1")
@@ -72,6 +75,7 @@
        }
    }
    @SysLog()
    @ApiOperation(value = "删除多条数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "主键ID", dataType = "Integer", paramType = "query", example = "1")
@@ -91,6 +95,7 @@
        }
    }
    @SysLog()
    @ApiOperation(value = "更新一条数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "depEntity", value = "主键ID集合", dataType = "DepEntity", paramType = "body", example = "")
@@ -107,6 +112,7 @@
        }
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "主键ID", dataType = "Integer", paramType = "query", example = "1")
@@ -121,6 +127,7 @@
        }
    }
    @SysLog()
    @ApiOperation(value = "查询所有数据")
    @GetMapping(value = "/selectDepAll")
    public ResponseMsg<List<DepEntity>> selectDepAll() {
@@ -131,5 +138,4 @@
            return fail(ex.getMessage(), null);
        }
    }
}