管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-07 30065c4383b83fa6ca4d4ecccafe8008e104a652
src/main/java/com/lf/server/controller/show/ModelController.java
@@ -72,6 +72,23 @@
    }
    @SysLog()
    @ApiOperation(value = "根据Guid查询模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "layerid", value = "图层ID", dataType = "int", paramType = "query", example = ""),
            @ApiImplicitParam(name = "modelid", value = "模型ID", dataType = "String", paramType = "query", example = "")
    })
    @GetMapping(value = "/selectModelByGuid")
    public ResponseMsg<ModelEntity> selectModelByGuid(int layerid, String modelid) {
        try {
            ModelEntity entity = modelService.selectModelByGuid(layerid, modelid);
            return success(entity);
        } catch (Exception ex) {
            return fail(ex.getMessage(), null);
        }
    }
    @SysLog()
    @ApiOperation(value = "插入一个模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ModelEntity", paramType = "body")