|
@@ -309,6 +309,23 @@ public class HouseManagerController extends BaseController{
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/houseDetailWithoutAuth")
|
|
|
+ @ApiOperation(value = "根据房源ID获取房源详情-无需授权,给H5使用")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "houseId", value = "房源ID", paramType = "query", required = true, dataType = "String"),
|
|
|
+ })
|
|
|
+ public Result<Object> houseDetailWithoutAuth(@RequestParam(required = true) String houseId){
|
|
|
+ if(StringUtils.isBlank(houseId)){
|
|
|
+ return Result.failure("房源ID不能为空");
|
|
|
+ }
|
|
|
+ TmHouse tmHouse = tmHouseService.getById(houseId);
|
|
|
+ if(null == tmHouse || tmHouse.getIsDelete().compareTo(1) == 0){
|
|
|
+ return Result.failure("房源不存在");
|
|
|
+ }
|
|
|
+ return Result.success(tmHouse);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@GetMapping("/getEstateDetail")
|
|
|
@ApiOperation(value = "根据楼盘ID获取楼盘详情")
|