| | |
| | | @ResponseBody |
| | | @PostMapping("/base/addHouse/add") |
| | | @ApiOperation(value = "发布房源", tags = {"发布"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer eyJhbGciOiJIUzUxMiJ....", required = true, paramType = "header") |
| | | }) |
| | | // @ApiImplicitParams({ |
| | | // @ApiImplicitParam(name = "Authorization", value = "Bearer eyJhbGciOiJIUzUxMiJ....", required = true, paramType = "header") |
| | | // }) |
| | | public ResultUtil addHouse(@RequestBody AddHouseReq req){ |
| | | 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("当前账号已被冻结或删除"); |
| | | // } |
| | | return houseResourceService.addHouse(req); |
| | | } |
| | | |