| | |
| | | import com.stylefeng.guns.modular.system.service.IHousingDemandService; |
| | | import com.stylefeng.guns.modular.system.service.IReportHousingDemandService; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import com.stylefeng.guns.modular.system.warpper.req.AddHouseReq; |
| | | import com.stylefeng.guns.modular.system.warpper.req.HousingDemandReq; |
| | | import com.stylefeng.guns.modular.system.warpper.req.ReportHousingDemandReq; |
| | | import com.stylefeng.guns.modular.system.warpper.req.SearchHousingDemandReq; |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer eyJhbGciOiJIUzUxMiJ....", required = true, paramType = "header") |
| | | }) |
| | | public ResultUtil addHousingDemand(HousingDemandReq req){ |
| | | public ResultUtil addHousingDemand(@RequestBody HousingDemandReq req){ |
| | | return housingDemandService.addHousingDemand(req); |
| | | } |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @GetMapping("/base/housingDemand/searchHousingDemand") |
| | | @ApiOperation(value = "求房源列表", tags = {"求房源"}) |
| | | public ResultUtil<SearchHousingDemandRes> searchHousingDemand(SearchHousingDemandReq req){ |
| | | public ResultUtil<SearchHousingDemandRes> searchHousingDemand(@RequestBody SearchHousingDemandReq req){ |
| | | SearchHousingDemandRes searchHousingDemandRes = housingDemandService.searchHousingDemand(req); |
| | | return ResultUtil.success(searchHousingDemandRes); |
| | | } |
| | |
| | | @ApiImplicitParam(name = "id", value = "数据id", required = true), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer eyJhbGciOiJIUzUxMiJ....", required = false, paramType = "header") |
| | | }) |
| | | public ResultUtil<HousingDemandInfoRes> housingDemandInfo(Integer id){ |
| | | public ResultUtil<HousingDemandInfoRes> housingDemandInfo(@RequestBody Integer id){ |
| | | HousingDemandInfoRes housingDemandInfoRes = housingDemandService.housingDemandInfo(id); |
| | | return ResultUtil.success(housingDemandInfoRes); |
| | | } |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer eyJhbGciOiJIUzUxMiJ....", required = true, paramType = "header") |
| | | }) |
| | | public ResultUtil addReportHousingDemand(ReportHousingDemandReq req){ |
| | | public ResultUtil addReportHousingDemand(@RequestBody ReportHousingDemandReq req){ |
| | | return reportHousingDemandService.addReportHousingDemand(req); |
| | | } |
| | | |
| | |
| | | @ApiImplicitParam(name = "id", value = "房源id", required = true), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer eyJhbGciOiJIUzUxMiJ....", required = true, paramType = "header") |
| | | }) |
| | | public ResultUtil collectionHousingDemand(Integer id){ |
| | | public ResultUtil collectionHousingDemand(@RequestBody Integer id){ |
| | | return collectionHousingDemandService.collectionHousingDemand(id); |
| | | } |
| | | |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "房源id", required = true), |
| | | }) |
| | | public ResultUtil<ContactInformationRes> getContactInformation(Integer id){ |
| | | public ResultUtil<ContactInformationRes> getContactInformation(@RequestBody Integer id){ |
| | | ContactInformationRes contactInformation = housingDemandService.getContactInformation(id); |
| | | return ResultUtil.success(contactInformation); |
| | | } |