| | |
| | | import com.lf.server.entity.all.ResponseMsg; |
| | | import com.lf.server.entity.show.ModelEntity; |
| | | import com.lf.server.entity.sys.UserEntity; |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.service.show.ModelService; |
| | | import com.lf.server.service.sys.TokenService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @SysLog() |
| | | @ApiOperation(value = "根据Guid查询模型") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "layerid", value = "图层ID", dataType = "int", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "layerid", value = "图层ID", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "modelid", value = "模型ID", dataType = "String", paramType = "query", example = "") |
| | | }) |
| | | @GetMapping(value = "/selectModelByGuid") |
| | | public ResponseMsg<ModelEntity> selectModelByGuid(int layerid, String modelid) { |
| | | public ResponseMsg<ModelEntity> selectModelByGuid(Integer layerid, String modelid) { |
| | | try { |
| | | if (null == layerid || StringHelper.isEmpty(modelid)) { |
| | | return fail("图层ID和模型ID不能为空", null); |
| | | } |
| | | |
| | | ModelEntity entity = modelService.selectModelByGuid(layerid, modelid); |
| | | |
| | | return success(entity); |