public IActionResult GetHouse([FromQuery, SwaggerParameter("所在城市,默认上海", Required = true)] string city = "上海",
                                      [FromQuery, SwaggerParameter("来源")] string source   = "",
                                      [FromQuery, SwaggerParameter("关键字")] string keyword = null,
                                      [FromQuery, SwaggerParameter("页码")] int page        = 0,
                                      [FromQuery, SwaggerParameter("分页数量")] int size      = 20,
                                      [FromQuery, SwaggerParameter("房源类型")] int rentType  = 0,
                                      [FromQuery, SwaggerParameter("最低价")] int fromPrice  = 0,
                                      [FromQuery, SwaggerParameter("最高价")] int toPrice    = 0)
        {
            var condition = new DBHouseQuery();

            condition.City      = city;
            condition.Source    = source;
            condition.Keyword   = keyword;
            condition.Page      = page;
            condition.Size      = size;
            condition.RentType  = rentType;
            condition.FromPrice = fromPrice;
            condition.ToPrice   = toPrice;
            return(Ok(new { success = true, data = _houseService.Search(condition) }));
        }
 public IActionResult Search([FromBody] DBHouseQuery search)
 {
     return(Ok(new { success = true, data = _houseService.Search(search) }));
 }
 public IActionResult RefreshSearch([FromBody] DBHouseQuery search)
 {
     _houseService.RefreshSearch(search);
     return(Ok(new { success = true }));
 }