| | |
| | | return ResultUtil.success(houseResource.getQrCode()); |
| | | } |
| | | @ResponseBody |
| | | @PostMapping("/api/housingDemand/addHousingDemand") |
| | | @PostMapping("/base/housingDemand/addHousingDemand") |
| | | @ApiOperation(value = "添加房源", tags = {"求房源"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer eyJhbGciOiJIUzUxMiJ....", required = true, paramType = "header") |
| | |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/api/housingDemand/housingDemandInfo") |
| | | @PostMapping("/base/housingDemand/housingDemandInfo") |
| | | @ApiOperation(value = "获取求房源详情", tags = {"求房源"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "数据id", required = true), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer eyJhbGciOiJIUzUxMiJ....", required = true, paramType = "header") |
| | | // @ApiImplicitParam(name = "Authorization", value = "Bearer eyJhbGciOiJIUzUxMiJ....", required = true, paramType = "header") |
| | | }) |
| | | public ResultUtil<HousingDemandInfoRes> housingDemandInfo(Integer id){ |
| | | AppUser appUser = appUserService.getAppUser(); |
| | | if(null != appUser && (appUser.getStatus() == 2|| appUser.getStatus() == 3)){ |
| | | return ResultUtil.errorLogin("当前账号已被冻结或删除"); |
| | | } |
| | | // AppUser appUser = appUserService.getAppUser(); |
| | | // if(null != appUser && (appUser.getStatus() == 2|| appUser.getStatus() == 3)){ |
| | | // return ResultUtil.errorLogin("当前账号已被冻结或删除"); |
| | | // } |
| | | HousingDemandInfoRes housingDemandInfoRes = housingDemandService.housingDemandInfo(id); |
| | | return ResultUtil.success(housingDemandInfoRes); |
| | | } |
| | |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/api/housingDemand/collectionHousingDemand") |
| | | @PostMapping("/base/housingDemand/collectionHousingDemand") |
| | | @ApiOperation(value = "收藏/取消收藏房源操作", tags = {"求房源"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer eyJhbGciOiJIUzUxMiJ....", required = true, paramType = "header") |