| | |
| | | } |
| | | |
| | | @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") |